r3154 - in jhalfs/trunk: . CLFS common

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Wed Oct 4 15:11:33 PDT 2006


Author: georgeb
Date: 2006-10-04 16:11:32 -0600 (Wed, 04 Oct 2006)
New Revision: 3154

Modified:
   jhalfs/trunk/CLFS/master.sh
   jhalfs/trunk/Config.in
   jhalfs/trunk/common/makefile-functions
   jhalfs/trunk/jhalfs
Log:
Added blfs-tool support scripts to CLFS, enabled selection in Config.in

Modified: jhalfs/trunk/CLFS/master.sh
===================================================================
--- jhalfs/trunk/CLFS/master.sh	2006-10-03 21:53:59 UTC (rev 3153)
+++ jhalfs/trunk/CLFS/master.sh	2006-10-04 22:11:32 UTC (rev 3154)
@@ -1116,18 +1116,22 @@
   $bootscripts_cmds          # mk_BOOTSCRIPT (CHROOT) $bootscripttools
   $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
   # to the top of the real Makefile.
 (
     cat << EOF
 $HEADER
 
-SRC          = /sources
-MOUNT_PT     = $BUILDDIR
-PKG_LST      = $PKG_LST
-LUSER        = $LUSER
-LGROUP       = $LGROUP
-SCRIPT_ROOT  = $SCRIPT_ROOT
+SRC            = /sources
+MOUNT_PT       = $BUILDDIR
+PKG_LST        = $PKG_LST
+LUSER          = $LUSER
+LGROUP         = $LGROUP
+SCRIPT_ROOT    = $SCRIPT_ROOT
+ADD_BLFS_TOOLS = $BLFS_TOOL
 
 BASEDIR      = \$(MOUNT_PT)
 SRCSDIR      = \$(BASEDIR)/sources
@@ -1166,7 +1170,7 @@
                 -e 's|\\$|&&|g' \
                 -e 's|exit||g' \
                 -e 's|$| -c|' \
-                -e 's|"$$CLFS"|$(MOUNT_PT)|'\
+          P      -e 's|"$$CLFS"|$(MOUNT_PT)|'\
                 -e 's|set -e||'`
     echo -e "CHROOT1= $chroot\n" >> $MKFILE
   fi
@@ -1177,7 +1181,7 @@
 (
 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
 	@\$(call echo_finished,$VERSION)
 
@@ -1226,12 +1230,19 @@
 	@( sudo \$(CHROOT1) "cd \$(SCRIPT_ROOT) && make CHROOT_JAIL")
 	@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
 AS_LUSER:    $cross_tools $temptools
 SUDO:	     $orphan_scripts
 CHROOT_JAIL: ${chroottools}${boottools} $testsuitetools $basicsystem  $bootscripttools  $bootabletools
+BLFS_TOOL:   $blfs_tool
 
 do-housekeeping:
 	@-umount \$(MOUNT_PT)/dev/pts
@@ -1262,6 +1273,7 @@
 ) >> $MKFILE
   else echo -e "\t at true\n" >> $MKFILE; fi
 
+
 fi
 
 ################### BOOT #####################
@@ -1275,7 +1287,7 @@
 	@sudo make do-housekeeping
 	@\$(call echo_boot_finished,$VERSION)
 
-makesys: mk_FINAL
+makesys: mk_FINAL mk_BLFS_TOOL
 	@\$(call echo_finished,$VERSION)
 
 
@@ -1305,7 +1317,7 @@
 	@(sudo \$(SU_LUSER) "source .bashrc && cd \$(MOUNT_PT)/\$(SCRIPT_ROOT) && make AS_LUSER" )
 	@touch \$@
 
-mk_SUDO: mk_SYSTOOLS
+mk_SUDO: mk_CROSS
 	@sudo make SUDO
 	@touch \$@
 
@@ -1316,10 +1328,19 @@
 	@( make AS_ROOT )
 	@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
 AS_LUSER:   $cross_tools $temptools ${chroottools}${boottools}
 SUDO:	    $orphan_scripts
 AS_ROOT:    $testsuitetools $basicsystem $bootscripttools $bootabletools
+BLFS_TOOL:  $blfs_tool
 
 do-housekeeping:
 	@-rm /tools /cross-tools

Modified: jhalfs/trunk/Config.in
===================================================================
--- jhalfs/trunk/Config.in	2006-10-03 21:53:59 UTC (rev 3153)
+++ jhalfs/trunk/Config.in	2006-10-04 22:11:32 UTC (rev 3154)
@@ -57,7 +57,7 @@
 				#-- A local working copy
 
 		config	BRANCH
-			bool	"Branch or stable book" if !BOOK_HLFS && !BOOK_CLFS2
+			bool	"Branch or stable book" if !BOOK_CLFS2
 			help
 				#-- A supported SVN branch or stable released book
 	endchoice
@@ -272,7 +272,7 @@
 		bool	"Add blfs-tool support"
 		default	n
 #		depends on !BOOK_BLFS
-		depends on BOOK_LFS
+		depends on BOOK_LFS || BOOK_CLFS
 		help
 			#--- Activating this option additional packages needed to
 			#    use blfs-tool will be installed.

Modified: jhalfs/trunk/common/makefile-functions
===================================================================
--- jhalfs/trunk/common/makefile-functions	2006-10-03 21:53:59 UTC (rev 3153)
+++ jhalfs/trunk/common/makefile-functions	2006-10-04 22:11:32 UTC (rev 3154)
@@ -17,7 +17,7 @@
 define echo_PHASE
   @clear
   @echo $(BOLD)--------------------------------------------------------------------------------
-  @echo Executing $(BLUE)$(1)$(WHITE) scripts
+  @echo -e \\t\\tExecuting $(BLUE)$(1)$(WHITE) scripts
   @echo $(BOLD)--------------------------------------------------------------------------------
   #echo $(WHITE)
 endef

Modified: jhalfs/trunk/jhalfs
===================================================================
--- jhalfs/trunk/jhalfs	2006-10-03 21:53:59 UTC (rev 3153)
+++ jhalfs/trunk/jhalfs	2006-10-04 22:11:32 UTC (rev 3154)
@@ -130,6 +130,10 @@
     LFSVRS=${BRANCH_ID}
     TREE=branches/${BRANCH_ID#branch-}/BOOK
     ;;
+  2.4-branch )
+    LFSVRS=${BRANCH_ID}
+    TREE=branches/2.4-branch
+    ;;    
   * )
     case $PROGNAME in
       lfs | hlfs )




More information about the alfs-log mailing list