Author: myles Date: 2007-12-19 20:52:21 +0100 (Wed, 19 Dec 2007) New Revision: 86
Added: buildrom-devel/packages/kexec-boot-loader/cross_compile.patch Modified: buildrom-devel/packages/kexec-boot-loader/kexec-boot-loader.mk Log: This patch explicitly uses gcc to build the .S files, so that the correct flags get passed in.
Added: buildrom-devel/packages/kexec-boot-loader/cross_compile.patch =================================================================== --- buildrom-devel/packages/kexec-boot-loader/cross_compile.patch (rev 0) +++ buildrom-devel/packages/kexec-boot-loader/cross_compile.patch 2007-12-19 19:52:21 UTC (rev 86) @@ -0,0 +1,36 @@ +--- kexec-boot-loader.org/Makefile 2007-12-07 10:28:26.000000000 -0700 ++++ kexec-boot-loader/Makefile 2007-12-07 10:28:47.000000000 -0700 +@@ -18,6 +18,15 @@ + + all: olpc-boot-loader + ++kexec/x86-setup-32.o: ++ $(CC) $(CFLAGS) kexec/x86-setup-32.S -nostdlib -c -o $@ ++ ++kexec/x86-setup-16.o: ++ $(CC) $(CFLAGS) kexec/x86-setup-16.S -nostdlib -c -o $@ ++ ++kexec/x86-setup-16-debug.o: ++ $(CC) $(CFLAGS) kexec/x86-setup-16-debug.S -nostdlib -c -o $@ ++ + $(PROGS): + $(CC) $(CFLAGS) $@.c -nostdlib -o $@ + +--- kexec-boot-loader.org/Makefile 2007-12-07 10:28:26.000000000 -0700 ++++ kexec-boot-loader/Makefile 2007-12-07 10:28:47.000000000 -0700 +@@ -18,6 +18,15 @@ + + all: olpc-boot-loader + ++kexec/x86-setup-32.o: ++ $(CC) $(CFLAGS) kexec/x86-setup-32.S -nostdlib -c -o $@ ++ ++kexec/x86-setup-16.o: ++ $(CC) $(CFLAGS) kexec/x86-setup-16.S -nostdlib -c -o $@ ++ ++kexec/x86-setup-16-debug.o: ++ $(CC) $(CFLAGS) kexec/x86-setup-16-debug.S -nostdlib -c -o $@ ++ + $(PROGS): + $(CC) $(CFLAGS) $@.c -nostdlib -o $@ +
Modified: buildrom-devel/packages/kexec-boot-loader/kexec-boot-loader.mk =================================================================== --- buildrom-devel/packages/kexec-boot-loader/kexec-boot-loader.mk 2007-12-14 14:23:56 UTC (rev 85) +++ buildrom-devel/packages/kexec-boot-loader/kexec-boot-loader.mk 2007-12-19 19:52:21 UTC (rev 86) @@ -16,6 +16,8 @@ KBL_TARGET=$(INITRD_DIR)/kbl endif
+KBL_PATCHES += $(PACKAGE_DIR)/kexec-boot-loader/cross_compile.patch + ifeq ($(CONFIG_VERBOSE),y) KBL_BUILD_LOG=/dev/stdout KBL_INSTALL_LOG=/dev/stdout