diff --git a/Config.in b/Config.in index 2d2daf3..585bf9f 100644 --- a/Config.in +++ b/Config.in @@ -124,6 +124,39 @@ menu "BOOK Settings" help The full path to a local copy of the book XML sources + choice + depends on (BOOK_LFS || BOOK_LFS_SYSD) && (BRANCH || WORKING_COPY) + prompt "Mutilib" + default LFS_MULTILIB_NO + config LFS_MULTILIB_NO + bool "Standard LFS on i686 or amd64" + help + Ues standard LFS book (choose this if not multilib source) + + config LFS_MULTILIB_I686 + bool "Multilib LFS on amd64 with i686 libraries" + help + Use Multilib LFS book with i686 libraries + + config LFS_MULTILIB_X32 + bool "Multilib LFS on amd64 with x32 libraries" + help + Use Multilib LFS book with x32 libraries + + config LFS_MULTILIB_ALL + bool "Multilib LFS on amd64 with i686 and x32 libraries" + help + Use Multilib LFS book with i686 and x32 libraries + + endchoice + + config MULTILIB + string + default "default" if LFS_MULTILIB_NO + default "ml_32" if LFS_MULTILIB_I686 + default "ml_x32" if LFS_MULTILIB_X32 + default "ml_all" if LFS_MULTILIB_ALL + #--- End BOOK version #--- CLFS specific params diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl index 80ea285..393be5a 100644 --- a/LFS/lfs.xsl +++ b/LFS/lfs.xsl @@ -10,10 +10,6 @@ - - - @@ -190,12 +184,9 @@ otherwise it is in /bin.--> - + + select=".//screen[not(@role) or @role != 'nodump']/ + userinput[@remap = 'install']"/> + ]"/> diff --git a/common/libs/func_book_parser b/common/libs/func_book_parser index 310a681..6b6fd00 100644 --- a/common/libs/func_book_parser +++ b/common/libs/func_book_parser @@ -156,15 +156,27 @@ extract_commands() { # ;; lfs) echo -n " ${L_arrow}${BOLD}LFS${R_arrow} build... " + # The scripts pages are xincluded by the book, so must + # be generated for running xsltproc pushd $BOOK > /dev/null if [ -f process-scripts.sh ]; then bash process-scripts.sh >> $LOGDIR/$LOG 2>&1 fi popd > /dev/null + # First profile the book, for revision and arch. Note that + # MULTIBLIB is set to "default" if pure 64 bit book. In this + # profiling on arch is useless, but does not hurt either. xsltproc --nonet \ --xinclude \ - --stringparam revision "$INITSYS" \ + --stringparam profile.revision "$INITSYS" \ + --stringparam profile.arch "$MULTILIB" \ + --output prbook.xml \ + $BOOK/stylesheets/lfs-xsl/profile.xsl \ + $BOOK/index.xml >> $LOGDIR/$LOG 2>&1 + + # Use the profiled book for generating the scriptlets + xsltproc --nonet \ --stringparam testsuite "$TEST" \ --stringparam bomb-testsuite "$BOMB_TEST" \ --stringparam ncurses5 "$NCURSES5" \ @@ -194,7 +206,7 @@ extract_commands() { # --stringparam script-root "$SCRIPT_ROOT" \ --output ./${PROGNAME}-commands/ \ $XSL \ - $BOOK/index.xml >> $LOGDIR/$LOG 2>&1 + prbook.xml >> $LOGDIR/$LOG 2>&1 # Remove flags requesting user action in some cases. Much easier here than # in the stylesheet... sed -i 's/-iv /-v /' ./${PROGNAME}-commands/chapter??/*kernel* diff --git a/common/libs/func_wrt_Makefile b/common/libs/func_wrt_Makefile index 060ae9b..245f7fe 100644 --- a/common/libs/func_wrt_Makefile +++ b/common/libs/func_wrt_Makefile @@ -420,10 +420,9 @@ EOF #----------------------------------# LUSER_wrt_LogNewFiles() { # #----------------------------------# - local name=`echo ${1} | sed 's/[0-9]-//'` ( cat << EOF - @\$(call log_new_files_LUSER,$name) + @\$(call log_new_files_LUSER,$1) EOF ) >> $MKFILE.tmp } @@ -431,10 +430,9 @@ EOF #----------------------------------# CHROOT_wrt_LogNewFiles() { # #----------------------------------# - local name=`echo ${1} | sed 's/[0-9]-//'` ( cat << EOF - @\$(call log_new_files,$name) + @\$(call log_new_files,$1) EOF ) >> $MKFILE.tmp }