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; \\ exit 1; \\
fi fi
ck_LFS:
@if [ \`echo \$(LFS)\`x = "x" ]; then \\
echo "--------------------------------------------------"; \\
echo "Enviroment variable LFS must be set"; \\
echo "--------------------------------------------------"; \\
exit 1; \
fi
mk_SETUP: mk_SETUP:
@\$(call echo_SU_request) @\$(call echo_SU_request)
@sudo make BREAKPOINT=\$(BREAKPOINT) SETUP @sudo make BREAKPOINT=\$(BREAKPOINT) SETUP
@ -512,35 +504,35 @@ mk_CUSTOM_TOOLS: mk_BLFS_TOOL
fi; fi;
@touch \$@ @touch \$@
devices: ck_LFS ck_UID devices: ck_UID
sudo mount -v --bind /dev \$(LFS)/dev sudo mount -v --bind /dev \$(MOUNT_PT)/dev
sudo mount -vt devpts devpts \$(LFS)/dev/pts sudo mount -vt devpts devpts \$(MOUNT_PT)/dev/pts
sudo mount -vt proc proc \$(LFS)/proc sudo mount -vt proc proc \$(MOUNT_PT)/proc
sudo mount -vt sysfs sysfs \$(LFS)/sys sudo mount -vt sysfs sysfs \$(MOUNT_PT)/sys
if [ -h \$(LFS)/dev/shm ]; then \\ if [ -h \$(MOUNT_PT)/dev/shm ]; then \\
link=\$\$(readlink \$(LFS)/dev/shm); \\ link=\$\$(readlink \$(MOUNT_PT)/dev/shm); \\
sudo mkdir -p \$(LFS)/\$\$link; \\ sudo mkdir -p \$(MOUNT_PT)/\$\$link; \\
sudo mount -vt tmpfs shm \$(LFS)/\$\$link; \\ sudo mount -vt tmpfs shm \$(MOUNT_PT)/\$\$link; \\
unset link; \\ unset link; \\
else \\ else \\
sudo mount -vt tmpfs shm \$(LFS)/dev/shm; \\ sudo mount -vt tmpfs shm \$(MOUNT_PT)/dev/shm; \\
fi fi
teardown: ck_LFS teardown:
sudo umount -v \$(LFS)/sys sudo umount -v \$(MOUNT_PT)/sys
sudo umount -v \$(LFS)/proc sudo umount -v \$(MOUNT_PT)/proc
sudo umount -v \$(LFS)/dev/pts sudo umount -v \$(MOUNT_PT)/dev/pts
if [ -h \$(LFS)/dev/shm ]; then \\ if [ -h \$(MOUNT_PT)/dev/shm ]; then \\
link=\$\$(readlink \$(LFS)/dev/shm); \\ link=\$\$(readlink \$(MOUNT_PT)/dev/shm); \\
sudo umount -v \$(LFS)/\$\$link; \\ sudo umount -v \$(MOUNT_PT)/\$\$link; \\
unset link; \\ unset link; \\
else \\ else \\
sudo umount -v \$(LFS)/dev/shm; \\ sudo umount -v \$(MOUNT_PT)/dev/shm; \\
fi fi
sudo umount -v \$(LFS)/dev sudo umount -v \$(MOUNT_PT)/dev
chroot: devices 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\\\$\$ ' \\ HOME=/root TERM=\$(TERM) PS1='\\u:\\w\\\$\$ ' \\
PATH=/bin:/usr/bin:/sbin:/usr/sbin \\ PATH=/bin:/usr/bin:/sbin:/usr/sbin \\
/tools/bin/bash --login /tools/bin/bash --login

View file

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

11
TODO
View file

@ -5,16 +5,17 @@
MASTER SCRIPT 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 xLFS MODULES
------------ ------------
- To develop a new "restart" Makefile target code to allow resuming - Add a way to choose the network configuration (ip, gateway, etc).
a stopped build after a host reboot, if possible. - [CLFS] Add a switch to choose between static or DHCP network configuration
- Eliminate the use of and the need for the LFS variable for "devices", for CLFS.
"chroot" and "teardown" targets
BLFS MODULE (See BLFS/TODO) BLFS MODULE (See BLFS/TODO)