feature to display svn version on kernel boot

This commit is contained in:
Ben Gras 2007-04-12 15:13:10 +00:00
parent 691b09f232
commit 9200a8a253
2 changed files with 5 additions and 4 deletions

View file

@ -49,13 +49,13 @@ fresh:
all: services image all: services image
image: includes image: includes
cd ../kernel && $(MAKE) cd ../kernel && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS)
cd ../servers && $(MAKE) image cd ../servers && $(MAKE) image
cd ../drivers && $(MAKE) image cd ../drivers && $(MAKE) image
installboot -image $@ $(PROGRAMS) installboot -image $@ $(PROGRAMS)
image_small: includes image_small: includes
cd ../kernel && $(MAKE) cd ../kernel && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS)
cd ../servers && $(MAKE) EXTRA_OPTS=-D_MINIX_SMALL=1 image cd ../servers && $(MAKE) EXTRA_OPTS=-D_MINIX_SMALL=1 image
cd ../drivers && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) image cd ../drivers && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) image
installboot -image $@ $(PROGRAMS) installboot -image $@ $(PROGRAMS)

View file

@ -357,10 +357,11 @@ umount $TMPDISK3 || exit
(cd ../boot && make) (cd ../boot && make)
(cd .. && make depend) (cd .. && make depend)
make clean make clean
make image || exit 1 SVNVAR=EXTRA_OPTS=-D_SVN_REVISION='\\\"'$REVISION'\\\"'
make "$SVNVAR" image || exit 1
mv image image_big mv image image_big
make clean make clean
make image_small || exit 1 make "$SVNVAR" image_small || exit 1
dd if=$TMPDISK3 of=$ROOTIMAGE bs=$BS count=$ROOTBLOCKS dd if=$TMPDISK3 of=$ROOTIMAGE bs=$BS count=$ROOTBLOCKS
# Prepare image and image_small for cdfdboot # Prepare image and image_small for cdfdboot
mv image_big image mv image_big image