move arch variant structs down a level

Use blueprint's new anonymous embedded struct feature to move the arch
variant properties down a level, replacing arch.cortex_a9.srcs with
arch.arm.cortex_a9.srcs, while still supporting top-level properties
like arch.arm.srcs.

Change-Id: Ib41c80e3549440d5efdfd293a15cffa3f51a0fe4
This commit is contained in:
Colin Cross 2015-11-23 14:12:15 -08:00
parent 9c6157c81d
commit 6ab8f89d1c

View File

@ -311,24 +311,24 @@ cc_library_static {
"upstream-freebsd/lib/libc/string/wcslen.c", "upstream-freebsd/lib/libc/string/wcslen.c",
"upstream-freebsd/lib/libc/string/wcsrchr.c", "upstream-freebsd/lib/libc/string/wcsrchr.c",
], ],
},
atom: { atom: {
exclude_srcs: [ exclude_srcs: [
"upstream-freebsd/lib/libc/string/wmemcmp.c", "upstream-freebsd/lib/libc/string/wmemcmp.c",
], ],
}, },
x86_ssse3: { ssse3: {
exclude_srcs: [ exclude_srcs: [
"upstream-freebsd/lib/libc/string/wcscat.c", "upstream-freebsd/lib/libc/string/wcscat.c",
"upstream-freebsd/lib/libc/string/wcscpy.c", "upstream-freebsd/lib/libc/string/wcscpy.c",
], ],
}, },
x86_sse4: { sse4: {
exclude_srcs: [ exclude_srcs: [
"upstream-freebsd/lib/libc/string/wmemcmp.c", "upstream-freebsd/lib/libc/string/wmemcmp.c",
], ],
}, },
}, },
},
cflags: [ cflags: [
"-Wno-sign-compare", "-Wno-sign-compare",
@ -651,7 +651,6 @@ cc_library_static {
exclude_srcs: [ exclude_srcs: [
"upstream-openbsd/lib/libc/string/strcpy.c", "upstream-openbsd/lib/libc/string/strcpy.c",
], ],
},
cortex_a7: { cortex_a7: {
exclude_srcs: [ exclude_srcs: [
"upstream-openbsd/lib/libc/string/memmove.c", "upstream-openbsd/lib/libc/string/memmove.c",
@ -708,7 +707,7 @@ cc_library_static {
"upstream-openbsd/lib/libc/string/strcat.c", "upstream-openbsd/lib/libc/string/strcat.c",
], ],
}, },
},
arm64: { arm64: {
exclude_srcs: [ exclude_srcs: [
"upstream-openbsd/lib/libc/string/memchr.c", "upstream-openbsd/lib/libc/string/memchr.c",
@ -731,14 +730,14 @@ cc_library_static {
"upstream-openbsd/lib/libc/string/strncmp.c", "upstream-openbsd/lib/libc/string/strncmp.c",
"upstream-openbsd/lib/libc/string/strncpy.c", "upstream-openbsd/lib/libc/string/strncpy.c",
], ],
}, ssse3: {
x86_ssse3: {
exclude_srcs: [ exclude_srcs: [
"upstream-openbsd/lib/libc/string/strlcat.c", "upstream-openbsd/lib/libc/string/strlcat.c",
"upstream-openbsd/lib/libc/string/strlcpy.c", "upstream-openbsd/lib/libc/string/strlcpy.c",
"upstream-openbsd/lib/libc/string/strncat.c", "upstream-openbsd/lib/libc/string/strncat.c",
], ],
}, },
},
x86_64: { x86_64: {
exclude_srcs: [ exclude_srcs: [
@ -805,7 +804,7 @@ cc_library_static {
], ],
multilib: { multilib: {
lib64: { lib64: {
srcs: ["upstream-openbsd/lib/libc/gdtoa/strtorQ.c"] srcs: ["upstream-openbsd/lib/libc/gdtoa/strtorQ.c"],
}, },
}, },
@ -884,7 +883,6 @@ cc_library_static {
"bionic/__memcpy_chk.cpp", "bionic/__memcpy_chk.cpp",
"bionic/__memset_chk.cpp", "bionic/__memset_chk.cpp",
], ],
},
cortex_a7: { cortex_a7: {
srcs: [ srcs: [
"arch-arm/cortex-a7/bionic/memset.S", "arch-arm/cortex-a7/bionic/memset.S",
@ -1084,6 +1082,7 @@ cc_library_static {
], ],
}, },
},
arm64: { arm64: {
srcs: [ srcs: [
"arch-arm64/bionic/__bionic_clone.S", "arch-arm64/bionic/__bionic_clone.S",
@ -1112,7 +1111,6 @@ cc_library_static {
"bionic/strchr.cpp", "bionic/strchr.cpp",
"bionic/strnlen.c", "bionic/strnlen.c",
], ],
},
denver64: { denver64: {
srcs: [ srcs: [
"arch-arm64/denver64/bionic/memcpy.S", "arch-arm64/denver64/bionic/memcpy.S",
@ -1123,6 +1121,7 @@ cc_library_static {
"arch-arm64/generic/bionic/memset.S", "arch-arm64/generic/bionic/memset.S",
], ],
}, },
},
mips: { mips: {
srcs: [ srcs: [
@ -1140,16 +1139,15 @@ cc_library_static {
"arch-mips/string/strcmp.S", "arch-mips/string/strcmp.S",
"arch-mips/string/strlen.c", "arch-mips/string/strlen.c",
], ],
}, rev6: {
mips_rev6: {
srcs: [ srcs: [
"arch-mips/string/mips_strlen.c" "arch-mips/string/mips_strlen.c",
], ],
exclude_srcs: [ exclude_srcs: [
"arch-mips/string/strlen.c" "arch-mips/string/strlen.c",
], ],
}, },
},
mips64: { mips64: {
srcs: [ srcs: [
"arch-mips64/bionic/__bionic_clone.S", "arch-mips64/bionic/__bionic_clone.S",
@ -1208,7 +1206,6 @@ cc_library_static {
"bionic/strnlen.c", "bionic/strnlen.c",
"bionic/strrchr.cpp", "bionic/strrchr.cpp",
], ],
},
atom: { atom: {
srcs: [ srcs: [
"arch-x86/atom/string/sse2-bzero-atom.S", "arch-x86/atom/string/sse2-bzero-atom.S",
@ -1232,7 +1229,7 @@ cc_library_static {
"arch-x86/silvermont/string/sse2-strncpy-slm.S", "arch-x86/silvermont/string/sse2-strncpy-slm.S",
], ],
}, },
x86_ssse3: { ssse3: {
srcs: [ srcs: [
"arch-x86/atom/string/ssse3-strncat-atom.S", "arch-x86/atom/string/ssse3-strncat-atom.S",
"arch-x86/atom/string/ssse3-strlcat-atom.S", "arch-x86/atom/string/ssse3-strlcat-atom.S",
@ -1249,7 +1246,7 @@ cc_library_static {
"arch-x86/generic/string/strcat.S", "arch-x86/generic/string/strcat.S",
], ],
}, },
x86_sse4: { sse4: {
srcs: [ srcs: [
"arch-x86/silvermont/string/sse4-memcmp-slm.S", "arch-x86/silvermont/string/sse4-memcmp-slm.S",
"arch-x86/silvermont/string/sse4-wmemcmp-slm.S", "arch-x86/silvermont/string/sse4-wmemcmp-slm.S",
@ -1258,7 +1255,7 @@ cc_library_static {
"arch-x86/generic/string/memcmp.S", "arch-x86/generic/string/memcmp.S",
], ],
}, },
},
x86_64: { x86_64: {
srcs: [ srcs: [
"arch-x86_64/bionic/__bionic_clone.S", "arch-x86_64/bionic/__bionic_clone.S",
@ -1447,7 +1444,7 @@ cc_library_static {
multilib: { multilib: {
lib32: { lib32: {
// LP32 cruft // LP32 cruft
srcs: ["bionic/mmap.cpp"] srcs: ["bionic/mmap.cpp"],
}, },
}, },
@ -2024,7 +2021,10 @@ cc_object {
}, },
srcs: ["arch-common/bionic/crtbrand.S"], srcs: ["arch-common/bionic/crtbrand.S"],
defaults: ["crt_defaults", "crt_so_defaults"], defaults: [
"crt_defaults",
"crt_so_defaults",
],
} }
// Android.mk:ignore // Android.mk:ignore
@ -2033,14 +2033,20 @@ cc_object {
local_include_dirs: ["include"], local_include_dirs: ["include"],
srcs: ["arch-common/bionic/crtbegin_so.c"], srcs: ["arch-common/bionic/crtbegin_so.c"],
defaults: ["crt_defaults", "crt_so_defaults"], defaults: [
"crt_defaults",
"crt_so_defaults",
],
} }
// Android.mk:ignore // Android.mk:ignore
cc_object { cc_object {
name: "crtbegin_so", name: "crtbegin_so",
defaults: ["crt_defaults", "crt_so_defaults"], defaults: [
"crt_defaults",
"crt_so_defaults",
],
deps: [ deps: [
"crtbegin_so1", "crtbegin_so1",
"crtbrand", "crtbrand",
@ -2053,7 +2059,10 @@ cc_object {
local_include_dirs: ["include"], local_include_dirs: ["include"],
srcs: ["arch-common/bionic/crtend_so.S"], srcs: ["arch-common/bionic/crtend_so.S"],
defaults: ["crt_defaults", "crt_so_defaults"], defaults: [
"crt_defaults",
"crt_so_defaults",
],
} }
// Android.mk:ignore // Android.mk:ignore