patch-2.3.16 linux/arch/ppc/boot/Makefile

Next file: linux/arch/ppc/boot/head.S
Previous file: linux/arch/ppc/amiga/ints.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/arch/ppc/boot/Makefile linux/arch/ppc/boot/Makefile
@@ -47,9 +47,9 @@
 OBJCOPY_ARGS = -O elf32-powerpc
 
 OBJECTS += vreset.o kbd.o of1275.o
- ifeq ($(CONFIG_SERIAL_CONSOLE),y)
-  OBJECTS += ns16550.o
- endif
+ifeq ($(CONFIG_SERIAL_CONSOLE),y)
+OBJECTS += ns16550.o
+endif
 
 all:	zImage
 
@@ -71,9 +71,12 @@
 		zvmlinux.initrd.tmp $@
 	rm zvmlinux.initrd.tmp
 
-zImage: zvmlinux mkprep
+zImage: zvmlinux mkprep sImage
 	./mkprep -pbp zvmlinux zImage
 
+sImage: ../../../vmlinux
+	$(OBJCOPY) -I elf32-powerpc -O binary ../../../vmlinux sImage
+
 zImage.initrd: zvmlinux.initrd mkprep
 	./mkprep -pbp zvmlinux.initrd zImage.initrd
 
@@ -105,6 +108,7 @@
 
 znetboot : zImage
 	cp zImage $(TFTPIMAGE)
+	cp sImage /tftpboot/
 
 znetboot.initrd : zImage.initrd
 	cp zImage.initrd $(TFTPIMAGE)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)