diff --git a/CLFS/master.sh b/CLFS/master.sh index 78b2ba4..43455b8 100644 --- a/CLFS/master.sh +++ b/CLFS/master.sh @@ -20,20 +20,17 @@ cat << EOF @\$(call echo_message, Building) @mkdir \$(MOUNT_PT)/tools && \\ rm -f /tools && \\ - ln -s \$(MOUNT_PT)/tools / - @if [ ! -d \$(MOUNT_PT)/sources ]; then \\ - mkdir \$(MOUNT_PT)/sources; \\ - fi; - @chmod a+wt \$(MOUNT_PT)/sources && \\ + ln -s \$(MOUNT_PT)/tools / && \\ touch \$@ && \\ echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ echo --------------------------------------------------------------------------------\$(WHITE) 024-creatingcrossdir: 023-creatingtoolsdir + @\$(call echo_message, Building) @mkdir -v \$(MOUNT_PT)/cross-tools && \\ rm -f /cross-tools && \\ - ln -s \$(MOUNT_PT)/cross-tools / - @touch \$@ && \\ + ln -s \$(MOUNT_PT)/cross-tools / && \\ + touch \$@ && \\ echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ echo --------------------------------------------------------------------------------\$(WHITE) @@ -45,10 +42,10 @@ cat << EOF else \\ touch luser-exist; \\ fi; - @chown \$(LUSER) \$(MOUNT_PT) && \\ - chown \$(LUSER) \$(MOUNT_PT)/tools && \\ + @chown \$(LUSER) \$(MOUNT_PT)/tools && \\ chown \$(LUSER) \$(MOUNT_PT)/cross-tools && \\ - chown \$(LUSER) \$(MOUNT_PT)/sources && \\ + chmod -R a+wt \$(MOUNT_PT)/\$(SCRIPT_ROOT) && \\ + chmod a+wt \$(SRCSDIR) && \\ touch \$@ && \\ echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ echo --------------------------------------------------------------------------------\$(WHITE) diff --git a/CLFS2/master.sh b/CLFS2/master.sh index 54524bf..8ae492f 100644 --- a/CLFS2/master.sh +++ b/CLFS2/master.sh @@ -17,17 +17,8 @@ host_prep_Makefiles() { # Initialization of the system CLFS_HOST="$(echo $MACHTYPE | sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")" ( cat << EOF -023-creatingtoolsdir: - @\$(call echo_message, Building) - @if [ ! -d \$(MOUNT_PT)/sources ]; then \\ - mkdir \$(MOUNT_PT)/sources; \\ - fi; - @chmod a+wt \$(MOUNT_PT)/sources - @touch \$@ && \\ - echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ - echo --------------------------------------------------------------------------------\$(WHITE) -025-addinguser: 023-creatingtoolsdir +025-addinguser: @\$(call echo_message, Building) @if [ ! -d /home/\$(LUSER) ]; then \\ groupadd \$(LGROUP); \\ @@ -35,8 +26,6 @@ cat << EOF else \\ touch luser-exist; \\ fi; - @chown -R \$(LUSER) \$(MOUNT_PT) && \\ - chown \$(LUSER) \$(MOUNT_PT)/sources @touch \$@ && \\ echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ echo --------------------------------------------------------------------------------\$(WHITE) @@ -61,12 +50,10 @@ cat << EOF echo "" >> /home/\$(LUSER)/.bashrc && \\ echo "export CLFS_HOST=\"${CLFS_HOST}\"" >> /home/\$(LUSER)/.bashrc && \\ echo "export CLFS_TARGET=\"${TARGET}\"" >> /home/\$(LUSER)/.bashrc && \\ - echo "export CLFS_TARGET32=\"${TARGET32}\"" >> /home/\$(LUSER)/.bashrc && \\ echo "source $JHALFSDIR/envars" >> /home/\$(LUSER)/.bashrc @chown \$(LUSER):\$(LGROUP) /home/\$(LUSER)/.bashrc && \\ touch envars && \\ - chown \$(LUSER):\$(LGROUP) envars && \\ - chmod -R a+wt \$(MOUNT_PT) + chown \$(LUSER):\$(LGROUP) envars @touch \$@ && \\ echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ echo --------------------------------------------------------------------------------\$(WHITE) @@ -125,7 +112,7 @@ cat << EOF EOF ) >> $MKFILE.tmp - host_prep=" 023-creatingtoolsdir 025-addinguser 026-settingenvironment 027-create-directories 028-creating-sysfile" + host_prep=" 025-addinguser 026-settingenvironment 027-create-directories 028-creating-sysfile" } diff --git a/CLFS3/master.sh b/CLFS3/master.sh index f90a057..eed9990 100644 --- a/CLFS3/master.sh +++ b/CLFS3/master.sh @@ -17,17 +17,8 @@ host_prep_Makefiles() { # Initialization of the system CLFS_HOST="$(echo $MACHTYPE | sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")" ( cat << EOF -023-creatingtoolsdir: - @\$(call echo_message, Building) - @if [ ! -d \$(MOUNT_PT)/sources ]; then \\ - mkdir \$(MOUNT_PT)/sources; \\ - fi; - @chmod a+wt \$(MOUNT_PT)/sources - @touch \$@ && \\ - echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ - echo --------------------------------------------------------------------------------\$(WHITE) -025-addinguser: 023-creatingtoolsdir +025-addinguser: @\$(call echo_message, Building) @if [ ! -d /home/\$(LUSER) ]; then \\ groupadd \$(LGROUP); \\ @@ -35,8 +26,6 @@ cat << EOF else \\ touch luser-exist; \\ fi; - @chown -R \$(LUSER) \$(MOUNT_PT) && \\ - chown \$(LUSER) \$(MOUNT_PT)/sources @touch \$@ && \\ echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ echo --------------------------------------------------------------------------------\$(WHITE) @@ -66,8 +55,7 @@ cat << EOF echo "source $JHALFSDIR/envars" >> /home/\$(LUSER)/.bashrc @chown \$(LUSER):\$(LGROUP) /home/\$(LUSER)/.bashrc && \\ touch envars && \\ - chown \$(LUSER):\$(LGROUP) envars && \\ - chmod -R a+wt \$(MOUNT_PT) + chown \$(LUSER):\$(LGROUP) envars @touch \$@ && \\ echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ echo --------------------------------------------------------------------------------\$(WHITE) @@ -126,7 +114,7 @@ cat << EOF EOF ) >> $MKFILE.tmp - host_prep=" 023-creatingtoolsdir 025-addinguser 026-settingenvironment 027-create-directories 028-creating-sysfile" + host_prep=" 025-addinguser 026-settingenvironment 027-create-directories 028-creating-sysfile" }