diff options
author | Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com> | 2019-11-07 20:27:50 +0530 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-10 14:06:10 +0000 |
commit | 92b60da8b21c2113b00ea420231344202e532fe3 (patch) | |
tree | dc4650af9b94c9f706dadad53f4a89bdcc11ece2 /meta | |
parent | ae90e4cdf92b23924ea671a6f2e29cb980519e6e (diff) | |
download | poky-92b60da8b21c2113b00ea420231344202e532fe3.tar.gz |
tune-cortexa32: Fix libgcc-initial build issue for cortex-a32
When we try to build images for machine which is tuned for
cortex-a32, then libgcc-initial recipe fails to build with
below error message.
-- snip --
configure:3529: aarch64-poky-linux-gcc -mcpu=cortex-a32+crc -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=.../tmp/work/aarch64-poky-linux/libgcc-initial/9.2.0-r0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=.../tmp/work/aarch64-poky-linux/libgcc-initial/9.2.0-r0=/usr/src/debug/libgcc-initial/9.2.0-r0 -fdebug-prefix-map=.../tmp/work/aarch64-poky-linux/libgcc-initial/9.2.0-r0=/usr/src/debug/libgcc-initial/9.2.0-r0 -fdebug-prefix-map=.../tmp/work/aarch64-poky-linux/libgcc-initial/9.2.0-r0/recipe-sysroot= -fdebug-prefix-map=.../tmp/work/aarch64-poky-linux/libgcc-initial/9.2.0-r0/recipe-sysroot-native= -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z,relro,-z,now conftest.c >&5
aarch64-poky-linux-gcc: fatal error: unknown value 'cortex-a32+crc' for '-mcpu'
-- snip --
- Replacing TUNE_FEATURES from aarch64 to armv8a will solve the above
build issue.
- Changed BASE_LIB to 'lib', as cortex-a32 is a 32bit ARMv8a architecture.
The sample machine config file (qemuarma32.conf) used to reproduce
the error looks like:
-- snip --
require conf/machine/include/tune-cortexa32.inc
require conf/machine/include/qemu.inc
KERNEL_IMAGETYPE = "Image"
SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
KMACHINE_qemuarma32 = "qemuarm64"
-- snip --
(From OE-Core rev: 2b71569aff9201474d2e047c152c9b28b8db85f4)
Signed-off-by: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/machine/include/tune-cortexa32.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/conf/machine/include/tune-cortexa32.inc b/meta/conf/machine/include/tune-cortexa32.inc index 9c948f1766..3ab1addd91 100644 --- a/meta/conf/machine/include/tune-cortexa32.inc +++ b/meta/conf/machine/include/tune-cortexa32.inc | |||
@@ -10,9 +10,9 @@ require conf/machine/include/arm/arch-armv8a.inc | |||
10 | AVAILTUNES += "cortexa32 cortexa32-crypto" | 10 | AVAILTUNES += "cortexa32 cortexa32-crypto" |
11 | ARMPKGARCH_tune-cortexa32 = "cortexa32" | 11 | ARMPKGARCH_tune-cortexa32 = "cortexa32" |
12 | ARMPKGARCH_tune-cortexa32-crypto = "cortexa32" | 12 | ARMPKGARCH_tune-cortexa32-crypto = "cortexa32" |
13 | TUNE_FEATURES_tune-cortexa32 = "aarch64 cortexa32 crc" | 13 | TUNE_FEATURES_tune-cortexa32 = "armv8a cortexa32 crc" |
14 | TUNE_FEATURES_tune-cortexa32-crypto = "aarch64 cortexa32 crc crypto" | 14 | TUNE_FEATURES_tune-cortexa32-crypto = "armv8a cortexa32 crc crypto" |
15 | PACKAGE_EXTRA_ARCHS_tune-cortexa32 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa32" | 15 | PACKAGE_EXTRA_ARCHS_tune-cortexa32 = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa32" |
16 | PACKAGE_EXTRA_ARCHS_tune-cortexa32-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa32 cortexa32-crypto" | 16 | PACKAGE_EXTRA_ARCHS_tune-cortexa32-crypto = "${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa32 cortexa32-crypto" |
17 | BASE_LIB_tune-cortexa32 = "lib64" | 17 | BASE_LIB_tune-cortexa32 = "lib" |
18 | BASE_LIB_tune-cortexa32-crypto = "lib64" | 18 | BASE_LIB_tune-cortexa32-crypto = "lib" |