Changeset 42e1b38


Ignore:
Timestamp:
10/13/2006 10:45:40 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
6dc325f
Parents:
2ee1d11
Message:

Add code for user defined scripts. User scripts added at the end of the final build (LFS only)

Files:
8 added
4 edited

Legend:

Unmodified
Added
Removed
  • Config.in

    r2ee1d11 r42e1b38  
    400400                        #   have read and write privileges on that directory.
    401401        #--- End BLFS specific params
    402 
     402       
     403        #--- Custom Tools support
     404        config CUSTOM_TOOLS
     405                bool    "Add custom tool support"
     406                default n
     407                depends on BOOK_LFS
     408                help
     409                        #--- Activating this option additional packages you create
     410                        #    will be installed.
     411                        #
     412        #--- End Custom Tools support
     413       
    403414#--- End BOOK Settings
    404415endmenu
  • common/common-functions

    r2ee1d11 r42e1b38  
    802802  fi
    803803
     804  if [[ "${CUSTOM_TOOLS}" = "y" ]]; then
     805    add_CustomToolsURLS
     806  fi
     807
    804808}
    805809
  • common/func_validate_configs.sh

    r2ee1d11 r42e1b38  
    2424  local -r  clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD ARCH TARGET TARGET32 TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP BLFS_TOOL"
    2525  local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE        ARCH TARGET                         OPTIMIZE REPORT                                      STRIP FSTAB             CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP BLFS_TOOL"
    26   local -r   lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE                             TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP BLFS_TOOL"
     26  local -r   lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE                             TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP BLFS_TOOL CUSTOM_TOOLS"
    2727  local -r  blfs_PARAM_LIST="BRANCH_ID BLFS_ROOT BLFS_XML TRACKING_DIR"
    2828
     
    111111      GRSECURITY_HOST | \
    112112      BLFS_TOOL       | \
     113      CUSTOM_TOOLS    | \
    113114      TIMEZONE        | \
    114115      PAGE)   echo -e "`eval echo $PARAM_VALS`" ;;
  • jhalfs

    r2ee1d11 r42e1b38  
    265265[[ $? > 0 ]] && echo " function module did not load.." && exit 2
    266266[[ $VERBOSITY > 0 ]] && echo "OK"
     267
     268[[ $VERBOSITY > 0 ]] && echo -n "Loading function <custom_pkgs>..."
     269source $COMMON_DIR/custom_pkgs
     270[[ $? > 0 ]] && echo " function module did not load.." && exit 2
     271[[ $VERBOSITY > 0 ]] && echo "OK"
     272
     273
    267274[[ $VERBOSITY > 0 ]] && echo "${SD_BORDER}${nl_}"
    268275
     
    354361  popd 1> /dev/null
    355362fi
     363#
     364if [[ "${PROGNAME}" = "lfs" ]]; then
     365  if [[ "${CUSTOM_TOOLS}" = "y" ]]; then
     366    echo "Copying custom tool scripts to $JHALFSDIR"
     367    mkdir -p $JHALFSDIR/custom-commands/config
     368    mkdir -p $JHALFSDIR/custom-commands/scripts
     369   cp -Rf custom/* $JHALFSDIR/custom-commands
     370  fi
     371fi
     372
    356373#
    357374if [[ "$REPORT" = "y" ]]; then
     
    408425
    409426build_Makefile
     427if [[ "${PROGNAME}" = "lfs" ]]; then
     428  if [[ "${CUSTOM_TOOLS}" = "y" ]]; then
     429    add_CustomTools
     430  fi
     431fi
    410432echo "${SD_BORDER}${nl_}"
    411433
Note: See TracChangeset for help on using the changeset viewer.