[Zrouter-src] ZRouter.org: push to ZRouter Makefile

zrouter-src at zrouter.org zrouter-src at zrouter.org
Wed Jan 4 15:47:11 UTC 2012


details:   http://zrouter.org/hg/zrouter//rev/c230dd90b13a
changeset: 305:c230dd90b13a
user:      ray at terran.dlink.ua
date:      Wed Jan 04 17:46:42 2012 +0200
description:
add WITHOUT_ATM=yes option
Generate mtree on a rootfs.

diffstat:

 Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r 6b92e391b312 -r c230dd90b13a Makefile
--- a/Makefile	Tue Jan 03 14:54:31 2012 +0200
+++ b/Makefile	Wed Jan 04 17:46:42 2012 +0200
@@ -201,6 +201,7 @@
 	TARGET_CPUARCH=${TARGET_CPUARCH} \
 	ZROUTER_ROOT=${ZROUTER_ROOT} \
 	WITHOUT_ATM=yes \
+	WITHOUT_AUDIT=yes \
 	WITHOUT_INFO=yes \
 	WITHOUT_IPX=yes \
 	WITHOUT_LOCALES=yes \
@@ -222,6 +223,7 @@
 	ZROUTER_ROOT=${ZROUTER_ROOT} \
 	WITHOUT_ASSERT_DEBUG=yes \
 	WITHOUT_ATM=yes \
+	WITHOUT_AUDIT=yes \
 	WITHOUT_CLANG=yes \
 	WITHOUT_INFO=yes \
 	WITHOUT_INSTALLLIB=yes \
@@ -444,6 +446,7 @@
 #		world kernel ports
 rootfs:		${ZROUTER_OBJ}/${TARGET_VENDOR}_${TARGET_DEVICE}_rootfs_clean
 
+ROOTFS_CLEAN_MTREE_FILE=    ${ZROUTER_OBJ}/${TARGET_VENDOR}_${TARGET_DEVICE}_rootfs_clean.mtree
 
 ${ZROUTER_OBJ}/${TARGET_VENDOR}_${TARGET_DEVICE}_rootfs_clean:		${KERNELDESTDIR}/boot/kernel/kernel ${ROOTFS_DEPTEST}
 	for d in ${ROOTFS_COPY_DIRS} ; do \
@@ -489,7 +492,13 @@
 	 ln -sf vi nview
 	rm -rf ${NEW_ROOTFS}/etc/mpd
 	ln -s /tmp/etc/mpd ${NEW_ROOTFS}/etc/mpd
-	cd ${ZROUTER_OBJ}/${TARGET_VENDOR}_${TARGET_DEVICE}_rootfs_clean ; find ./usr/ -type d -empty -delete
+	cd ${ZROUTER_OBJ}/${TARGET_VENDOR}_${TARGET_DEVICE}_rootfs_clean ; \
+	    find ./usr/ -type d -empty -delete
+	cd ${ZROUTER_OBJ}/${TARGET_VENDOR}_${TARGET_DEVICE}_rootfs_clean ; \
+	    mtree -c -i -n -k uname,gname,mode,nochange | \
+		sed -E 's/uname=[[:alnum:]]+/uname=root/' | \
+		sed -E 's/gname=[[:alnum:]]+/gname=wheel/' > \
+		    ${ROOTFS_CLEAN_MTREE_FILE}
 
 #${ROOTFS_DEPTEST}:
 ${ROOTFS_DEPTEST}:		world	ports


More information about the Zrouter-src mailing list