[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

small makefile patch for arm



This patch is the first part of my efforts to extend the arm boot-floppies to 
support multiple architectures.  Could somebody please check it into CVS?

p.

Index: Makefile
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/Makefile,v
retrieving revision 1.334
diff -u -p -u -r1.334 Makefile
--- Makefile	2000/12/01 23:22:23	1.334
+++ Makefile	2001/02/09 21:55:14
@@ -143,6 +143,11 @@ kernelprep	:= $(shell $(pathcmd:P=kernel
 kernelsource	:= $(shell $(pathcmd:P=kernel-source-$(kver)*.deb))
 kernelpatch	:= $(shell $(pathcmd:P=kernel-patch-$(kver)-powerpc*.deb))
 
+#### arm part
+kernel-riscpc	:= $(shell $(pathcmd:P=kernel-image-$(kver)-riscpc*.deb))
+kernel-netwinder := $(shell $(pathcmd:P=kernel-image-$(kver)-netwinder*.deb))
+kernel-shark	:= $(shell $(pathcmd:P=kernel-image-$(kver)-shark*.deb))
+
 #### sparc part
 # Sparc dist contains 3 kernels:
 #  -sun4cdm (for non-sun4u)
@@ -596,6 +606,19 @@ modcont-sun4dm-pci: kernel.sh $(kernelPC
 	$(ROOTCMD) ./kernel.sh -sun4dm-pci $(kernelPCI)
 endif
 
+#### arm part
+ifeq ($(architecture),arm)
+modules-netwinder.tgz sys_map-netwinder.gz config-netwinder.gz linux-netwinder \
+modcont-netwinder: kernel.sh $(kernel-netwinder) Makefile
+	$(ROOTCMD) ./kernel.sh -netwinder $(kernel-netwinder)
+modules-riscpc.tgz sys_map-riscpc.gz config-riscpc.gz linux-riscpc \
+modcont-riscpc: kernel.sh $(kernel-riscpc) Makefile
+	$(ROOTCMD) ./kernel.sh -riscpc $(kernel-riscpc)
+modules-shark.tgz sys_map-shark.gz config-shark.gz linux-shark \
+modcont-shark: kernel.sh $(kernel-shark) Makefile
+	$(ROOTCMD) ./kernel.sh -shark $(kernel-shark)
+endif
+
 #------------------------------------------------------------------------
 # Drivers
 #   mail <marcel@debian.org> if you have questions regarding setup of 
@@ -1020,6 +1043,13 @@ tftpboot.img:  linuxalpha_generic root.b
 		      $(linux_source_dir)/arch/alpha/lib/lib.a'
 	$(ROOTCMD) mv $(TMPDIR)/boot/bootpfile tftpboot.img
 	rm linuxalpha_generic.tmp
+else
+ifeq ($(architecture), arm)
+tftpboot-netwinder.img: linux-netwinder root.bin tftpboot.sh Makefile
+	./tftpboot.sh linux-netwinder root.bin $@
+tftpboot-cats.img: linux-netwinder root.bin tftpboot.sh Makefile
+	./tftpboot.sh linux-netwinder root.bin $@
+endif
 endif
 endif
 endif




Reply to: