ppcrcd/trunk/Makefile

sparky cvs at pld-linux.org
Tue Mar 21 22:50:04 CET 2006


Author: sparky
Date: Tue Mar 21 22:49:51 2006
New Revision: 7263

Modified:
   ppcrcd/trunk/Makefile
Log:
- make and put on page (but not on CD) bonus files


Modified: ppcrcd/trunk/Makefile
==============================================================================
--- ppcrcd/trunk/Makefile	(original)
+++ ppcrcd/trunk/Makefile	Tue Mar 21 22:49:51 2006
@@ -263,6 +263,19 @@
 		$(BCOND-$(notdir $@)) $(BCOND)
 	sleep 1 && touch $@
 
+
+ZIARCHS = ppcbug prep chrp chrp-rs6k newworld coff miboot
+ZIMAGES = $(addprefix out/images/zImage.,$(ZIARCHS))
+
+out/images/zImage.chrp:	NONOTE := ADDNOTE=:
+
+out/images/zImage.%: out/images/initrd.sqf out/images/vmlinux
+	$(NONOTE) /usr/sbin/mkvmlinuz $@ ppcrcd_kernel	\
+		-a $(patsubst %-rs6k,%,$(@:out/images/zImage.%=%)) \
+		-i out/images/initrd.sqf	\
+		-l /boot/libs-*			\
+		-v out/images/vmlinux
+
 out/docs/%.html:	doc/README.% conf.dir doc/gendoc.pl
 	@mkdir -p out/docs
 	./doc/gendoc.pl $< > $@
@@ -292,11 +305,12 @@
 	@LANGUAGE= LANG= LC_ALL=C rpm --root=$(PWD)/$(root_inst) -qa \
 		--queryformat="<b>%{NAME}</b>(%{EPOCH}:%{VERSION}-%{RELEASE})ľ\t<i>%{SUMMARY}</i>\n" | sort | tr "ľ" "\n"
 
-page:	out/ppcrcd.iso doc/page_head.html
+page:	out/ppcrcd.iso doc/page_head.html out/images/initrd.sqf out/images/vmlinux $(ZIMAGES)
 	rm -rf $@{,.work}
-	mkdir -p $@.work/$(DATE)
+	mkdir -p $@.work/$(DATE)/bonus
 	cp out/ppcrcd.iso $@.work/$(DATE)/
 	cp $(DOCS) $@.work
+	cp out/images/initrd.sqf out/images/vmlinux $(ZIMAGES) $@.work/$(DATE)/bonus/
 	mv $@.work/{index.html,docs.html}
 	cat doc/page_head.html > $@.work/index.html
 	echo '$(VER13)' >> $@.work/index.html
@@ -305,7 +319,11 @@
 	ls -lk out/ppcrcd.iso | awk '{print $$5}' >> $@.work/index.html
 	echo 'kb <br />MD5: ' >> $@.work/index.html
 	md5sum out/ppcrcd.iso | awk '{print $$1}' >> $@.work/index.html
-	echo '</p><h3>Installed packages</h3><pre>' >> $@.work/index.html
+	echo '</p><h4>bonus files:</h4><pre>' >> $@.work/index.html
+	cd $@.work/$(DATE)/bonus && md5sum * | \
+		awk '{print $$1 " <a href=\"$(DATE)/bonus/" $$2 "\">" $$2 "</a>" }' \
+		>> ../../index.html
+	echo '</pre><h3>Installed packages</h3><pre>' >> $@.work/index.html
 	make --no-print-directory info >> $@.work/index.html
 	echo '</pre></body></html>' >> $@.work/index.html
 	chmod -R a+rX $@.work


More information about the pld-cvs-commit mailing list