aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2024-03-20 14:06:50 -0700
committerCole Faust <colefaust@google.com>2024-03-20 14:06:50 -0700
commitf339eb4319d53aa7da855dbe8c6d749010fa0c45 (patch)
tree7c6e84f7fed6a2c1f6dcbbe54769358ab42f03fb
parent131579f7437166db0e7acd19f91a764e49768729 (diff)
downloadComputeLibrary-master.tar.gz
Replace AConfig() with Config()HEADmastermain
AConfig() is deprecated and equivalent to Config() Test: m nothing --no-skip-soong-tests Change-Id: I8c2c4be05bc03ded8846927c6f67cb13197c2b5a
-rw-r--r--scripts/arm_compute_library_nn_driver.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/arm_compute_library_nn_driver.go b/scripts/arm_compute_library_nn_driver.go
index cbcd60ec7..db3dcc290 100644
--- a/scripts/arm_compute_library_nn_driver.go
+++ b/scripts/arm_compute_library_nn_driver.go
@@ -33,13 +33,13 @@ func isVersionAtLeast(version_name string, target_version int) bool {
func globalFlags(ctx android.BaseContext) []string {
var cppflags []string
- if ctx.AConfig().PlatformVersionName() == "Q" || ctx.AConfig().PlatformVersionName() == "10" ||
- ctx.AConfig().PlatformVersionName() == "R" || ctx.AConfig().PlatformVersionName() == "11" ||
- ctx.AConfig().PlatformVersionName() == "S" || ctx.AConfig().PlatformVersionName() == "12" {
+ if ctx.Config().PlatformVersionName() == "Q" || ctx.Config().PlatformVersionName() == "10" ||
+ ctx.Config().PlatformVersionName() == "R" || ctx.Config().PlatformVersionName() == "11" ||
+ ctx.Config().PlatformVersionName() == "S" || ctx.Config().PlatformVersionName() == "12" {
cppflags = append(cppflags, "-fno-addrsig")
}
- if ctx.AConfig().PlatformVersionName() == "R" || ctx.AConfig().PlatformVersionName() == "11" {
+ if ctx.Config().PlatformVersionName() == "R" || ctx.Config().PlatformVersionName() == "11" {
for _, a := range ctx.DeviceConfig().Arches() {
theArch := a.ArchType.String()
if theArch == "armv8-2a" {
@@ -49,7 +49,7 @@ func globalFlags(ctx android.BaseContext) []string {
}
}
- data_types := strings.Split(ctx.AConfig().GetenvWithDefault("COMPUTE_LIB_DATA_TYPE", "ALL"), ",")
+ data_types := strings.Split(ctx.Config().GetenvWithDefault("COMPUTE_LIB_DATA_TYPE", "ALL"), ",")
for _, x := range data_types {
if strings.ToUpper(x) == "ALL" || strings.ToUpper(x) == "INTEGER" {
@@ -75,7 +75,7 @@ func globalFlags(ctx android.BaseContext) []string {
}
}
- data_layouts := strings.Split(ctx.AConfig().GetenvWithDefault("COMPUTE_LIB_DATA_LAYOUT", "ALL"), ",")
+ data_layouts := strings.Split(ctx.Config().GetenvWithDefault("COMPUTE_LIB_DATA_LAYOUT", "ALL"), ",")
for _, x := range data_layouts {
if strings.ToUpper(x) == "ALL" || strings.ToUpper(x) == "NHWC" {