Changeset 7432834 for common


Ignore:
Timestamp:
07/23/2006 02:44:13 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
d763e91
Parents:
a708b15
Message:

Begin coding against the CLFS-2.0 book

Location:
common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    ra708b15 r7432834  
    130130${BOLD}  --method BUILDMETHOD ${OFF}
    131131        Select the build method, chroot or boot
     132-EOF-
     133
     134[[ ${PROGNAME} = "clfs2" ]] &&
     135cat <<- -EOF-
     136
     137${BOLD}  -A, --arch ARCH ${OFF}
     138        Select the TARGET architecture, valid selections are:
     139           32bit builds
     140        arm
     141           64bit builds
     142
     143        64bit multi-lib
    132144-EOF-
    133145
     
    646658      hlfs) svn_root="HLFS" ;;
    647659      clfs) svn_root="cross-lfs" ;;
     660      clfs2) svn_root="cross-lfs" ;;
    648661      *) echo "BOOK not defined in function <get_book>"
    649662          exit 1 ;;
     
    661674        cd $JHALFSDIR
    662675        case $PROGNAME in
    663           clfs)
     676          clfs | clfs2)
    664677            VERSION=$(xmllint --noent $BOOK/prologue/$ARCH/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //'  -e 's/<\/.*//') ;;
    665678          *)
     
    672685      fi
    673686    else
    674       svn co $SVN/${svn_root}/${TREE} ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1
     687       case $PROGNAME in
     688         clfs2 ) svn co $SVN/${svn_root}/branches/clfs-2.0/BOOK ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;;
     689              *) svn co $SVN/${svn_root}/${TREE} ${PROGNAME}-$LFSVRS >>$LOGDIR/$LOG 2>&1 ;;
     690       esac
    675691      echo -ne "done\n"
    676692      extract_commands
     
    694710  cd $JHALFSDIR
    695711  case $PROGNAME in
    696     clfs)
     712    clfs | clfs2 )
    697713      VERSION=$(xmllint --noent $BOOK/prologue/$ARCH/bookinfo.xml 2>/dev/null | grep subtitle | sed -e 's/^.*ion //'  -e 's/<\/.*//') ;;
    698714    *)
     
    722738                 -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
    723739      ;;
     740
     741    clfs2)
     742        echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture"
     743        xsltproc --nonet \
     744                 --xinclude \
     745                 --stringparam testsuite $TEST \
     746                 --stringparam vim-lang $VIMLANG \
     747                 --stringparam timezone $TIMEZONE \
     748                 --stringparam page $PAGE \
     749                 --stringparam lang $LANG \
     750                 --stringparam keymap $KEYMAP \
     751                 -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
     752      ;;
    724753    hlfs)
    725754        echo -n " ${L_arrow}${BOLD}$MODEL${R_arrow} HLFS libc implementation"
     
    770799  echo -n "Creating <${PROGNAME}> list of tarball names for $BOOK $ARCH"
    771800  case ${PROGNAME} in
    772     clfs)
     801    clfs | clfs2)
    773802        xsltproc --nonet --xinclude -o pkg_tarball_list packages.xsl \
    774803                 $BOOK/materials/${ARCH}-chapter.xml >>$LOGDIR/$LOG 2>&1
     
    925954        echo " ...OK"
    926955      ;;
     956    clfs2)
     957        echo -n "Creating CLFS2 <${ARCH}> specific URLs file"
     958        xsltproc --nonet --xinclude \
     959                 --stringparam server $SERVER \
     960                 -o $BUILDDIR/sources/urls.lst urls.xsl \
     961                 $BOOK/materials/$ARCH-chapter.xml >>$LOGDIR/$LOG 2>&1
     962        echo " ...OK"
     963      ;;
    927964    hlfs)
    928965        echo -n "Creating HLFS <${MODEL}> specific URLs file"
  • common/func_validate_configs.sh

    ra708b15 r7432834  
    5858   "ppc64")      [[ "${TARGET}"   = "powerpc64-unknown-linux-gnu" ]] &&
    5959                 [[ "${TARGET32}" = "powerpc-unknown-linux-gnu"   ]] && return
     60    ;;
     61   "arm")        [[ "${TARGET}"   = "arm-unknown-linux-gnu" ]] && return
    6062    ;;
    6163   *)  write_error_and_die
     
    8587
    8688  # First internal variables, then the ones that change the book's flavour, and lastly system configuration variables
    87   local -r hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP         PAGE TIMEZONE LANG LC_ALL"
    88   local -r clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD  ARCH  TARGET  TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG"
    89   local -r  lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE                       TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL        VIMLANG PAGE TIMEZONE LANG"
     89  local -r  hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP         PAGE TIMEZONE LANG LC_ALL"
     90  local -r  clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD  ARCH  TARGET  TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG"
     91  local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE         ARCH  TARGET       OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG"
     92  local -r   lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE                       TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL        VIMLANG PAGE TIMEZONE LANG"
    9093
    9194  local -r ERROR_MSG_pt1='The variable \"${L_arrow}${config_param}${R_arrow}\" value ${L_arrow}${BOLD}${!config_param}${R_arrow} is invalid,'
     
    209212      PAGE)       validate_against_str "xletterx xA4x" ;;
    210213      METHOD)     validate_against_str "xchrootx xbootx" ;;
    211       ARCH)       validate_against_str "xx86x xx86_64x xx86_64-64x xsparcx xsparc64x xsparc64-64x xmipsx xmips64x xmips64-64x xppcx xppc64x xalphax" ;;
     214      ARCH)       validate_against_str "xx86x xx86_64x xx86_64-64x xsparcx xsparc64x xsparc64-64x xmipsx xmips64x xmips64-64x xppcx xppc64x xalphax xarmx" ;;
    212215      TARGET)     validate_target ;;
    213216      GRSECURITY_HOST)  validate_against_str "x0x x1x" ;;
Note: See TracChangeset for help on using the changeset viewer.