From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baruch Siach Date: Wed, 4 Dec 2013 21:39:10 +0200 Subject: [Buildroot] [PATCH] grub: force -m32 so we build grub 32 bits on 64 bits architecture In-Reply-To: <1386185630-23338-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1386185630-23338-1-git-send-email-thomas.petazzoni@free-electrons.com> Message-ID: <20131204193910.GE32492@tarshish> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Thomas, On Wed, Dec 04, 2013 at 08:33:50PM +0100, Thomas Petazzoni wrote: > 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 > Cc: Matthew Weber For some reason Matthew does not appear on the Cc list. Added now. Shouldn't git send-email do this automatically? baruch > Signed-off-by: Thomas Petazzoni > --- > boot/grub/grub.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/boot/grub/grub.mk b/boot/grub/grub.mk > index 6ba02cd..eb066af 100644 > --- a/boot/grub/grub.mk > +++ b/boot/grub/grub.mk > @@ -70,7 +70,7 @@ GRUB_POST_PATCH_HOOKS += GRUB_DEBIAN_PATCHES > > GRUB_CONF_ENV = \ > $(HOST_CONFIGURE_OPTS) \ > - CFLAGS="$(HOST_CFLAGS) $(GRUB_CFLAGS)" > + CFLAGS="$(HOST_CFLAGS) $(GRUB_CFLAGS) -m32" > > GRUB_CONF_OPT = \ > --disable-auto-linux-mem-opt \ > -- > 1.8.1.2 -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -