corrections to hlfs group, build makefile

This commit is contained in:
George Boudreau 2006-03-18 03:46:54 +00:00
parent 28fd555361
commit 7d018d160e
4 changed files with 18 additions and 14 deletions

View file

@ -287,7 +287,7 @@ cross_tools_Makefiles() { #
# #
# If $vrs isn't empty, we've got a package... # If $vrs isn't empty, we've got a package...
# #
[[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar" [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar" && echo -e '\ttrue' >> $MKFILE.tmp
# #
wrt_run_as_lfs "${this_script}" "${file}" wrt_run_as_lfs "${this_script}" "${file}"
# #
@ -339,7 +339,7 @@ temptools_Makefiles() { #
# If $vrs isn't empty, we've got a package... # If $vrs isn't empty, we've got a package...
# Insert instructions for unpacking the package and to set the PKGDIR variable. # Insert instructions for unpacking the package and to set the PKGDIR variable.
# #
[[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar" [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar" && echo -e '\ttrue' >> $MKFILE.tmp
# #
wrt_run_as_lfs "${this_script}" "${file}" wrt_run_as_lfs "${this_script}" "${file}"
# #
@ -488,8 +488,11 @@ chroot_Makefiles() { #
# #
if [ "$vrs" != "" ] ; then if [ "$vrs" != "" ] ; then
case $this_script in case $this_script in
*util-linux) wrt_unpack "$name-$vrs.tar" ;; *util-linux) wrt_unpack "$name-$vrs.tar"
*) wrt_unpack2 "$name-$vrs.tar.*" ;; echo -e '\ttrue' >> $MKFILE.tmp
;;
*) wrt_unpack2 "$name-$vrs.tar.*"
;;
esac esac
fi fi
# #

View file

@ -176,6 +176,8 @@ chapter5_Makefiles() { # Bootstrap or temptools phase
*tcl* ) [[ "$TEST" = "0" ]] && continue; ;; *tcl* ) [[ "$TEST" = "0" ]] && continue; ;;
*expect* ) [[ "$TEST" = "0" ]] && continue; ;; *expect* ) [[ "$TEST" = "0" ]] && continue; ;;
*dejagnu* ) [[ "$TEST" = "0" ]] && continue; ;; *dejagnu* ) [[ "$TEST" = "0" ]] && continue; ;;
# Nothing interestin in this script
*introduction* ) continue ;;
# Test if the stripping phase must be skipped # Test if the stripping phase must be skipped
*stripping* ) [[ "$STRIP" = "0" ]] && continue ;; *stripping* ) [[ "$STRIP" = "0" ]] && continue ;;
# Select the appropriate library # Select the appropriate library
@ -500,7 +502,7 @@ chapter7_Makefiles() { # Create a bootable system.. kernel, bootscripts..e
wrt_unpack2 "$FILE" wrt_unpack2 "$FILE"
( (
cat << EOF cat << EOF
echo "\$(MOUNT_PT)\$(SRC)/blfs-bootscripts-$vrs" > sources-dir @echo "\$(MOUNT_PT)\$(SRC)/blfs-bootscripts-$vrs" > sources-dir
EOF EOF
) >> $MKFILE.tmp ) >> $MKFILE.tmp
fi fi
@ -648,10 +650,10 @@ clean-chapter7:
restore-hlfs-env: restore-hlfs-env:
@\$(call echo_message, Building) @\$(call echo_message, Building)
@if [ -f /home/lfs/.bashrc.XXX ]; then \\ @if [ -f /home/lfs/.bashrc.XXX ]; then \\
mv -fv /home/lfs/.bashrc.XXX /home/hlfs/.bashrc; \\ mv -fv /home/lfs/.bashrc.XXX /home/lfs/.bashrc; \\
fi; fi;
@if [ -f /home/hlfs/.bash_profile.XXX ]; then \\ @if [ -f /home/lfs/.bash_profile.XXX ]; then \\
mv -v /home/lfs/.bash_profile.XXX /home/hlfs/.bash_profile; \\ mv -v /home/lfs/.bash_profile.XXX /home/lfs/.bash_profile; \\
fi; fi;
@chown lfs:lfs /home/lfs/.bash* && \\ @chown lfs:lfs /home/lfs/.bash* && \\
touch \$@ touch \$@

View file

@ -237,7 +237,6 @@ cat << EOF
@\$(call unpack3,$FILE) @\$(call unpack3,$FILE)
@ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\ @ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\
echo "export PKGDIR=\$(MOUNT_PT)\$(SRC)/\$\$ROOT" > envars && \\ echo "export PKGDIR=\$(MOUNT_PT)\$(SRC)/\$\$ROOT" > envars && \\
chown -R lfs \$(MOUNT_PT)\$(SRC)/\$\$ROOT chown -R lfs \$(MOUNT_PT)\$(SRC)/\$\$ROOT
EOF EOF
) >> $MKFILE.tmp ) >> $MKFILE.tmp
@ -278,7 +277,7 @@ wrt_target_vars() { # Target vars for hlfs (cross-build method)
#----------------------------------# #----------------------------------#
( (
cat << EOF cat << EOF
echo "export target=$(uname -m)-${TARGET}" >> envars && \\ @echo "export target=$(uname -m)-${TARGET}" >> envars && \\
echo "export ldso=/lib/${LOADER}" >> envars echo "export ldso=/lib/${LOADER}" >> envars
EOF EOF
) >> $MKFILE.tmp ) >> $MKFILE.tmp

View file

@ -13,7 +13,7 @@ BUILDDIR=/mnt/SourceFiles
#--- The local repository for packages/file #--- The local repository for packages/file
# Any downloaded files will be archived here # Any downloaded files will be archived here
SRC_ARCHIVE= SRC_ARCHIVE=/mnt/SourceFiles/Source_Warehouse
#--- Download the source packages 0(no)/1(yes) #--- Download the source packages 0(no)/1(yes)
HPKG=0 HPKG=0
@ -26,10 +26,10 @@ RUNMAKE=0
# 1 = only chapter06 Glibc, GCC and Binutils testsuites # 1 = only chapter06 Glibc, GCC and Binutils testsuites
# 2 = all chapter06 testsuites # 2 = all chapter06 testsuites
# 3 = all chapter05 and chapter06 testsuites # 3 = all chapter05 and chapter06 testsuites
TEST=1 TEST=0
#--- Run the stripping phases 0(no)/1(yes) #--- Run the stripping phases 0(no)/1(yes)
STRIP=1 STRIP=0
#--- page definition for groff letter/A4 #--- page definition for groff letter/A4
PAGE=letter PAGE=letter