From patchwork Wed Mar 31 17:32:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: patch for avoding amd64 compiling error Date: Wed, 31 Mar 2010 17:32:55 -0000 From: Jason Wang X-Patchwork-Id: 1182 Message-Id: To: Coreboot the patch make filo can compiling well without any parameters of make Signed-off-by: Wang Qing Pei =================================================================== --- Makefile (revision 121) +++ Makefile (working copy) @@ -93,8 +94,8 @@ GCCINCDIR = $(shell $(CC) -print-search-dirs | head -n 1 | cut -d' ' -f2)include CPPFLAGS = -nostdinc -imacros $(obj)/config.h -Iinclude -I$(GCCINCDIR) -MD -CFLAGS += $(STACKPROTECT) $(INCLUDES) -Wall -Os -fomit-frame-pointer -fno-common -ffreestanding -fno-strict-aliasing -Wshadow -pipe - +CFLAGS += $(STACKPROTECT) $(INCLUDES) -Wall -m32 -Os -fomit-frame-pointer -fno-common -ffreestanding -fno-strict-aliasing -Wshadow -pipe +ASFLAGS += --32 TARGET = $(obj)/filo.elf include $(src)/.config