ppcrcd/Makefile

sparky cvs at pld-linux.org
Thu Jun 16 13:32:24 CEST 2005


Author: sparky
Date: Thu Jun 16 13:32:19 2005
New Revision: 6096

Modified:
   ppcrcd/Makefile
Log:
- added yaboot generation


Modified: ppcrcd/Makefile
==============================================================================
--- ppcrcd/Makefile	(original)
+++ ppcrcd/Makefile	Thu Jun 16 13:32:19 2005
@@ -1,6 +1,7 @@
 
 #         @_VERSION_@
-VERSION = newFeatures
+VERSION = XP(TM)     
+# XP means: same shit but with more features
 
 REVISION = HEAD
 SU = sudo
@@ -71,7 +72,7 @@
 %_stop:		root.stripped
 	$(SU) chroot root.stripped chkconfig --level 2345 $(@:%_stop=%) off
 
-boot:	root.installed initrd.sqf
+boot:	root.installed initrd.sqf yaboot/yaboot
 	cp -r boot.dir boot.work
 	rm -f boot.work/*~
 	sed -e 's/@_VERSION_@/$(VERSION)/g'	\
@@ -79,7 +80,7 @@
 		-i boot.work/ofboot.b
 	cp root.inst/boot/vmlinux-* boot.work/vmlinux
 	strip boot.work/vmlinux
-	cp root.inst/lib/yaboot/yaboot boot.work
+	cp yaboot/yaboot boot.work
 	$(SU) cp initrd.sqf boot.work
 	mv boot.work $@
 
@@ -107,6 +108,9 @@
 		-i root.swork/linuxrc
 	$(SU) mv root.swork $@
 
+yaboot/yaboot:	yaboot/yaboot.c yaboot/Makefile
+	make -C yaboot
+
 root.installed:	$(INSTALL) root.inst root-ok-deps
 	touch $@
 
@@ -182,12 +186,12 @@
 	@echo "Fixed"
 	
 clean:
-	@echo use one of: distclean clean-all clean-all clean-inst clean-root clean-img
+	@echo use one of: distclean clean-all clean-all clean-inst clean-root clean-img clean-yaboot
 	
 distclean:	clean-all
 	rm -rf rpm builder_prepared
 
-clean-all:	clean-inst
+clean-all:	clean-inst clean-yaboot
 	rm -rf .*_pre .*_rpm
 
 clean-inst:		clean-root
@@ -200,6 +204,9 @@
 clean-img:
 	rm -rf ppcrcd.iso ppcrcd.sqf initrd.sqf image
 
+clean-yaboot:
+	make -C yaboot clean
+
 .SECONDARY:
 
 .DELETE_ON_ERROR: ppcrcd.iso ppcrcd.sqf initrd.sqf



More information about the pld-cvs-commit mailing list