r3250 - jhalfs/trunk/LFS
manuel at linuxfromscratch.org
manuel at linuxfromscratch.org
Mon Dec 4 06:49:51 MST 2006
Author: manuel
Date: 2006-12-04 06:48:48 -0700 (Mon, 04 Dec 2006)
New Revision: 3250
Modified:
jhalfs/trunk/LFS/lfs.xsl
jhalfs/trunk/LFS/master.sh
Log:
LFS changes:
Skip creation of chapters 4 and 9 scripts.
Creating /etc/lfs-release as part af all target.
Removed hardcoded script number.
Modified: jhalfs/trunk/LFS/lfs.xsl
===================================================================
--- jhalfs/trunk/LFS/lfs.xsl 2006-12-04 12:49:35 UTC (rev 3249)
+++ jhalfs/trunk/LFS/lfs.xsl 2006-12-04 13:48:48 UTC (rev 3250)
@@ -44,8 +44,13 @@
</xsl:template>
<xsl:template match="sect1">
- <xsl:if test="count(descendant::screen/userinput) > 0 and
- count(descendant::screen/userinput) > count(descendant::screen[@role='nodump'])">
+ <xsl:if test="(../@id='chapter-temporary-tools' or
+ ../@id='chapter-building-system' or
+ ../@id='chapter-bootscripts' or
+ ../@id='chapter-bootable') and
+ count(descendant::screen/userinput) > 0 and
+ count(descendant::screen/userinput) >
+ count(descendant::screen[@role='nodump'])">
<!-- The dirs names -->
<xsl:variable name="pi-dir" select="../processing-instruction('dbhtml')"/>
<xsl:variable name="pi-dir-value" select="substring-after($pi-dir,'dir=')"/>
Modified: jhalfs/trunk/LFS/master.sh
===================================================================
--- jhalfs/trunk/LFS/master.sh 2006-12-04 12:49:35 UTC (rev 3249)
+++ jhalfs/trunk/LFS/master.sh 2006-12-04 13:48:48 UTC (rev 3250)
@@ -281,25 +281,19 @@
}
#----------------------------#
-chapter789_Makefiles() {
+chapter78_Makefiles() {
#----------------------------#
- echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter7/8/9 ( BOOT ) ${R_arrow}"
+ echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter7/8 ( BOOT ) ${R_arrow}"
- for file in chapter0{7,8,9}/* ; do
+ for file in chapter0{7,8}/* ; do
# Keep the script file name
this_script=`basename $file`
# Grub must be configured manually.
- # The filesystems can't be unmounted via Makefile and the user
- # should enter the chroot environment to create the root
- # password, edit several files and setup Grub.
- #
+ # Handle fstab creation.
# If no .config file is supplied, the kernel build is skipped
- #
case ${this_script} in
*grub) continue ;;
- *reboot) continue ;;
- *console) continue ;; # Use the file generated by lfs-bootscripts
*fstab) [[ ! -z ${FSTAB} ]] && cp ${FSTAB} $BUILDDIR/sources/fstab ;;
*kernel) [[ -z ${CONFIG} ]] && continue
cp ${CONFIG} $BUILDDIR/sources/kernel-config ;;
@@ -307,7 +301,7 @@
# First append each name of the script files to a list (this will become
# the names of the targets in the Makefile
- chapter789="$chapter789 ${this_script}"
+ chapter78="$chapter78 ${this_script}"
#--------------------------------------------------------------------#
# >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<< #
@@ -358,7 +352,7 @@
# Keep the script file name for Makefile dependencies.
PREV=${this_script}
- done # for file in chapter0{7,8,9}/*
+ done # for file in chapter0{7,8}/*
}
@@ -380,7 +374,7 @@
chapter6_Makefiles
# Add the iterations targets, if needed
[[ "$COMPARE" = "y" ]] && wrt_compare_targets
- chapter789_Makefiles
+ chapter78_Makefiles
# Add the BLFS_TOOL targets, if needed
[[ "$BLFS_TOOL" = "y" ]] && wrt_blfs_tool_targets
@@ -415,6 +409,7 @@
all: ck_UID mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report mk_BLFS_TOOL
@sudo make do_housekeeping
+ @sudo echo "$VERSION - jhalfs build" > \$(MOUNT_PT)/etc/lfs-release
@\$(call echo_finished,$VERSION)
ck_UID:
@@ -453,7 +448,7 @@
ln -sf /tools/bin/bash bash; ln -sf bash sh; \\
sudo chown -R 0:0 \$(MOUNT_PT)/bin; \\
fi;
- @sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chapter06/063-createfiles
+ @sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chapter06/*-createfiles
@\$(call echo_CHROOT_request)
@( sudo \$(CHROOT1) "cd \$(SCRIPT_ROOT) && make CHROOT")
@touch \$@
@@ -476,7 +471,7 @@
LUSER: $chapter5
SUDO: $runasroot
CHROOT: $chapter6
-BOOT: $chapter789
+BOOT: $chapter78
BLFS_TOOL: $blfs_tool
More information about the alfs-log
mailing list