CLFSx: Revised host_prep_Makefile targets.
This commit is contained in:
parent
6222f2f1e3
commit
9ae0875eaa
3 changed files with 13 additions and 41 deletions
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
||||
|
|
Reference in a new issue