soong: always use -mfpu=neon-vfpv4 for Krait targets

* GCC and Clang both support this, so we may as well simplify
  the logic.

Test: make otapackage
Test: verified that the options are exactly the same, just slightly different order.

Change-Id: I8c2e9f3875cb662db708c799c9ce54f9fdd55981
This commit is contained in:
Jake Weinstein 2017-04-06 20:38:26 -04:00
parent 2ce95652a8
commit fff256f817
1 changed files with 3 additions and 2 deletions

View File

@ -128,6 +128,7 @@ var (
},
"krait": []string{
"-mcpu=cortex-a15",
"-mfpu=neon-vfpv4",
// Fake an ARM compiler flag as these processors support LPAE which GCC/clang
// don't advertise.
// TODO This is a hack and we need to add it for each processor that supports LPAE until some
@ -168,9 +169,9 @@ func init() {
"kryo",
"denver")
// Krait and Kryo targets are not supported by GCC, but are supported by Clang,
// so override the definitions when building modules with Clang.
replaceFirst(armClangCpuVariantCflags["krait"], "-mcpu=cortex-a15", "-mcpu=krait")
armClangCpuVariantCflags["krait"] = append(armClangCpuVariantCflags["krait"], "-mfpu=neon-vfpv4")
replaceFirst(armClangCpuVariantCflags["kryo"], "-mcpu=cortex-a15", "-mcpu=krait")
pctx.StaticVariable("armGccVersion", armGccVersion)