Changeset 47fddc8
- Timestamp:
- 08/12/2006 07:59:11 PM (18 years ago)
- Branches:
- experimental
- Children:
- 3fa20d4
- Parents:
- 54f4782
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
CLFS/clfs.xsl
r54f4782 r47fddc8 29 29 30 30 <!-- Bomb on test suites failures? 31 0= no, I want to build the full system and review the logs32 1= yes, bomb at the first test suite failure to can review the build dir31 n = no, I want to build the full system and review the logs 32 y = yes, bomb at the first test suite failure to can review the build dir 33 33 --> 34 <xsl:param name="bomb-testsuite" select=" 0"/>34 <xsl:param name="bomb-testsuite" select="n"/> 35 35 36 36 <!-- Install vim-lang package? --> 37 <xsl:param name="vim-lang" select=" 1"/>37 <xsl:param name="vim-lang" select="y"/> 38 38 39 39 <!-- Time zone --> … … 103 103 <xsl:if test="sect2[@role='installation']"> 104 104 <xsl:text>cd $PKGDIR
</xsl:text> 105 <xsl:if test="@id='ch-system-vim' and $vim-lang = ' 1'">105 <xsl:if test="@id='ch-system-vim' and $vim-lang = 'y'"> 106 106 <xsl:text>tar -xvf ../vim-&vim-version;-lang.* --strip-components=1
</xsl:text> 107 107 </xsl:if> … … 126 126 ($testsuite = '2' or $testsuite = '3')"> 127 127 <xsl:choose> 128 <xsl:when test="$bomb-testsuite = ' 0'">128 <xsl:when test="$bomb-testsuite = 'n'"> 129 129 <xsl:value-of select="substring-before(string(),'make')"/> 130 130 <xsl:text>make -k</xsl:text> … … 194 194 <xsl:if test="contains(string(),'check')"> 195 195 <xsl:choose> 196 <xsl:when test="$bomb-testsuite = ' 0'">196 <xsl:when test="$bomb-testsuite = 'n'"> 197 197 <xsl:value-of select="substring-before(string(),'check')"/> 198 198 <xsl:text>-k check</xsl:text> … … 215 215 <xsl:when test="$testsuite != '0'"> 216 216 <xsl:choose> 217 <xsl:when test="$bomb-testsuite = ' 0'">217 <xsl:when test="$bomb-testsuite = 'n'"> 218 218 <xsl:text>make -k check >> $TEST_LOG 2>&1 || true
</xsl:text> 219 219 </xsl:when> … … 231 231 <xsl:value-of select="substring-before(string(),'>g')"/> 232 232 <xsl:choose> 233 <xsl:when test="$bomb-testsuite = ' 0'">233 <xsl:when test="$bomb-testsuite = 'n'"> 234 234 <xsl:text>>> $TEST_LOG 2>&1 || true
</xsl:text> 235 235 </xsl:when> -
CLFS/config
r54f4782 r47fddc8 55 55 56 56 # Get the kernel package and patches even if no configutation file 57 # has been supplied? 0(no)/1(yes)58 GETKERNEL= 057 # has been supplied? n(no)/y(yes) 58 GETKERNEL=n 59 59 60 60 #--- Book's sources directory -
CLFS/master.sh
r54f4782 r47fddc8 498 498 # Skip alsp temp-perl for iterative runs 499 499 case $this_script in 500 *stripping*) [[ "$STRIP" = " 0" ]] && continue ;;500 *stripping*) [[ "$STRIP" = "n" ]] && continue ;; 501 501 *temp-perl*) [[ -n "$N" ]] && continue ;; 502 502 esac … … 608 608 # Skip alsp temp-perl for iterative runs 609 609 case $this_script in 610 *stripping*) [[ "$STRIP" = " 0" ]] && continue ;;610 *stripping*) [[ "$STRIP" = "n" ]] && continue ;; 611 611 *temp-perl*) [[ -n "$N" ]] && continue ;; 612 612 esac … … 883 883 884 884 # Add SBU-disk_usage report target if required 885 if [[ "$REPORT" = " 1" ]] ; then wrt_report ; fi885 if [[ "$REPORT" = "y" ]] ; then wrt_report ; fi 886 886 887 887 } … … 962 962 963 963 # Add SBU-disk_usage report target if required 964 if [[ "$REPORT" = " 1" ]] ; then wrt_report ; fi964 if [[ "$REPORT" = "y" ]] ; then wrt_report ; fi 965 965 966 966 } … … 986 986 final_system_Makefiles # $basicsystem 987 987 # Add the iterations targets, if needed 988 [[ "$COMPARE" != "0" ]] && wrt_compare_targets988 [[ "$COMPARE" = "y" ]] && wrt_compare_targets 989 989 bootscripts_Makefiles # $bootscripttools 990 990 bootable_Makefiles # $bootabletools … … 996 996 bm_final_system_Makefiles # $basicsystem 997 997 # Add the iterations targets, if needed 998 [[ "$COMPARE" != "0" ]] && wrt_compare_targets998 [[ "$COMPARE" = "y" ]] && wrt_compare_targets 999 999 bm_bootscripts_Makefiles # $bootscipttools 1000 1000 bm_bootable_Makefiles # $bootabletoosl -
CLFS2/clfs2.xsl
r54f4782 r47fddc8 18 18 19 19 <!-- Install vim-lang package? --> 20 <xsl:param name="vim-lang" select=" 1"/>20 <xsl:param name="vim-lang" select="y"/> 21 21 22 22 <!-- Time zone --> … … 76 76 <xsl:if test="sect2[@role='installation']"> 77 77 <xsl:text>cd $PKGDIR
</xsl:text> 78 <xsl:if test="@id='ch-system-vim' and $vim-lang = ' 1'">78 <xsl:if test="@id='ch-system-vim' and $vim-lang = 'y'"> 79 79 <xsl:text>tar -xvf ../vim-&vim-version;-lang.* --strip-components=1
</xsl:text> 80 80 </xsl:if> -
CLFS2/config
r54f4782 r47fddc8 34 34 35 35 # Get the kernel package and patches even if no configutation file 36 # has been supplied? 0(no)/1(yes)37 GETKERNEL= 036 # has been supplied? n(no)/y(yes) 37 GETKERNEL=n 38 38 39 39 #--- Book's sources directory -
CLFS2/master.sh
r54f4782 r47fddc8 216 216 # Skip alsp temp-perl for iterative runs 217 217 case $this_script in 218 *stripping*) [[ "$STRIP" = " 0" ]] && continue ;;218 *stripping*) [[ "$STRIP" = "n" ]] && continue ;; 219 219 esac 220 220 … … 404 404 405 405 # Add SBU-disk_usage report target if required 406 if [[ "$REPORT" = " 1" ]] ; then wrt_report ; fi406 if [[ "$REPORT" = "y" ]] ; then wrt_report ; fi 407 407 408 408 } -
Config.in
r54f4782 r47fddc8 337 337 #-- The directory where the created system will be located. 338 338 339 config CONFIG_GETPKG339 config GETPKG 340 340 bool "Retrieve source files" 341 341 default n … … 349 349 string "Package Archive Directory" 350 350 default "$SRC_ARCHIVE" 351 depends CONFIG_GETPKG351 depends GETPKG 352 352 help 353 353 #-- A local archive for packages/file (not $BUILDDIR/sources) … … 356 356 # if the user has the right priviledges. 357 357 358 config CONFIG_GETKERNEL358 config GETKERNEL 359 359 bool "Always retrieve kernel package" 360 360 default n 361 depends CONFIG_GETPKG361 depends GETPKG 362 362 help 363 363 #-- Get the kernel package and patches even if no configuration 364 364 # file has been supplied. 365 365 366 config CONFIG_RUNMAKE366 config RUNMAKE 367 367 bool "Run the makefile" 368 368 default n … … 370 370 #-- Automatically run the makefile once it has been created 371 371 372 config C ONFIG_REBUILD372 config CLEAN 373 373 bool "Rebuild files" 374 374 default n … … 431 431 default "3" if TST_3 432 432 433 choice 433 choice 434 434 prompt "Flavour ->" 435 435 depends CONFIG_TESTS 436 default NO_BOMB437 436 438 437 config NO_BOMB 439 438 bool "Don't stop on test suite failures" 439 default n 440 440 441 441 config BOMB 442 442 bool "Abort the build at the first test suite failure" 443 default n 443 444 endchoice 444 445 445 446 config BOMB_TEST 446 int447 default "0" if NO_BOMB448 default "1" if BOMB 447 bool 448 default BOMB 449 449 450 #--- End Test Suites 450 451 … … 495 496 #--- End Kernel 496 497 497 config CONFIG_STRIP498 config STRIP 498 499 bool "Strip Installed Binaries/Libraries" 499 500 default y 500 501 501 config CONFIG_VIMLANG502 config VIMLANG 502 503 bool "Install vim-lang package" 503 504 default y … … 550 551 menu "--- Advanced Features" 551 552 552 config CONFIG_REPORT553 config REPORT 553 554 bool "Create SBU and disk usage report" 554 555 default y 555 556 556 557 #--- ICA/farce 557 config CO NFIG_COMPARE558 config COMPARE 558 559 bool "Run comparison analysis on final stage" 559 560 depends !BOOK_CLFS2 … … 575 576 576 577 config ITERATIONS 577 int "Number of test runs (2,3,4,5)" 578 depends on CO NFIG_COMPARE578 int "Number of test runs (2,3,4,5)" if COMPARE 579 depends on COMPARE 579 580 range 2 5 580 581 default 3 581 582 582 config CONFIG_ICA583 config RUN_ICA 583 584 bool "ICA testing" 584 depends on CO NFIG_COMPARE585 depends on COMPARE 585 586 default y 586 587 help 587 588 #-- Run ICA testing 588 589 589 config CONFIG_FARCE590 config RUN_FARCE 590 591 bool "farce testing" 591 depends on CO NFIG_COMPARE592 depends on COMPARE 592 593 default n 593 594 help … … 648 649 649 650 650 # convert CONFIG_XXXX n/y to XXXX 0/1651 652 config COMPARE653 int654 default 0 if !CONFIG_COMPARE655 default 1 if CONFIG_COMPARE656 657 config GETPKG658 int659 default 0 if !CONFIG_GETPKG660 default 1 if CONFIG_GETPKG661 662 config GETKERNEL663 int664 default 0 if !CONFIG_GETKERNEL665 default 1 if CONFIG_GETKERNEL666 667 config RUNMAKE668 int669 default 0 if !CONFIG_RUNMAKE670 default 1 if CONFIG_RUNMAKE671 672 config STRIP673 int674 default 0 if !CONFIG_STRIP675 default 1 if CONFIG_STRIP676 677 config REPORT678 int679 default 0 if !CONFIG_REPORT680 default 1 if CONFIG_REPORT681 682 config VIMLANG683 int684 default 0 if !CONFIG_VIMLANG685 default 1 if CONFIG_VIMLANG686 687 config RUN_ICA688 int689 default 0 if !CONFIG_ICA690 default 1 if CONFIG_ICA691 692 config RUN_FARCE693 int694 default 0 if !CONFIG_FARCE695 default 1 if CONFIG_FARCE696 697 config CLEAN698 int699 default 0 if !CONFIG_REBUILD700 default 1 if CONFIG_REBUILD -
HLFS/config
r54f4782 r47fddc8 10 10 MODEL=glibc 11 11 12 #--- The host system has grsecurity options enabled? 0(no)/1(yes)13 GRSECURITY_HOST= 012 #--- The host system has grsecurity options enabled? n0(no)/y(yes) 13 GRSECURITY_HOST=n 14 14 15 15 #--- Unprivileged user and group name … … 25 25 26 26 # Get the kernel package and patches even if no configutation file 27 # has been supplied? 0(no)/1(yes)28 GETKERNEL= 027 # has been supplied? n(no)/y(yes) 28 GETKERNEL=n 29 29 30 30 #--- Book's sources directory -
HLFS/hlfs.xsl
r54f4782 r47fddc8 18 18 19 19 <!-- Is the host kernel using grsecurity? --> 20 <xsl:param name="grsecurity_host" select=" 0"/>20 <xsl:param name="grsecurity_host" select="n"/> 21 21 22 22 <!-- Compile the keymap into the kernel? --> … … 32 32 33 33 <!-- Bomb on test suites failures? 34 0= no, I want to build the full system and review the logs35 1= yes, bomb at the first test suite failure to can review the build dir34 n = no, I want to build the full system and review the logs 35 y = yes, bomb at the first test suite failure to can review the build dir 36 36 --> 37 <xsl:param name="bomb-testsuite" select=" 0"/>37 <xsl:param name="bomb-testsuite" select="n"/> 38 38 39 39 <!-- Time zone --> … … 144 144 ($testsuite = '2' or $testsuite = '3')"> 145 145 <xsl:choose> 146 <xsl:when test="$bomb-testsuite = ' 0'">146 <xsl:when test="$bomb-testsuite = 'n'"> 147 147 <xsl:value-of select="substring-before(string(),'make')"/> 148 148 <xsl:text>make -k</xsl:text> … … 177 177 <xsl:when test="ancestor::sect1[@id='ch-system-kernfs'] and 178 178 contains(string(),'sysctl') 179 and $grsecurity_host =' 0'"/>179 and $grsecurity_host ='n'"/> 180 180 <!-- Setting $LC_ALL and $LANG for /etc/profile --> 181 181 <xsl:when test="ancestor::sect1[@id='bootable-profile'] and … … 227 227 <xsl:if test="contains(string(),'check')"> 228 228 <xsl:choose> 229 <xsl:when test="$bomb-testsuite = ' 0'">229 <xsl:when test="$bomb-testsuite = 'n'"> 230 230 <xsl:value-of select="substring-before(string(),'check')"/> 231 231 <xsl:text>-k check</xsl:text> … … 248 248 <xsl:apply-templates/> 249 249 <xsl:choose> 250 <xsl:when test="$bomb-testsuite = ' 0'">250 <xsl:when test="$bomb-testsuite = 'n'"> 251 251 <xsl:text> >> $TEST_LOG 2>&1 || true
</xsl:text> 252 252 </xsl:when> … … 264 264 <xsl:value-of select="substring-before(string(),'> glibc-')"/> 265 265 <xsl:choose> 266 <xsl:when test="$bomb-testsuite = ' 0'">266 <xsl:when test="$bomb-testsuite = 'n'"> 267 267 <xsl:text> >> $TEST_LOG 2>&1 || true
</xsl:text> 268 268 </xsl:when> -
HLFS/master.sh
r54f4782 r47fddc8 176 176 *introduction* ) continue ;; 177 177 # Test if the stripping phase must be skipped 178 *stripping* ) [[ "$STRIP" = " 0" ]] && continue ;;178 *stripping* ) [[ "$STRIP" = "n" ]] && continue ;; 179 179 *) ;; 180 180 esac … … 288 288 *chroot* ) continue ;; 289 289 # Test if the stripping phase must be skipped 290 *-stripping* ) [[ "$STRIP" = " 0" ]] && continue ;;290 *-stripping* ) [[ "$STRIP" = "n" ]] && continue ;; 291 291 esac 292 292 … … 466 466 467 467 # Add SBU-disk_usage report target if required 468 if [[ "$REPORT" = " 1" ]] ; then wrt_report ; fi468 if [[ "$REPORT" = "y" ]] ; then wrt_report ; fi 469 469 } 470 470 … … 483 483 chapter6_Makefiles 484 484 # Add the iterations targets, if needed 485 [[ "$COMPARE" != "0" ]] && wrt_compare_targets485 [[ "$COMPARE" = "y" ]] && wrt_compare_targets 486 486 chapter7_Makefiles 487 487 -
LFS/config
r54f4782 r47fddc8 19 19 20 20 # Get the kernel package and patches even if no configuration file 21 # has been supplied? 0(no)/1(yes)22 GETKERNEL= 021 # has been supplied? n(no)/y(yes) 22 GETKERNEL=n 23 23 24 24 #--- Book's sources directory -
LFS/lfs.xsl
r54f4782 r47fddc8 23 23 24 24 <!-- Bomb on test suites failures? 25 0= no, I want to build the full system and review the logs26 1= yes, bomb at the first test suite failure to can review the build dir25 n = no, I want to build the full system and review the logs 26 y = yes, bomb at the first test suite failure to can review the build dir 27 27 --> 28 <xsl:param name="bomb-testsuite" select=" 0"/>28 <xsl:param name="bomb-testsuite" select="n"/> 29 29 30 30 <!-- Install vim-lang package? --> 31 <xsl:param name="vim-lang" select=" 1"/>31 <xsl:param name="vim-lang" select="y"/> 32 32 33 33 <!-- Time zone --> … … 91 91 <xsl:if test="sect2[@role='installation']"> 92 92 <xsl:text>cd $PKGDIR
</xsl:text> 93 <xsl:if test="@id='ch-system-vim' and $vim-lang = ' 1'">93 <xsl:if test="@id='ch-system-vim' and $vim-lang = 'y'"> 94 94 <xsl:text>tar -xvf ../vim-&vim-version;-lang.* --strip-components=1
</xsl:text> 95 95 </xsl:if> … … 118 118 $testsuite = '3')"> 119 119 <xsl:choose> 120 <xsl:when test="$bomb-testsuite = ' 0'">120 <xsl:when test="$bomb-testsuite = 'n'"> 121 121 <xsl:value-of select="substring-before(string(),'make')"/> 122 122 <xsl:text>make -k</xsl:text> … … 182 182 <xsl:if test="contains(string(),'check')"> 183 183 <xsl:choose> 184 <xsl:when test="$bomb-testsuite = ' 0'">184 <xsl:when test="$bomb-testsuite = 'n'"> 185 185 <xsl:value-of select="substring-before(string(),'check')"/> 186 186 <xsl:text>-k check</xsl:text> … … 205 205 $testsuite = '3'"> 206 206 <xsl:choose> 207 <xsl:when test="$bomb-testsuite = ' 0'">207 <xsl:when test="$bomb-testsuite = 'n'"> 208 208 <xsl:text>make -k check >> $TEST_LOG 2>&1 || true
</xsl:text> 209 209 </xsl:when> -
LFS/master.sh
r54f4782 r47fddc8 80 80 *expect) [[ "${TEST}" = "0" ]] && continue ;; 81 81 *dejagnu) [[ "${TEST}" = "0" ]] && continue ;; 82 *stripping) [[ "${STRIP}" = " 0" ]] && continue ;;82 *stripping) [[ "${STRIP}" = "n" ]] && continue ;; 83 83 *glibc) [[ "${TEST}" = "3" ]] && \ 84 84 sed -i 's@/usr/lib/locale@/tools/lib/locale@' $file ;; … … 177 177 case "${this_script}" in 178 178 *chroot) continue ;; 179 *stripping*) [[ "${STRIP}" = " 0" ]] && continue ;;179 *stripping*) [[ "${STRIP}" = "n" ]] && continue ;; 180 180 esac 181 181 … … 335 335 336 336 # Add SBU-disk_usage report target if required 337 if [[ "$REPORT" = " 1" ]] ; then wrt_report ; fi337 if [[ "$REPORT" = "y" ]] ; then wrt_report ; fi 338 338 } 339 339 … … 352 352 chapter6_Makefiles 353 353 # Add the iterations targets, if needed 354 [[ "$COMPARE" != "0" ]] && wrt_compare_targets354 [[ "$COMPARE" = "y" ]] && wrt_compare_targets 355 355 chapter789_Makefiles 356 356 -
Makefile
r54f4782 r47fddc8 8 8 9 9 all: menuconfig 10 @clear 10 11 @touch using_menuconfig 11 12 @`grep RUN_ME configuration | sed -e 's@RUN_ME=\"@@' -e 's@\"@@' ` || rm -f using_menuconfig -
common/common-functions
r54f4782 r47fddc8 573 573 #----------------------------# 574 574 # Test if make must be run. 575 if [ "$RUNMAKE" = " 1" ] ; then575 if [ "$RUNMAKE" = "y" ] ; then 576 576 # Test to make sure we're running the build as root 577 577 if [ "$UID" != "0" ] ; then … … 593 593 #----------------------------# 594 594 # Test if the clean must be done. 595 if [ "$ CLEAN" = "1" ]; then595 if [ "${CLEAN}" = "y" ]; then 596 596 # Test to make sure we're running the clean as root 597 597 if [ "$UID" != "0" ] ; then … … 706 706 --stringparam page $PAGE \ 707 707 --stringparam lang $LANG \ 708 --stringparam keymap $ {KEYMAP:-"none"}\708 --stringparam keymap $KEYMAP \ 709 709 -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 710 710 ;; … … 718 718 --stringparam page $PAGE \ 719 719 --stringparam lang $LANG \ 720 --stringparam keymap $ {KEYMAP:-"none"}\720 --stringparam keymap $KEYMAP \ 721 721 -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1 722 722 ;; … … 732 732 --stringparam lang $LANG \ 733 733 --stringparam lc_all $LC_ALL \ 734 --stringparam keymap $ {KEYMAP:-"none"}\734 --stringparam keymap $KEYMAP \ 735 735 --stringparam grsecurity_host $GRSECURITY_HOST \ 736 736 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1 … … 796 796 797 797 # Test if the packages must be downloaded 798 [ ! "$GETPKG" = " 1" ] && return798 [ ! "$GETPKG" = "y" ] && return 799 799 800 800 gs_wrt_message(){ … … 826 826 *linux/linux-* ) 827 827 [[ -z "$CONFIG" ]] && [[ -z "$BOOT_CONFIG" ]] && \ 828 [[ "$GETKERNEL" = " 0" ]] && continue828 [[ "$GETKERNEL" = "n" ]] && continue 829 829 ;; 830 830 esac … … 908 908 # Do not allow the automatic execution of the Makefile. 909 909 echo "${tab_}${BOLD}${RED}*** ${YELLOW}Automatic execution of the generated makefile has been inhibited. ${RED}***${OFF}${nl_}" 910 RUNMAKE= 0910 RUNMAKE="n" 911 911 fi 912 912 } -
common/config
r54f4782 r47fddc8 12 12 BUILDDIR=/mnt/build_dir 13 13 14 # Create SBU and disk usage report 0(no)/1(yes)14 # Create SBU and disk usage report n(no)/y(yes) 15 15 # NOTE: requires to have bc installed on the host 16 REPORT= 116 REPORT=y 17 17 18 18 #=== Getting packages === 19 19 # Files will be retrieved from the local archive SRC_ARCHIVE 20 20 # (if defined) or the 'net and will be stored in $BUILDDIR/sources 21 #--- Download the source packages 0(no)/1(yes)22 GETPKG= 021 #--- Download the source packages n(no)/y(yes) 22 GETPKG=n 23 23 24 24 #--- The local repository for packages/file 25 # Used only if GETPKG = 125 # Used only if GETPKG = y 26 26 # Any missing file will be downloaded and archived here, 27 27 # if the user has the right priviledges. … … 33 33 34 34 #=== Build options === 35 #--- Automatically run the makefile once it has been created 0(no)/1(yes)36 RUNMAKE= 035 #--- Automatically run the makefile once it has been created n(no)/y(yes) 36 RUNMAKE=n 37 37 38 38 #--- Optimize the build [0-2] … … 53 53 54 54 #--- Bomb on test suites failures? 55 # 0= no, I want to build the full system and review the logs56 # 1= yes, bomb at the first test suite failure to can review the build dir57 BOMB_TEST= 055 # n = no, I want to build the full system and review the logs 56 # y = yes, bomb at the first test suite failure to can review the build dir 57 BOMB_TEST=n 58 58 59 #--- Run the stripping phases 0(no)/1(yes)60 STRIP= 159 #--- Run the stripping phases n(no)/y(yes) 60 STRIP=y 61 61 62 62 #--- page definition for groff letter/A4 … … 66 66 TIMEZONE=${TZ:-GMT} 67 67 68 #--- install the optional vim-lang package 0(no)/1(yes)69 VIMLANG= 168 #--- install the optional vim-lang package n(no)/y(yes) 69 VIMLANG=y 70 70 71 71 #--- Language information in /etc/profile See <locale -a> for values … … 80 80 81 81 #=== Variables needed by iterative comparison analysis === 82 #--- Should some iterative comparison analysis by made? 0(no)/1(yes)83 COMPARE= 082 #--- Should some iterative comparison analysis by made? n(no)/y(yes) 83 COMPARE=n 84 84 85 85 #--- The number of final stage builds to create and compare, min. 2, max. 5 86 86 ITERATIONS=3 87 87 88 #--- Run ICA testing 0(no)/1(yes)89 RUN_ICA= 088 #--- Run ICA testing n(no)/y(yes) 89 RUN_ICA=n 90 90 91 #--- Run farce testing 0(no)/1(yes)92 RUN_FARCE= 091 #--- Run farce testing n(no)/y(yes) 92 RUN_FARCE=n 93 93 94 94 #==== INTERNAL VARIABLES ==== -
common/func_compare.sh
r54f4782 r47fddc8 55 55 fi 56 56 57 if [[ "$RUN_ICA" = " 1" ]] ; then57 if [[ "$RUN_ICA" = "y" ]] ; then 58 58 local DEST_ICA=$DEST_TOPDIR/ICA && \ 59 59 ( … … 68 68 fi 69 69 70 if [[ "$RUN_FARCE" = " 1" ]] ; then70 if [[ "$RUN_FARCE" = "y" ]] ; then 71 71 local DEST_FARCE=$DEST_TOPDIR/farce && \ 72 72 ( -
common/func_validate_configs.sh
r54f4782 r47fddc8 1 1 # $Id$ 2 3 declare -r dotSTR=".................." 2 4 3 5 #----------------------------# … … 7 9 local -r ERROR_MSG_pt2=' check the config file ${BOLD}${GREEN}\<$(echo $PROGNAME | tr [a-z] [A-Z])/config\> or \<common/config\>${OFF}' 8 10 9 local -r PARAM_VALS='TARGET :${L_arrow}${BOLD}${TARGET}${OFF}${R_arrow}'10 local -r PARAM_VALS2='TARGET32 :${L_arrow}${BOLD}${TARGET32}${OFF}${R_arrow}'11 local -r PARAM_VALS='TARGET${dotSTR:6} ${L_arrow}${BOLD}${TARGET}${OFF}${R_arrow}' 12 local -r PARAM_VALS2='TARGET32${dotSTR:8} ${L_arrow}${BOLD}${TARGET32}${OFF}${R_arrow}' 11 13 12 14 write_error_and_die() { … … 94 96 local -r ERROR_MSG_pt1='The variable \"${L_arrow}${config_param}${R_arrow}\" value ${L_arrow}${BOLD}${!config_param}${R_arrow} is invalid,' 95 97 local -r ERROR_MSG_pt2=' check the config file ${BOLD}${GREEN}\<$(echo $PROGNAME | tr [a-z] [A-Z])/config\> or \<common/config\>${OFF}' 96 local -r PARAM_VALS='${config_param} :${L_arrow}${BOLD}${!config_param}${OFF}${R_arrow}'98 local -r PARAM_VALS='${config_param}${dotSTR:${#config_param}} ${L_arrow}${BOLD}${!config_param}${OFF}${R_arrow}' 97 99 98 100 local PARAM_LIST= … … 175 177 176 178 # Validate general parameters.. 177 GETPKG) validate_against_str "x 0x x1x" ;;179 GETPKG) validate_against_str "xnx xyx" ;; 178 180 GETKERNEL ) if [[ -z "$CONFIG" ]] && [[ -z "$BOOT_CONFIG" ]] ; then 179 [[ "$GETPKG" = " 1" ]] && validate_against_str "x0x x1x"181 [[ "$GETPKG" = "y" ]] && validate_against_str "xnx xyx" 180 182 fi ;; 181 RUNMAKE) validate_against_str "x 0x x1x" ;;182 REPORT) validate_against_str "x 0x x1x"183 if [[ "${!config_param}" = " 1" ]]; then183 RUNMAKE) validate_against_str "xnx xyx" ;; 184 REPORT) validate_against_str "xnx xyx" 185 if [[ "${!config_param}" = "y" ]]; then 184 186 if [[ `type -p bc` ]]; then 185 187 continue … … 187 189 echo -e " ${BOLD}The bc binary was not found${OFF}" 188 190 echo -e " The SBU and disk usage report creation will be skiped" 189 REPORT= 0191 REPORT=n 190 192 continue 191 193 fi 192 194 fi ;; 193 COMPARE) if [[ ! "$COMPARE" = " 1" ]]; then194 validate_against_str "x 0x x1x"195 COMPARE) if [[ ! "$COMPARE" = "y" ]]; then 196 validate_against_str "xnx xyx" 195 197 else 196 if [[ ! "${RUN_ICA}" = " 1" ]] && [[ ! "${RUN_FARCE}" = "1" ]]; then198 if [[ ! "${RUN_ICA}" = "y" ]] && [[ ! "${RUN_FARCE}" = "y" ]]; then 197 199 echo "${nl_}${DD_BORDER}" 198 200 echo "You have elected to analyse your build but have failed to select a tool." >&2 … … 202 204 fi 203 205 fi ;; 204 RUN_ICA) [[ "$COMPARE" = " 1" ]] && validate_against_str "x0x x1x" ;;205 RUN_FARCE) [[ "$COMPARE" = " 1" ]] && validate_against_str "x0x x1x" ;;206 ITERATIONS) [[ "$COMPARE" = " 1" ]] && validate_against_str "x2x x3x x4x x5x" ;;206 RUN_ICA) [[ "$COMPARE" = "y" ]] && validate_against_str "xnx xyx" ;; 207 RUN_FARCE) [[ "$COMPARE" = "y" ]] && validate_against_str "xnx xyx" ;; 208 ITERATIONS) [[ "$COMPARE" = "y" ]] && validate_against_str "x2x x3x x4x x5x" ;; 207 209 TEST) validate_against_str "x0x x1x x2x x3x" ;; 208 BOMB_TEST) [[ ! "$TEST" = "0" ]] && validate_against_str "x 0x x1x" ;;210 BOMB_TEST) [[ ! "$TEST" = "0" ]] && validate_against_str "xnx xyx" ;; 209 211 OPTIMIZE) validate_against_str "x0x x1x x2x" ;; 210 STRIP) validate_against_str "x 0x x1x" ;;211 VIMLANG) validate_against_str "x 0x x1x" ;;212 STRIP) validate_against_str "xnx xyx" ;; 213 VIMLANG) validate_against_str "xnx xyx" ;; 212 214 MODEL) validate_against_str "xglibcx xuclibcx" ;; 213 215 PAGE) validate_against_str "xletterx xA4x" ;; … … 221 223 [[ "${!config_param}" = "**EDIT ME**" ]] && write_error_and_die 222 224 ;; 223 GRSECURITY_HOST) validate_against_str "x 0x x1x" ;;225 GRSECURITY_HOST) validate_against_str "xnx xyx" ;; 224 226 225 227 # BOOK validation. Very ugly, need be fixed … … 233 235 # fatal -z -d -w, 234 236 # warning -z+ -w+ 235 SRC_ARCHIVE) [[ "$GETPKG" = " 1" ]] && validate_dir -z+ -d -w+ ;;237 SRC_ARCHIVE) [[ "$GETPKG" = "y" ]] && validate_dir -z+ -d -w+ ;; 236 238 BUILDDIR) # The build directory/partition MUST exist and be writable by the user 237 239 validate_dir -z -d -w -
master.sh
r54f4782 r47fddc8 47 47 VERBOSITY=0 48 48 49 [[ $VERBOSITY > 0 ]] && echo -n "Loading common-functions module..."50 source $COMMON_DIR/common-functions51 [[ $? > 0 ]] && echo " $COMMON_DIR/common-functions did not load.." && exit52 [[ $VERBOSITY > 0 ]] && echo "OK"53 #54 [[ $VERBOSITY > 0 ]] && echo -n "Loading masterscript conf..."55 source $COMMON_DIR/config56 [[ $? > 0 ]] && echo "$COMMON_DIR/conf did not load.." && exit57 [[ $VERBOSITY > 0 ]] && echo "OK"58 #59 [[ $VERBOSITY > 0 ]] && echo -n "Loading config module <$MODULE_CONFIG>..."60 source $MODULE_CONFIG61 [[ $? > 0 ]] && echo "$MODULE_CONFIG did not load.." && exit 162 [[ $VERBOSITY > 0 ]] && echo "OK"63 #64 [[ $VERBOSITY > 0 ]] && echo -n "Loading code module <$MODULE>..."65 source $MODULE66 [[ $? > 0 ]] && echo "$MODULE did not load.." && exit 267 [[ $VERBOSITY > 0 ]] && echo "OK"68 #69 [[ $VERBOSITY > 0 ]] && echo "${SD_BORDER}${nl_}"70 49 71 50 if [[ -e using_menuconfig ]]; then … … 85 64 #--- farce report log directory 86 65 FARCELOGDIR=$LOGDIR/farce 87 66 XSL=$PROGNAME.xsl 67 68 case $PROGNAME in 69 clfs2) LFSVRS=development; TREE=branches/clfs-2.0/BOOK ;; 70 *) LFSVRS=development; TREE=trunk/BOOK ;; 71 esac 72 88 73 if [[ ! -z ${BRANCH_ID} ]]; then 89 74 case $BRANCH_ID in … … 113 98 esac 114 99 fi 115 fi 100 # These are boolean vars generated from Config.in. 101 # ISSUE: If a boolean parameter is not set <true> that 102 # variable is not defined by the menu app. This can 103 # cause a headache if you are not careful. 104 # The following parameters MUST be created and have a 105 # default value. 106 RUNMAKE=${RUNMAKE:-n} 107 GETPKG=${GETPKG:-n} 108 GETKERNEL=${GETKERNEL:-n} 109 COMPARE=${COMPARE:-n} 110 RUN_FARCE=${RUN_FARCE:-n} 111 RUN_ICA=${RUN_ICA:-n} 112 BOMB_TEST=${BOMB_TEST:-n} 113 STRIP=${STRIP:=n} 114 REPORT=${REPORT:=n} 115 VIMLANG=${VIMLANG:-n} 116 KEYMAP=${KEYMAP:=none} 117 GRSECURITY_HOST=${GRSECURITY_HOST:-n} 118 119 else 120 # 121 [[ $VERBOSITY > 0 ]] && echo -n "Loading masterscript conf..." 122 source $COMMON_DIR/config 123 [[ $? > 0 ]] && echo "$COMMON_DIR/conf did not load.." && exit 124 [[ $VERBOSITY > 0 ]] && echo "OK" 125 # 126 [[ $VERBOSITY > 0 ]] && echo -n "Loading config module <$MODULE_CONFIG>..." 127 source $MODULE_CONFIG 128 [[ $? > 0 ]] && echo "$MODULE_CONFIG did not load.." && exit 1 129 [[ $VERBOSITY > 0 ]] && echo "OK" 130 # 131 fi 132 133 134 [[ $VERBOSITY > 0 ]] && echo -n "Loading common-functions module..." 135 source $COMMON_DIR/common-functions 136 [[ $? > 0 ]] && echo " $COMMON_DIR/common-functions did not load.." && exit 137 [[ $VERBOSITY > 0 ]] && echo "OK" 138 [[ $VERBOSITY > 0 ]] && echo -n "Loading code module <$MODULE>..." 139 source $MODULE 140 [[ $? > 0 ]] && echo "$MODULE did not load.." && exit 2 141 [[ $VERBOSITY > 0 ]] && echo "OK" 142 # 143 [[ $VERBOSITY > 0 ]] && echo "${SD_BORDER}${nl_}" 144 116 145 117 146 #=========================================================== … … 191 220 ;; 192 221 193 --get-packages | -G ) GETPKG= 1;;222 --get-packages | -G ) GETPKG=y ;; 194 223 195 224 --help | -h ) usage | more && exit ;; … … 268 297 shift 269 298 case $1 in 270 ICA) RUN_ICA=1 271 RUN_FARCE=0 272 COMPARE=1 273 ;; 274 farce) RUN_ICA=0 275 RUN_FARCE=1 276 COMPARE=1 277 ;; 278 both) RUN_ICA=1 279 RUN_FARCE=1 280 COMPARE=1 281 ;; 299 ICA) RUN_ICA=y; RUN_FARCE=n; COMPARE=y ;; 300 farce) RUN_ICA=n; RUN_FARCE=y; COMPARE=y ;; 301 both) RUN_ICA=y; RUN_FARCE=y; COMPARE=y ;; 282 302 *) 283 303 echo -e "\n$1 is an unknown analysis method." … … 317 337 test $# = 1 && eval "$exit_missing_arg" 318 338 shift 319 case $1 in 320 arm ) 321 ARCH=arm 322 TARGET="arm-unknown-linux-gnu" 323 ;; 324 x86 ) 325 ARCH=x86 326 TARGET="i686-pc-linux-gnu" 327 ;; 328 i486 ) 329 ARCH=x86 330 TARGET="i486-pc-linux-gnu" 331 ;; 332 i586 ) 333 ARCH=x86 334 TARGET="i586-pc-linux-gnu" 335 ;; 336 ppc ) 337 ARCH=ppc 338 TARGET="powerpc-unknown-linux-gnu" 339 ;; 340 mips ) 341 ARCH=mips 342 TARGET="mips-unknown-linux-gnu" 343 ;; 344 mipsel ) 345 ARCH=mips 346 TARGET="mipsel-unknown-linux-gnu" 347 ;; 348 sparc ) 349 ARCH=sparc 350 TARGET="sparcv9-unknown-linux-gnu" 351 ;; 352 x86_64-64 ) 353 ARCH=x86_64-64 354 TARGET="x86_64-unknown-linux-gnu" 355 ;; 356 mips64-64 ) 357 ARCH=mips64-64 358 TARGET="mips-unknown-linux-gnu" 359 ;; 360 mipsel64-64 ) 361 ARCH=mips64-64 362 TARGET="mipsel-unknown-linux-gnu" 363 ;; 364 sparc64-64 ) 365 ARCH=sparc64-64 366 TARGET="sparc64-unknown-linux-gnu" 367 ;; 368 alpha ) 369 ARCH=alpha 370 TARGET="alpha-unknown-linux-gnu" 371 ;; 372 x86_64 ) 373 ARCH=x86_64 374 TARGET="x86_64-unknown-linux-gnu" 375 TARGET32="i686-pc-linux-gnu" 376 ;; 377 mips64 ) 378 ARCH=mips64 379 TARGET="mips-unknown-linux-gnu" 380 TARGET32="mips-unknown-linux-gnu" 381 ;; 382 mipsel64 ) 383 ARCH=mips64 384 TARGET="mipsel-unknown-linux-gnu" 385 TARGET32="mipsel-unknown-linux-gnu" 386 ;; 387 sparc64 ) 388 ARCH=sparc64 389 TARGET="sparc64-unknown-linux-gnu" 390 TARGET32="sparcv9-unknown-linux-gnu" 391 ;; 392 ppc64 ) 393 ARCH=ppc64 394 TARGET="powerpc64-unknown-linux-gnu" 395 TARGET32="powerpc-unknown-linux-gnu" 396 ;; 397 * ) 398 echo -e "\n$1 is an unknown or unsupported arch." 399 exit 1 400 ;; 339 case $PROGNAME in 340 CLFS2) 341 case $1 in 342 arm) ARCH=arm; TARGET="arm-unknown-linux-gnu" ;; 343 x86) ARCH=x86; TARGET="i686-pc-linux-gnu" ;; 344 *) echo -e "\n$1 is an unknown or unsupported arch."; exit 1 345 esac 346 ;; 347 CLFS) 348 case $1 in 349 arm ) ARCH=arm; TARGET="arm-unknown-linux-gnu" ;; 350 x86 ) ARCH=x86; TARGET="i686-pc-linux-gnu" ;; 351 i486 ) ARCH=x86; TARGET="i486-pc-linux-gnu" ;; 352 i586 ) ARCH=x86; TARGET="i586-pc-linux-gnu" ;; 353 ppc ) ARCH=ppc; TARGET="powerpc-unknown-linux-gnu" ;; 354 mips ) ARCH=mips; TARGET="mips-unknown-linux-gnu" ;; 355 mipsel ) ARCH=mips; TARGET="mipsel-unknown-linux-gnu" ;; 356 sparc ) ARCH=sparc; TARGET="sparcv9-unknown-linux-gnu" ;; 357 358 x86_64-64 ) ARCH=x86_64-64; TARGET="x86_64-unknown-linux-gnu" ;; 359 mips64-64 ) ARCH=mips64-64; TARGET="mips-unknown-linux-gnu" ;; 360 mipsel64-64 ) ARCH=mips64-64; TARGET="mipsel-unknown-linux-gnu" ;; 361 sparc64-64 ) ARCH=sparc64-64; TARGET="sparc64-unknown-linux-gnu" ;; 362 alpha ) ARCH=alpha; TARGET="alpha-unknown-linux-gnu" ;; 363 364 x86_64 ) ARCH=x86_64; TARGET="x86_64-unknown-linux-gnu"; TARGET32="i686-pc-linux-gnu" ;; 365 mips64 ) ARCH=mips64; TARGET="mips-unknown-linux-gnu"; TARGET32="mips-unknown-linux-gnu" ;; 366 mipsel64 ) ARCH=mips64; TARGET="mipsel-unknown-linux-gnu"; TARGET32="mipsel-unknown-linux-gnu" ;; 367 sparc64 ) ARCH=sparc64; TARGET="sparc64-unknown-linux-gnu"; TARGET32="sparcv9-unknown-linux-gnu" ;; 368 ppc64 ) ARCH=ppc64; TARGET="powerpc64-unknown-linux-gnu"; TARGET32="powerpc-unknown-linux-gnu" ;; 369 370 * ) echo -e "\n$1 is an unknown or unsupported arch."; exit 1 ;; 371 esac 372 ;; 401 373 esac 402 374 ;; … … 447 419 shift 448 420 done 421 449 422 450 423 #=================================================== … … 461 434 462 435 463 # Check for minimum gcc and kernel versions 464 #check_requirements 1 # 0/1 0-do not display values. 436 # Check for minimum bash,tar,gcc and kernel versions 465 437 echo 466 438 check_version "2.6.2" "`uname -r`" "KERNEL" … … 483 455 # Load additional modules or configuration files based on global settings 484 456 # compare module 485 if [[ "$COMPARE" = " 1" ]]; then457 if [[ "$COMPARE" = "y" ]]; then 486 458 [[ $VERBOSITY > 0 ]] && echo -n "Loading compare module..." 487 459 source $COMMON_DIR/func_compare.sh … … 538 510 [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/ 539 511 # 540 if [[ "$COMPARE" != "0" ]]; then512 if [[ "$COMPARE" = "y" ]]; then 541 513 mkdir -p $JHALFSDIR/extras 542 514 cp extras/* $JHALFSDIR/extras … … 550 522 fi 551 523 # 552 if [[ "$REPORT" = " 1" ]]; then524 if [[ "$REPORT" = "y" ]]; then 553 525 cp $COMMON_DIR/create-sbu_du-report.sh $JHALFSDIR/ 554 526 # After being sure that all looks sane, dump the settings to a file … … 557 529 fi 558 530 # 559 [[ "$GETPKG" = " 1" ]] && cp $COMMON_DIR/urls.xsl $JHALFSDIR/531 [[ "$GETPKG" = "y" ]] && cp $COMMON_DIR/urls.xsl $JHALFSDIR/ 560 532 # 561 533 cp $COMMON_DIR/packages.xsl $JHALFSDIR/
Note:
See TracChangeset
for help on using the changeset viewer.