Added blfs-tool support scripts to CLFS, enabled selection in Config.in

This commit is contained in:
George Boudreau 2006-10-04 22:11:32 +00:00
parent 6feeca3ae5
commit c10570d04b
4 changed files with 39 additions and 14 deletions

View file

@ -1116,18 +1116,22 @@ set -e
$bootscripts_cmds # mk_BOOTSCRIPT (CHROOT) $bootscripttools $bootscripts_cmds # mk_BOOTSCRIPT (CHROOT) $bootscripttools
$bootable_cmds # mk_BOOTABLE (CHROOT) $bootabletools $bootable_cmds # mk_BOOTABLE (CHROOT) $bootabletools
# Add the BLFS_TOOL targets, if needed
[[ "$BLFS_TOOL" = "y" ]] && wrt_blfs_tool_targets
# Add a header, some variables and include the function file # Add a header, some variables and include the function file
# to the top of the real Makefile. # to the top of the real Makefile.
( (
cat << EOF cat << EOF
$HEADER $HEADER
SRC = /sources SRC = /sources
MOUNT_PT = $BUILDDIR MOUNT_PT = $BUILDDIR
PKG_LST = $PKG_LST PKG_LST = $PKG_LST
LUSER = $LUSER LUSER = $LUSER
LGROUP = $LGROUP LGROUP = $LGROUP
SCRIPT_ROOT = $SCRIPT_ROOT SCRIPT_ROOT = $SCRIPT_ROOT
ADD_BLFS_TOOLS = $BLFS_TOOL
BASEDIR = \$(MOUNT_PT) BASEDIR = \$(MOUNT_PT)
SRCSDIR = \$(BASEDIR)/sources SRCSDIR = \$(BASEDIR)/sources
@ -1166,7 +1170,7 @@ EOF
-e 's|\\$|&&|g' \ -e 's|\\$|&&|g' \
-e 's|exit||g' \ -e 's|exit||g' \
-e 's|$| -c|' \ -e 's|$| -c|' \
-e 's|"$$CLFS"|$(MOUNT_PT)|'\ P -e 's|"$$CLFS"|$(MOUNT_PT)|'\
-e 's|set -e||'` -e 's|set -e||'`
echo -e "CHROOT1= $chroot\n" >> $MKFILE echo -e "CHROOT1= $chroot\n" >> $MKFILE
fi fi
@ -1177,7 +1181,7 @@ if [[ "${METHOD}" = "chroot" ]]; then
( (
cat << EOF cat << EOF
all: ck_UID mk_SETUP mk_CROSS mk_SUDO mk_SYSTOOLS create-sbu_du-report all: ck_UID mk_SETUP mk_CROSS mk_SUDO mk_SYSTOOLS create-sbu_du-report mk_BLFS_TOOL
@sudo make do-housekeeping @sudo make do-housekeeping
@\$(call echo_finished,$VERSION) @\$(call echo_finished,$VERSION)
@ -1226,12 +1230,19 @@ mk_SYSTOOLS: mk_SUDO
@( sudo \$(CHROOT1) "cd \$(SCRIPT_ROOT) && make CHROOT_JAIL") @( sudo \$(CHROOT1) "cd \$(SCRIPT_ROOT) && make CHROOT_JAIL")
@touch \$@ @touch \$@
mk_BLFS_TOOL: mk_SYSTOOLS
@\$(call echo_PHASE,Building BLFS-TOOLS); \\
@if [ "\$(ADD_BLFS_TOOLS)" = "y" ]; then \\
sudo mkdir -p $BUILDDIR$TRACKING_DIR; \\
sudo \$(CHROOT1) "cd \$(SCRIPT_ROOT) && make BLFS_TOOL"; \\
fi
@touch \$@
SETUP: $host_prep SETUP: $host_prep
AS_LUSER: $cross_tools $temptools AS_LUSER: $cross_tools $temptools
SUDO: $orphan_scripts SUDO: $orphan_scripts
CHROOT_JAIL: ${chroottools}${boottools} $testsuitetools $basicsystem $bootscripttools $bootabletools CHROOT_JAIL: ${chroottools}${boottools} $testsuitetools $basicsystem $bootscripttools $bootabletools
BLFS_TOOL: $blfs_tool
do-housekeeping: do-housekeeping:
@-umount \$(MOUNT_PT)/dev/pts @-umount \$(MOUNT_PT)/dev/pts
@ -1262,6 +1273,7 @@ EOF
) >> $MKFILE ) >> $MKFILE
else echo -e "\t@true\n" >> $MKFILE; fi else echo -e "\t@true\n" >> $MKFILE; fi
fi fi
################### BOOT ##################### ################### BOOT #####################
@ -1275,7 +1287,7 @@ all: ck_UID mk_SETUP mk_CROSS mk_SUDO
@sudo make do-housekeeping @sudo make do-housekeeping
@\$(call echo_boot_finished,$VERSION) @\$(call echo_boot_finished,$VERSION)
makesys: mk_FINAL makesys: mk_FINAL mk_BLFS_TOOL
@\$(call echo_finished,$VERSION) @\$(call echo_finished,$VERSION)
@ -1305,7 +1317,7 @@ mk_CROSS: mk_SETUP
@(sudo \$(SU_LUSER) "source .bashrc && cd \$(MOUNT_PT)/\$(SCRIPT_ROOT) && make AS_LUSER" ) @(sudo \$(SU_LUSER) "source .bashrc && cd \$(MOUNT_PT)/\$(SCRIPT_ROOT) && make AS_LUSER" )
@touch \$@ @touch \$@
mk_SUDO: mk_SYSTOOLS mk_SUDO: mk_CROSS
@sudo make SUDO @sudo make SUDO
@touch \$@ @touch \$@
@ -1316,10 +1328,19 @@ mk_FINAL:
@( make AS_ROOT ) @( make AS_ROOT )
@touch \$@ @touch \$@
mk_BLFS_TOOL: mk_FINAL
@\$(call echo_PHASE,Building BLFS-TOOLS)
@if [ "\$(ADD_BLFS_TOOLS)" = "y" ]; then \\
mkdir -p $TRACKING_DIR; \\
make BLFS_TOOL; \\
fi
@touch \$@
SETUP: $host_prep SETUP: $host_prep
AS_LUSER: $cross_tools $temptools ${chroottools}${boottools} AS_LUSER: $cross_tools $temptools ${chroottools}${boottools}
SUDO: $orphan_scripts SUDO: $orphan_scripts
AS_ROOT: $testsuitetools $basicsystem $bootscripttools $bootabletools AS_ROOT: $testsuitetools $basicsystem $bootscripttools $bootabletools
BLFS_TOOL: $blfs_tool
do-housekeeping: do-housekeeping:
@-rm /tools /cross-tools @-rm /tools /cross-tools

View file

@ -57,7 +57,7 @@ menu "--- BOOK Settings"
#-- A local working copy #-- A local working copy
config BRANCH config BRANCH
bool "Branch or stable book" if !BOOK_HLFS && !BOOK_CLFS2 bool "Branch or stable book" if !BOOK_CLFS2
help help
#-- A supported SVN branch or stable released book #-- A supported SVN branch or stable released book
endchoice endchoice
@ -272,7 +272,7 @@ menu "--- BOOK Settings"
bool "Add blfs-tool support" bool "Add blfs-tool support"
default n default n
# depends on !BOOK_BLFS # depends on !BOOK_BLFS
depends on BOOK_LFS depends on BOOK_LFS || BOOK_CLFS
help help
#--- Activating this option additional packages needed to #--- Activating this option additional packages needed to
# use blfs-tool will be installed. # use blfs-tool will be installed.

View file

@ -17,7 +17,7 @@ REVERSE = ""
define echo_PHASE define echo_PHASE
@clear @clear
@echo $(BOLD)-------------------------------------------------------------------------------- @echo $(BOLD)--------------------------------------------------------------------------------
@echo Executing $(BLUE)$(1)$(WHITE) scripts @echo -e \\t\\tExecuting $(BLUE)$(1)$(WHITE) scripts
@echo $(BOLD)-------------------------------------------------------------------------------- @echo $(BOLD)--------------------------------------------------------------------------------
#echo $(WHITE) #echo $(WHITE)
endef endef

4
jhalfs
View file

@ -130,6 +130,10 @@ case $BRANCH_ID in
LFSVRS=${BRANCH_ID} LFSVRS=${BRANCH_ID}
TREE=branches/${BRANCH_ID#branch-}/BOOK TREE=branches/${BRANCH_ID#branch-}/BOOK
;; ;;
2.4-branch )
LFSVRS=${BRANCH_ID}
TREE=branches/2.4-branch
;;
* ) * )
case $PROGNAME in case $PROGNAME in
lfs | hlfs ) lfs | hlfs )