summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2022-10-19 10:54:50 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-09 17:42:14 +0000
commite6428f3c1ca95fdc1999ae2b7ac5858887f8e333 (patch)
tree21059e35b082370a48a908a8257c6afebe0e5a3e /meta
parentdb48ca5830c8445667a1040e1dc58b3277f8ad65 (diff)
downloadpoky-e6428f3c1ca95fdc1999ae2b7ac5858887f8e333.tar.gz
grub: disable build on armv7ve/a with hardfp
The commit(75dbdea940 grub: Allow build on armv7ve/a with softfp) enable build on armv7ve/a with softfp, but it acutally enable build on armv7ve/a with hardfp altogether and result in below build failure: | checking for compile options to get strict alignment... -mno-unaligned-access | checking if compiler generates unaligned accesses... no | checking if C symbols get an underscore after compilation... no | checking whether target compiler is working... no | configure: error: cannot compile for the target So update the check to disable build on armv7ve/a with hardfp. (From OE-Core rev: 3d4bb6b1ba41e83c98e821ddf86e231daec029b1) Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit f67b2880fc2cfb21f51216c63b5f24d0524b4278) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-bsp/grub/grub2.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc
index 2545b99b6a..7161c4560b 100644
--- a/meta/recipes-bsp/grub/grub2.inc
+++ b/meta/recipes-bsp/grub/grub2.inc
@@ -50,8 +50,8 @@ COMPATIBLE_HOST = "${GRUB_COMPATIBLE_HOST}"
50# Grub doesn't support hard float toolchain and won't be able to forcefully 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 51# disable it on some of the target CPUs. See 'configure.ac' for
52# supported/unsupported CPUs in hardfp. 52# supported/unsupported CPUs in hardfp.
53COMPATIBLE_HOST:armv7a = "${@'null' if d.getVar('TUNE_CCARGS_MFLOAT') == 'hardfp' else d.getVar('GRUB_COMPATIBLE_HOST')}" 53COMPATIBLE_HOST:armv7a = "${@'null' if bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', True, False, d) else d.getVar('GRUB_COMPATIBLE_HOST')}"
54COMPATIBLE_HOST:armv7ve = "${@'null' if d.getVar('TUNE_CCARGS_MFLOAT') == 'hardfp' else d.getVar('GRUB_COMPATIBLE_HOST')}" 54COMPATIBLE_HOST:armv7ve = "${@'null' if bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', True, False, d) else d.getVar('GRUB_COMPATIBLE_HOST')}"
55 55
56# 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
57# 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.