From 9200a8a2534279ef95b067f2ead274d7407f63d6 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 12 Apr 2007 15:13:10 +0000 Subject: [PATCH] feature to display svn version on kernel boot --- tools/Makefile | 4 ++-- tools/release.sh | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index 9d3d2ba83..3b3878623 100755 --- a/tools/Makefile +++ b/tools/Makefile @@ -49,13 +49,13 @@ fresh: all: services image image: includes - cd ../kernel && $(MAKE) + cd ../kernel && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) cd ../servers && $(MAKE) image cd ../drivers && $(MAKE) image installboot -image $@ $(PROGRAMS) image_small: includes - cd ../kernel && $(MAKE) + cd ../kernel && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) cd ../servers && $(MAKE) EXTRA_OPTS=-D_MINIX_SMALL=1 image cd ../drivers && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) image installboot -image $@ $(PROGRAMS) diff --git a/tools/release.sh b/tools/release.sh index e3ed82bdb..3d156b4be 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -357,10 +357,11 @@ umount $TMPDISK3 || exit (cd ../boot && make) (cd .. && make depend) make clean -make image || exit 1 +SVNVAR=EXTRA_OPTS=-D_SVN_REVISION='\\\"'$REVISION'\\\"' +make "$SVNVAR" image || exit 1 mv image image_big make clean -make image_small || exit 1 +make "$SVNVAR" image_small || exit 1 dd if=$TMPDISK3 of=$ROOTIMAGE bs=$BS count=$ROOTBLOCKS # Prepare image and image_small for cdfdboot mv image_big image -- 2.44.0