patch-1.3.5 linux/arch/i386/boot/Makefile

Next file: linux/arch/i386/boot/compressed/Makefile
Previous file: linux/arch/i386/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.4/linux/arch/i386/boot/Makefile linux/arch/i386/boot/Makefile
@@ -11,8 +11,17 @@
 AS86    =as86 -0 -a
 LD86    =ld86 -0
 
+ifdef CONFIG_KERNEL_ELF
+CFLAGS := $(CFLAGS) -D__BFD__
+endif
+
 zImage: $(CONFIGURE) bootsect setup compressed/vmlinux tools/build
+ifdef CONFIG_KERNEL_ELF
+	$(OBJDUMP) $(OBJDUMP_FLAGS) -o $(ZIMAGE_OFFSET) compressed/vmlinux > compressed/vmlinux.out
+	tools/build bootsect setup compressed/vmlinux.out $(ROOT_DEV) > zImage
+else
 	tools/build bootsect setup compressed/vmlinux $(ROOT_DEV) > zImage
+endif
 	sync
 
 compressed/vmlinux: $(TOPDIR)/vmlinux
@@ -56,5 +65,5 @@
 
 clean:
 	rm -f bootsect setup
-	rm -f zImage tools/build
+	rm -f zImage tools/build compressed/vmlinux.out
 	@$(MAKE) -C compressed clean

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this