core: add BR2_HOSTARCH_NEEDS_IA32_COMPILER option
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 11 Nov 2013 16:47:25 +0000 (17:47 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 1 Dec 2013 22:30:58 +0000 (23:30 +0100)
commit0e4bc50210028736d86aa34dbe6da8655b2999da
tree828328cdb0dd216b966fc6b2a299f9aa12adb439
parent971795f55ac4dd1e363762e5b2ef4e1c5f7d4952
core: add BR2_HOSTARCH_NEEDS_IA32_COMPILER option

Some bootloaders (such as Grub) need to be built for x86 (i.e IA32)
even if the target architecture is x86-64. However, when the target
architecture is x86-64, the cross-compiler generated by Buildroot is
not able to generate 32 bits code.

To solve this, we will rely on the host compiler being a x86 + x86-64
compiler. Therefore, this commit introduces the
BR2_HOSTARCH_NEEDS_IA32_COMPILER option, which tells the dependency
checking logic to verify that the host compiler is indeed capable of
building x86 32 bits code.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Config.in
support/dependencies/dependencies.sh