summaryrefslogtreecommitdiffstats
path: root/release/picobsd/router
diff options
context:
space:
mode:
authorabial <abial@FreeBSD.org>1998-09-03 10:41:36 +0000
committerabial <abial@FreeBSD.org>1998-09-03 10:41:36 +0000
commit367654ad647db313f67d8dab4db22b0ea7d58fc7 (patch)
tree74de3f96926717ea58fd2fe71c6c9637df9c5781 /release/picobsd/router
parent3d3bcf57cfa80085659aff8110c3c22185650bc1 (diff)
downloadFreeBSD-src-367654ad647db313f67d8dab4db22b0ea7d58fc7.zip
FreeBSD-src-367654ad647db313f67d8dab4db22b0ea7d58fc7.tar.gz
Added Makefile to have true dependency of kernel image on the kernel
config file.
Diffstat (limited to 'release/picobsd/router')
-rw-r--r--release/picobsd/router/conf/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/release/picobsd/router/conf/Makefile b/release/picobsd/router/conf/Makefile
new file mode 100644
index 0000000..f23e2d7
--- /dev/null
+++ b/release/picobsd/router/conf/Makefile
@@ -0,0 +1,20 @@
+# $Id$
+#
+
+SRC?=/usr/src
+CONF?=$(SRC)/sys/i386/conf
+
+CONFFILE=PICOBSD-R.${SIZE}
+COMPILE=$(SRC)/sys/compile/$(CONFFILE)
+KERNFILE=$(COMPILE)/kernel
+
+all: $(KERNFILE)
+
+$(KERNFILE): PICOBSD
+ cat PICOBSD | grep -v "MFS_ROOT" > ${CONF}/${CONFFILE}
+ echo "options \"MFS_ROOT=${SIZE}\"" >> ${CONF}/${CONFFILE}
+ (cd ${CONF}; \
+ config ${CONFFILE}; \
+ cd ${COMPILE}; \
+ make depend && make)
+
OpenPOWER on IntegriCloud