From f60a8b73b379bf1a2576606f5dffe2e6b58134f1 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Tue, 12 Nov 2013 13:57:09 +0000 Subject: [PATCH] Some updates and remove a long standing useless reference to a $(LFS) variable in LFS Makefile "chroot" target. --- LFS/master.sh | 48 ++++++++++++++++----------------------- README.PACKAGE_MANAGEMENT | 3 +-- TODO | 11 +++++---- 3 files changed, 27 insertions(+), 35 deletions(-) diff --git a/LFS/master.sh b/LFS/master.sh index 816ffde..484e7e3 100644 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -464,14 +464,6 @@ ck_UID: 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 @@ mk_CUSTOM_TOOLS: mk_BLFS_TOOL 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 diff --git a/README.PACKAGE_MANAGEMENT b/README.PACKAGE_MANAGEMENT index dc3ff95..47b8c1d 100644 --- a/README.PACKAGE_MANAGEMENT +++ b/README.PACKAGE_MANAGEMENT @@ -1,6 +1,5 @@ TITLE : Package management in jhalfs -ADDED : $Date$ -BY : Pierre Labastie +BY : Pierre Labastie (work in progress) 1. INTRODUCTION: diff --git a/TODO b/TODO index e3a392e..173fcb5 100644 --- a/TODO +++ b/TODO @@ -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)