diff options
author | Pablo Marquez Tello <pablo.tello@arm.com> | 2021-07-22 15:07:54 +0100 |
---|---|---|
committer | Nikhil Raj Arm <nikhil.raj@arm.com> | 2021-07-22 15:45:39 +0000 |
commit | dae5e1e98067254baf735868fb2d02ec89d84b4a (patch) | |
tree | 4d15c3079a6529eeeb94ca8d6022768694fd3eae /scripts | |
parent | 69a9ac4e7b870a0904c14217c2c6093136b276e7 (diff) | |
download | ComputeLibrary-dae5e1e98067254baf735868fb2d02ec89d84b4a.tar.gz |
Remove printing Android version detected by the build system
* Resolved COMPMID-4645
Change-Id: Idffe9ba4388bc602fa46e66fc82beeb8e1b208d9
Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5979
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Nikhil Raj Arm <nikhil.raj@arm.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/arm_compute_library_nn_driver.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/arm_compute_library_nn_driver.go b/scripts/arm_compute_library_nn_driver.go index eca6ab967e..cf9c99e208 100644 --- a/scripts/arm_compute_library_nn_driver.go +++ b/scripts/arm_compute_library_nn_driver.go @@ -9,7 +9,6 @@ import ( "android/soong/android" "android/soong/cc" "strings" - "fmt" ) func globalFlags(ctx android.BaseContext) []string { @@ -21,11 +20,8 @@ func globalFlags(ctx android.BaseContext) []string { cppflags = append(cppflags, "-fno-addrsig") } - if ctx.AConfig().PlatformVersionName() == "P" || ctx.AConfig().PlatformVersionName() == "9" { - fmt.Println("!! This is Android P!!") - } else if ctx.AConfig().PlatformVersionName() == "R" || ctx.AConfig().PlatformVersionName() == "11" { - fmt.Println("!! This is Android R!!") - if ctx.AConfig().DevicePrimaryArchType().String() == "armv8-2a" { + if ctx.AConfig().PlatformVersionName() == "R" || ctx.AConfig().PlatformVersionName() == "11" { + if ctx.AConfig().Targets[Android][0].Arch.ArchType.String() == "armv8-2a" { cppflags = append(cppflags, "-march=armv8.2-a+fp16") } } |