r3755 - in jhalfs/trunk: . LFS

pierre at higgs.linuxfromscratch.org pierre at higgs.linuxfromscratch.org
Tue Nov 12 05:57:09 PST 2013


Author: pierre
Date: Tue Nov 12 05:57:09 2013
New Revision: 3755

Log:
Some updates and remove a long standing useless reference to
a $(LFS) variable in LFS Makefile "chroot" target.

Modified:
   jhalfs/trunk/LFS/master.sh
   jhalfs/trunk/README.PACKAGE_MANAGEMENT
   jhalfs/trunk/TODO

Modified: jhalfs/trunk/LFS/master.sh
==============================================================================
--- jhalfs/trunk/LFS/master.sh	Fri Nov  8 14:10:11 2013	(r3754)
+++ jhalfs/trunk/LFS/master.sh	Tue Nov 12 05:57:09 2013	(r3755)
@@ -464,14 +464,6 @@
 	  exit 1; \\
 	fi
 
-ck_LFS:
-	@if [ \`echo \$(LFS)\`x = "x" ]; then \\
-	  echo "--------------------------------------------------"; \\
-	  echo "Enviroment variable LFS must be set";                \\
-	  echo "--------------------------------------------------"; \\
-	  exit 1; \
-	fi
-
 mk_SETUP:
 	@\$(call echo_SU_request)
 	@sudo make BREAKPOINT=\$(BREAKPOINT) SETUP
@@ -512,35 +504,35 @@
 	fi;
 	@touch \$@
 
-devices: ck_LFS ck_UID
-	sudo mount -v --bind /dev \$(LFS)/dev
-	sudo mount -vt devpts devpts \$(LFS)/dev/pts
-	sudo mount -vt proc proc \$(LFS)/proc
-	sudo mount -vt sysfs sysfs \$(LFS)/sys
-	if [ -h \$(LFS)/dev/shm ]; then \\
-	  link=\$\$(readlink \$(LFS)/dev/shm); \\
-	  sudo mkdir -p \$(LFS)/\$\$link; \\
-	  sudo mount -vt tmpfs shm \$(LFS)/\$\$link; \\
+devices: ck_UID
+	sudo mount -v --bind /dev \$(MOUNT_PT)/dev
+	sudo mount -vt devpts devpts \$(MOUNT_PT)/dev/pts
+	sudo mount -vt proc proc \$(MOUNT_PT)/proc
+	sudo mount -vt sysfs sysfs \$(MOUNT_PT)/sys
+	if [ -h \$(MOUNT_PT)/dev/shm ]; then \\
+	  link=\$\$(readlink \$(MOUNT_PT)/dev/shm); \\
+	  sudo mkdir -p \$(MOUNT_PT)/\$\$link; \\
+	  sudo mount -vt tmpfs shm \$(MOUNT_PT)/\$\$link; \\
 	  unset link; \\
 	else \\
-	  sudo mount -vt tmpfs shm \$(LFS)/dev/shm; \\
+	  sudo mount -vt tmpfs shm \$(MOUNT_PT)/dev/shm; \\
 	fi
 
-teardown: ck_LFS
-	sudo umount -v \$(LFS)/sys
-	sudo umount -v \$(LFS)/proc
-	sudo umount -v \$(LFS)/dev/pts
-	if [ -h \$(LFS)/dev/shm ]; then \\
-	  link=\$\$(readlink \$(LFS)/dev/shm); \\
-	  sudo umount -v \$(LFS)/\$\$link; \\
+teardown: 
+	sudo umount -v \$(MOUNT_PT)/sys
+	sudo umount -v \$(MOUNT_PT)/proc
+	sudo umount -v \$(MOUNT_PT)/dev/pts
+	if [ -h \$(MOUNT_PT)/dev/shm ]; then \\
+	  link=\$\$(readlink \$(MOUNT_PT)/dev/shm); \\
+	  sudo umount -v \$(MOUNT_PT)/\$\$link; \\
 	  unset link; \\
 	else \\
-	  sudo umount -v \$(LFS)/dev/shm; \\
+	  sudo umount -v \$(MOUNT_PT)/dev/shm; \\
 	fi
-	sudo umount -v \$(LFS)/dev
+	sudo umount -v \$(MOUNT_PT)/dev
 
 chroot: devices
-	sudo /usr/sbin/chroot \$(LFS) /tools/bin/env -i \\
+	sudo /usr/sbin/chroot \$(MOUNT_PT) /tools/bin/env -i \\
       HOME=/root TERM=\$(TERM) PS1='\\u:\\w\\\$\$ ' \\
       PATH=/bin:/usr/bin:/sbin:/usr/sbin \\
       /tools/bin/bash --login

Modified: jhalfs/trunk/README.PACKAGE_MANAGEMENT
==============================================================================
--- jhalfs/trunk/README.PACKAGE_MANAGEMENT	Fri Nov  8 14:10:11 2013	(r3754)
+++ jhalfs/trunk/README.PACKAGE_MANAGEMENT	Tue Nov 12 05:57:09 2013	(r3755)
@@ -1,6 +1,5 @@
 TITLE : Package management in jhalfs
-ADDED : $Date$
-BY    : Pierre Labastie
+BY    : Pierre Labastie (work in progress)
 
 1. INTRODUCTION:
 

Modified: jhalfs/trunk/TODO
==============================================================================
--- jhalfs/trunk/TODO	Fri Nov  8 14:10:11 2013	(r3754)
+++ jhalfs/trunk/TODO	Tue Nov 12 05:57:09 2013	(r3755)
@@ -5,16 +5,17 @@
 MASTER SCRIPT
 -------------
 
-  - Nothing for now.
+  - Add a way to choose the network configuration (ip, gateway, etc).
+  - [CLFS] Add a switch to choose between static or DHCP network configuration
+    for CLFS.
 
 
 xLFS MODULES
 ------------
 
-  - To develop a new "restart" Makefile target code to allow resuming
-  a stopped build after a host reboot, if possible.
-  - Eliminate the use of and the need for the LFS variable for "devices",
-  "chroot" and "teardown" targets
+  - Add a way to choose the network configuration (ip, gateway, etc).
+  - [CLFS] Add a switch to choose between static or DHCP network configuration
+    for CLFS.
 
 
 BLFS MODULE (See BLFS/TODO)



More information about the alfs-log mailing list