grub: force -m32 so we build grub 32 bits on 64 bits architecture
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 4 Dec 2013 19:33:50 +0000 (20:33 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 4 Dec 2013 21:04:23 +0000 (22:04 +0100)
commit8c66baa06cc28c7f9a529d84958716cea9d6fe97
treeabffe2800c0b8ec56c7c0982181c61511e94e8bf
parent48c167fa03c2ba757a3cb7637322cf724e362467
grub: force -m32 so we build grub 32 bits on 64 bits architecture

As reported by Matthew Weber, Grub doesn't build on 64 bits build
machines, because the host compiler produces 64 bits binaries by
default, while Grub should be built 32 bits. Therefore, this commit
passes -m32 to the Grub CFLAGS, so that 32 bits binaries are always
produced.

Reported-by: Matthew Weber <mlweber1@rockwellcollins.com>
Cc: Matthew Weber <mlweber1@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Matthew Weber <mlweber1@rockwellcollins.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
boot/grub/grub.mk