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

Next file: linux/arch/ppc/common_defconfig
Previous file: linux/arch/ppc/amiga/time.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.19/linux/arch/ppc/boot/Makefile linux/arch/ppc/boot/Makefile
@@ -25,6 +25,10 @@
 IOFF = 0
 ISZ = 0
 
+ifeq ($(CONFIG_ALL_PPC),y)
+CONFIG_PREP=y
+endif
+
 ifeq ($(CONFIG_SMP),y)
 TFTPIMAGE=/tftpboot/zImage.prep.smp$(MSIZE)
 else
@@ -72,16 +76,19 @@
 	rm zvmlinux.initrd.tmp
 
 zImage: zvmlinux mkprep sImage
+ifdef CONFIG_PREP
 	./mkprep -pbp zvmlinux zImage
+endif
 
 sImage: ../../../vmlinux
 ifdef CONFIG_GEMINI
 	$(OBJCOPY) -I elf32-powerpc -O binary ../../../vmlinux sImage
-else
 endif
 
 zImage.initrd: zvmlinux.initrd mkprep
+ifdef CONFIG_PREP
 	./mkprep -pbp zvmlinux.initrd zImage.initrd
+endif
 
 zvmlinux: $(OBJECTS) ../coffboot/vmlinux.gz
 #
@@ -110,7 +117,9 @@
 	$(HOSTCC) -o mkprep mkprep.c
 
 znetboot : zImage
+ifdef CONFIG_PREP
 	cp zImage $(TFTPIMAGE)
+endif
 ifdef CONFIG_GEMINI
 	cp sImage /tftpboot/
 endif

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