From dae5e1e98067254baf735868fb2d02ec89d84b4a Mon Sep 17 00:00:00 2001 From: Pablo Marquez Tello Date: Thu, 22 Jul 2021 15:07:54 +0100 Subject: Remove printing Android version detected by the build system * Resolved COMPMID-4645 Change-Id: Idffe9ba4388bc602fa46e66fc82beeb8e1b208d9 Signed-off-by: Pablo Marquez Tello Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5979 Tested-by: Arm Jenkins Reviewed-by: Nikhil Raj Arm --- scripts/arm_compute_library_nn_driver.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'scripts') 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") } } -- cgit v1.2.1