Some updates and remove a long standing useless reference to

a $(LFS) variable in LFS Makefile "chroot" target.
This commit is contained in:
Pierre Labastie 2013-11-12 13:57:09 +00:00
parent bb4b5c3c00
commit f60a8b73b3
3 changed files with 27 additions and 35 deletions

View file

@ -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

View file

@ -1,6 +1,5 @@
TITLE : Package management in jhalfs
ADDED : $Date$
BY : Pierre Labastie
BY : Pierre Labastie (work in progress)
1. INTRODUCTION:

11
TODO
View file

@ -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)