Changeset 978286a
- Timestamp:
- 02/28/2022 12:30:53 PM (2 years ago)
- Branches:
- ablfs-more, trunk
- Children:
- 16cef03
- Parents:
- 3faf067
- Files:
-
- 3 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
Config.in
r3faf067 r978286a 663 663 default "lfs" if BOOK_LFS || BOOK_LFS_SYSD 664 664 default "clfs" if BOOK_CLFS || BOOK_CLFS2 || BOOK_CLFS3 665 default "hlfs" if BOOK_HLFS666 665 667 666 config LGROUP … … 777 776 # out. If you select 'n' here, the commented test instructions 778 777 # do not stop on test suite failures. 779 #780 # HLFS and CLFS have no testsuites available in the781 # temporary tools phase782 778 783 779 menu "Test settings" -
FUNCTION_LIST
r3faf067 r978286a 241 241 Description: 242 242 -------------------------------------------------------------------------- 243 process_toolchain():244 From HLFS/master.sh.245 Description: embryo,cocoon and butterfly need special handling246 --------------------------------------------------------------------------247 chapter3_Makefiles():248 From HLFS/master.sh.249 Description: Initialization of the system250 --------------------------------------------------------------------------251 chapter5_Makefiles():252 From HLFS/master.sh.253 Description: Bootstrap or temptools phase254 --------------------------------------------------------------------------255 chapter6_Makefiles():256 From HLFS/master.sh.257 Description: sysroot or chroot build phase258 --------------------------------------------------------------------------259 chapter7_Makefiles():260 From HLFS/master.sh.261 Description: Create a bootable system.. kernel, bootscripts..etc262 --------------------------------------------------------------------------263 build_Makefile():264 From HLFS/master.sh.265 Description: Construct a Makefile from the book scripts266 --------------------------------------------------------------------------267 243 simple_error(): 268 244 From jhalfs. -
README
r3faf067 r978286a 27 27 - README.PACKAGE_MANAGEMENT: instructions to use package management during 28 28 the build (only for LFS, patches welcome for CLFS...) 29 - README.HLFS: very short file explaining why you cannot use HLFS with the30 present tool version.31 29 32 30 Other sources of information are the context help in the menu interface, … … 182 180 /clfs3.xsl 183 181 184 /HLFS/master.sh185 /hlfs.xsl186 187 182 /LFS/master.sh 188 183 /lfs.xsl … … 220 215 README.BLFS 221 216 README.CLFS 222 README.HLFS223 217 README.CUSTOM 224 218 TODO -
common/libs/func_book_parser
r3faf067 r978286a 101 101 ;; 102 102 103 hlfs)104 echo -n " ${L_arrow}${BOLD}$MODEL + $KERNEL${R_arrow} HLFS flavour... "105 xsltproc --nonet \106 --xinclude \107 --stringparam model "$MODEL" \108 --stringparam kernel "$KERNEL" \109 --stringparam testsuite "$TEST" \110 --stringparam bomb-testsuite "$BOMB_TEST" \111 --stringparam features \112 x$SSP$ASLR$PAX$HARDENED_TMP$WARNINGS$MISC$BLOWFISH \113 --stringparam timezone "$TIMEZONE" \114 --stringparam page "$PAGE" \115 --stringparam lang "$LANG" \116 --stringparam grsecurity_host "$GRSECURITY_HOST" \117 --output ./${PROGNAME}-commands/ \118 $XSL \119 $BOOK/index.xml >>$LOGDIR/$LOG 2>&1120 ;;121 103 lfs) 122 104 echo -n " ${L_arrow}${BOLD}LFS${R_arrow} build... " … … 232 214 $BOOK/BOOK/materials/${ARCH}-chapter.xml >>$LOGDIR/$LOG 2>&1 233 215 ;; 234 hlfs)235 xsltproc --nonet --xinclude \236 --stringparam model "$MODEL" \237 --stringparam kernel "$KERNEL" \238 --output pkg_tarball_list \239 packages.xsl \240 $BOOK/chapter04/chapter04.xml >>$LOGDIR/$LOG 2>&1241 ;;242 216 lfs) 243 217 # lfs does not use the package list anymore … … 263 237 -o chroot-scripts/ chroot.xsl \ 264 238 $BOOK/BOOK/${ARCH}-index.xml >> $LOGDIR/$LOG 2>&1 265 ;;266 hlfs)267 xsltproc --nonet --xinclude \268 -o chroot-scripts/ chroot.xsl \269 $BOOK/index.xml >> $LOGDIR/$LOG 2>&1270 239 ;; 271 240 lfs) … … 294 263 -o kernfs-scripts/ kernfs.xsl \ 295 264 $BOOK/BOOK/${ARCH}-index.xml >> $LOGDIR/$LOG 2>&1 296 ;;297 hlfs)298 xsltproc --nonet --xinclude \299 -o kernfs-scripts/ kernfs.xsl \300 $BOOK/index.xml >> $LOGDIR/$LOG 2>&1301 265 ;; 302 266 lfs) -
common/libs/func_check_version.sh
r3faf067 r978286a 93 93 export LC_ALL 94 94 95 # LFS/ HLFS/CLFS prerequisites95 # LFS/CLFS prerequisites 96 96 if [ -n "$MIN_Linux_VER" ]; then 97 97 check_version "$MIN_Linux_VER" "`uname -r`" "KERNEL" -
common/libs/func_download_pkgs
r3faf067 r978286a 147 147 echo " ...OK" 148 148 ;; 149 hlfs)150 echo -n "Creating HLFS <${MODEL}> + <${KERNEL}> specific URLs file"151 xsltproc --nonet --xinclude \152 --stringparam server "$SERVER" \153 --stringparam family lfs \154 --stringparam model "$MODEL" \155 --stringparam kernel "$KERNEL" \156 -o $BUILDDIR/sources/urls.lst \157 urls.xsl \158 $BOOK/chapter04/chapter04.xml >>$LOGDIR/$LOG 2>&1159 echo " ...OK"160 ;;161 149 lfs) 162 150 echo -n "Creating LFS specific URLs file" -
common/libs/func_validate_configs.sh
r3faf067 r978286a 11 11 input vars: none 12 12 externals: color constants 13 PROGNAME (lfs, hlfs,clfs,clfs2,clfs3,blfs)13 PROGNAME (lfs,clfs,clfs2,clfs3,blfs) 14 14 modifies: none 15 15 returns: nothing … … 31 31 # BOOK Settings by book 32 32 local -r LFS_book="$BOOK_common INITSYS BLFS_TOOL" 33 #local -r HLFS_added="SET_SSP SET_ASLR SET_PAX SET_HARDENED_TMP SET_WARNINGS \34 # SET_MISC SET_BLOWFISH"35 local -r HLFS_added=""36 local -r HLFS_book="$BOOK_common BLFS_TOOL MODEL KERNEL GRSECURITY_HOST $HLFS_added"37 33 local -r CLFS_book="$BOOK_common BLFS_TOOL METHOD $BOOK_clfsX TARGET32 BOOT_CONFIG" 38 34 local -r CLFS2_book="$BOOK_common BLFS_TOOL $BOOK_clfsX" … … 41 37 # Build Settings by book 42 38 local -r LFS_build="$BUILD_chroot NCURSES5 DEL_LA_FILES $BUILD_common PKGMNGT FULL_LOCALE WRAP_INSTALL" 43 local -r HLFS_build="$BUILD_chroot $BUILD_common"44 39 local -r CLFS_build="$BUILD_chroot $BUILD_common" 45 40 local -r CLFS2_build="STRIP $BUILD_common" … … 51 46 # Full list of books settings 52 47 local -r lfs_PARAM_LIST="$LFS_book $GENERAL_common $LFS_build $LFS_system $ADVANCED_chroot N_PARALLEL REALSBU SAVE_CH5 $ADVANCED_common" 53 local -r hlfs_PARAM_LIST="$HLFS_book $GENERAL_common $HLFS_build $ADVANCED_chroot $ADVANCED_common"54 48 local -r clfs_PARAM_LIST="$CLFS_book $GENERAL_common $CLFS_build $ADVANCED_chroot $ADVANCED_common" 55 49 local -r clfs2_PARAM_LIST="$CLFS2_book $GENERAL_common $CLFS2_build $ADVANCED_common" -
common/libs/func_wrt_Makefile
r3faf067 r978286a 83 83 ;; 84 84 linux-headers) 85 if [[ "${PROGNAME}" = "lfs" ]] || [[ "${PROGNAME}" = " hlfs" ]] || [[ "${PROGNAME}" = "clfs" ]]; then85 if [[ "${PROGNAME}" = "lfs" ]] || [[ "${PROGNAME}" = "clfs" ]]; then 86 86 # Uses kernel headers directly 87 87 echo $(grep "^linux-[[:digit:]]" $JHALFSDIR/pkg_tarball_list | head -n1 ) … … 321 321 clfs2 ) MOUNT_ENV="CLFS" ;; 322 322 clfs3 ) MOUNT_ENV="CLFS" ;; 323 hlfs ) MOUNT_ENV="HLFS" ;;324 323 *) echo "undefined progname $PROGNAME"; exit 1 ;; 325 324 esac -
common/packages.xsl
r3faf067 r978286a 5 5 6 6 <xsl:output method="text"/> 7 8 <!-- The libc model used for HLFS -->9 <xsl:param name="model" select="'glibc'"/>10 11 <!-- The kernel series used for HLFS -->12 <xsl:param name="kernel" select="'2.6'"/>13 7 14 8 <!-- Should we include a package manager? --> … … 20 14 <xsl:template match="/"> 21 15 <xsl:apply-templates 22 select="//varlistentry[(@condition=$model or not(@condition)) and 23 (@revision=$revision or not(@revision)) and 24 (@vendor=$kernel or not(@vendor))] 16 select="//varlistentry[(@revision=$revision or not(@revision)) and 25 17 //para[contains(string(),'Download:')]"/> 26 18 <xsl:if test="$pkgmngt='y'"> -
common/urls.xsl
r3faf067 r978286a 11 11 <!-- The book family (lfs or clfs). Needed to use the proper FTP path. --> 12 12 <xsl:param name="family">lfs</xsl:param> 13 14 <!-- The libc model used for HLFS -->15 <xsl:param name="model" select="'glibc'"/>16 17 <!-- The kernel series used for HLFS -->18 <xsl:param name="kernel" select="'2.6'"/>19 13 20 14 <!-- Do we use a package manager? --> … … 37 31 name, the next test must be fixed to match it also. Skip possible 38 32 duplicated URLs due that may be splitted for PDF output --> 39 <xsl:if test="(ancestor::varlistentry[@condition=$model] 40 or not(ancestor::varlistentry[@condition])) and 41 (ancestor::varlistentry[@vendor=$kernel] 42 or not(ancestor::varlistentry[@vendor])) and 43 (contains(@url, '.bz2') or contains(@url, '.tar.gz') or 33 <xsl:if test="(contains(@url, '.bz2') or contains(@url, '.tar.gz') or 44 34 contains(@url, '.tgz') or contains(@url, '.patch') or 45 35 contains(@url, '.xz') or contains(@url, '.lzma')) and -
jhalfs
r3faf067 r978286a 225 225 TREE=${BRANCH_ID} 226 226 ;; 227 hlfs )228 LFSVRS=${BRANCH_ID}229 TREE=tags/${BRANCH_ID}/BOOK230 ;;231 227 clfs* ) 232 228 LFSVRS=${BRANCH_ID} … … 395 391 case $PROGNAME in 396 392 clfs* ) sed 's,FAKEDIR,'"${BOOK}/BOOK"',' "${PACKAGE_DIR}/${XSL}" > "${JHALFSDIR}/${XSL}" ;; 397 lfs | hlfs ) sed 's,FAKEDIR,'"$BOOK"',' "${PACKAGE_DIR}/${XSL}" > "${JHALFSDIR}/${XSL}" ;;398 393 * ) ;; 399 394 esac
Note:
See TracChangeset
for help on using the changeset viewer.