diff options
author | Andrei Gherzan <andrei.gherzan@huawei.com> | 2022-09-15 14:59:23 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-21 09:20:49 +0100 |
commit | 4a0e2eb3ecc85da8169fff56b189502abd45e2f6 (patch) | |
tree | 5140827421df4a9a61c6cd1d7b2f7df0a52430fe /meta/recipes-bsp | |
parent | f142d6440ed21da246ff3c784bb9fb128a48667b (diff) | |
download | poky-4a0e2eb3ecc85da8169fff56b189502abd45e2f6.tar.gz |
grub: Allow build on armv7ve/a with softfp
Grub tries to force the compilation in softfp mode for some known target
CPU. That is because it doesn't use floats or doubles and there are
known limitations of using a configuration with hardfp. There are though
target CPUs that grub won't know how to configure failing with something
similar to:
| checking for options to get soft-float... no
| configure: error: could not force soft-float
This change relaxes a bit the COMPATIBLE_HOST restriction to only apply
for hardfp configuration even for arm7ve/a.
(From OE-Core rev: 75dbdea94057b6977a20fb738c00c226ca694243)
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r-- | meta/recipes-bsp/grub/grub2.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc index 4a4bd571f5..2545b99b6a 100644 --- a/meta/recipes-bsp/grub/grub2.inc +++ b/meta/recipes-bsp/grub/grub2.inc | |||
@@ -45,9 +45,13 @@ CVE_CHECK_IGNORE += "CVE-2021-46705" | |||
45 | 45 | ||
46 | DEPENDS = "flex-native bison-native gettext-native" | 46 | DEPENDS = "flex-native bison-native gettext-native" |
47 | 47 | ||
48 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*|riscv.*)-(linux.*|freebsd.*)' | 48 | GRUB_COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*|riscv.*)-(linux.*|freebsd.*)' |
49 | COMPATIBLE_HOST:armv7a = 'null' | 49 | COMPATIBLE_HOST = "${GRUB_COMPATIBLE_HOST}" |
50 | COMPATIBLE_HOST:armv7ve = 'null' | 50 | # Grub doesn't support hard float toolchain and won't be able to forcefully |
51 | # disable it on some of the target CPUs. See 'configure.ac' for | ||
52 | # supported/unsupported CPUs in hardfp. | ||
53 | COMPATIBLE_HOST:armv7a = "${@'null' if d.getVar('TUNE_CCARGS_MFLOAT') == 'hardfp' else d.getVar('GRUB_COMPATIBLE_HOST')}" | ||
54 | COMPATIBLE_HOST:armv7ve = "${@'null' if d.getVar('TUNE_CCARGS_MFLOAT') == 'hardfp' else d.getVar('GRUB_COMPATIBLE_HOST')}" | ||
51 | 55 | ||
52 | # configure.ac has code to set this automagically from the target tuple | 56 | # configure.ac has code to set this automagically from the target tuple |
53 | # but the OE freeform one (core2-foo-bar-linux) don't work with that. | 57 | # but the OE freeform one (core2-foo-bar-linux) don't work with that. |