diff options
author | Colin Cross <ccross@android.com> | 2017-04-26 14:00:43 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2017-04-27 12:21:24 -0700 |
commit | 0906f17f7e8bf0e76cb8511669e8fc8d5f6f3794 (patch) | |
tree | ce3aadcbb04b8690f9bb10161ce7c93180009b91 /android | |
parent | 96247cef212e81199ea57b50f4e5ec4fdac5808a (diff) | |
download | build_soong-0906f17f7e8bf0e76cb8511669e8fc8d5f6f3794.tar.gz build_soong-0906f17f7e8bf0e76cb8511669e8fc8d5f6f3794.tar.bz2 build_soong-0906f17f7e8bf0e76cb8511669e8fc8d5f6f3794.zip |
Add arm neon and mips dspr2 arch features
Current modules must use armv7_a_neon to specify source files that
compile only with neon. If a future arch variant also supports neon,
all these modules will fall back to non-neon. Support a neon arch
feature that modules can use instead. Similarly, support dspr2 for
mips.
arm_device.go was also mixing armv7-a-neon with armv7_a_neon. Use
armv7-a-neon consistently, and fix the - to _ when creating the
property structs.
Test: m -j checkbuild
Change-Id: I24d3764280ab3bcbb9a73c0934edc9b99fc7f6a0
Diffstat (limited to 'android')
-rw-r--r-- | android/arch.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android/arch.go b/android/arch.go index 2d0515ff..e777475f 100644 --- a/android/arch.go +++ b/android/arch.go @@ -417,9 +417,11 @@ func createArchType(props reflect.Type) reflect.Type { variants := []string{} for _, archVariant := range archVariants[arch] { + archVariant := variantReplacer.Replace(archVariant) variants = append(variants, proptools.FieldNameForProperty(archVariant)) } for _, feature := range archFeatures[arch] { + feature := variantReplacer.Replace(feature) variants = append(variants, proptools.FieldNameForProperty(feature)) } |