corrections to HLFS code, makefile creation
This commit is contained in:
parent
50fb0114c4
commit
08a4953a97
1 changed files with 8 additions and 19 deletions
|
@ -12,7 +12,7 @@ set -e # Enable error trapping
|
|||
process_toolchain() { # embryo,cocoon and butterfly need special handling
|
||||
#----------------------------#
|
||||
local toolchain=$1
|
||||
local this_script=$2
|
||||
local this_file=$2
|
||||
local tc_phase
|
||||
local binutil_tarball
|
||||
local gcc_core_tarball
|
||||
|
@ -61,10 +61,10 @@ EOF
|
|||
|
||||
case ${tc_phase} in
|
||||
butterfly)
|
||||
[[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${this_script}"
|
||||
CHROOT_wrt_RunAsRoot "$toolchain" "$this_script"
|
||||
[[ "$TEST" != "0" ]] && CHROOT_wrt_test_log "${toolchain}"
|
||||
CHROOT_wrt_RunAsRoot "$this_file"
|
||||
;;
|
||||
*) LUSER_wrt_RunAsUser "$toolchain" "$this_script"
|
||||
*) LUSER_wrt_RunAsUser "$this_file"
|
||||
;;
|
||||
esac
|
||||
#
|
||||
|
@ -127,6 +127,7 @@ cat << EOF
|
|||
touch luser-exist; \\
|
||||
fi;
|
||||
@chown \$(LUSER) \$(MOUNT_PT)/tools && \\
|
||||
chown -R \$(LUSER) \$(MOUNT_PT)/\$(SCRIPT_ROOT) && \\
|
||||
chown \$(LUSER) \$(MOUNT_PT)/sources && \\
|
||||
touch \$@ && \\
|
||||
echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
|
||||
|
@ -153,6 +154,7 @@ cat << EOF
|
|||
echo "source $JHALFSDIR/envars" >> /home/\$(LUSER)/.bashrc && \\
|
||||
chown \$(LUSER):\$(LGROUP) /home/\$(LUSER)/.bashrc && \\
|
||||
touch envars && \\
|
||||
chown \$(LUSER) envars && \\
|
||||
touch \$@ && \\
|
||||
echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
|
||||
echo --------------------------------------------------------------------------------\$(WHITE)
|
||||
|
@ -553,7 +555,7 @@ EOF
|
|||
(
|
||||
cat << EOF
|
||||
|
||||
all: mk_SETUP mk_LUSER mk_CHROOT mk_BOOT
|
||||
all: mk_SETUP mk_LUSER mk_CHROOT mk_BOOT do-housekeeping
|
||||
@\$(call echo_finished,$VERSION)
|
||||
|
||||
|
||||
|
@ -591,19 +593,6 @@ CHROOT: $chapter6
|
|||
BOOT: $chapter7
|
||||
|
||||
|
||||
|
||||
|
||||
all: chapter3 chapter5 chapter6 chapter7 do-housekeeping
|
||||
@\$(call echo_finished,$VERSION)
|
||||
|
||||
chapter3: 020-creatingtoolsdir 021-addinguser 022-settingenvironment
|
||||
|
||||
chapter5: chapter3 $chapter5 restore-luser-env
|
||||
|
||||
chapter6: chapter5 $chapter6
|
||||
|
||||
chapter7: chapter6 $chapter7
|
||||
|
||||
clean-all: clean
|
||||
rm -rf ./{hlfs-commands,logs,Makefile,*.xsl,makefile-functions,packages,patches}
|
||||
|
||||
|
|
Reference in a new issue