Changeset 6eef5ef


Ignore:
Timestamp:
03/21/2006 11:25:40 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
d591ee5
Parents:
68809ca
Message:

CLFS, manipulation of BOOT_CONFIG in CLFS/master.sh and common/func_validate_configs.sh

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLFS/master.sh

    r68809ca r6eef5ef  
    220220                [[ -z $CONFIG ]] && continue
    221221                  # Copy the config file to /sources with a standardized name
    222                 cp $CONFIG $BUILDDIR/sources/kernel-config
    223                 sed "s|make mrproper|make mrproper\ncp /sources/kernel-config .config|" -i $file
     222                cp $BOOT_CONFIG $BUILDDIR/sources/bootkernel-config
     223                sed "s|make mrproper|make mrproper\ncp /sources/bootkernel-config .config|" -i $file
    224224                  # You cannot run menuconfig from within the makefile
    225225                sed 's|menuconfig|oldconfig|'     -i $file
  • common/func_validate_configs.sh

    r68809ca r6eef5ef  
    117117
    118118
    119     for config_param in FSTAB CONFIG BOOK; do
     119    for config_param in FSTAB BOOK CONFIG; do
    120120      [[ $1 = "1" ]] && echo "`eval echo $PARAM_VALS`"
    121121      if [[ $config_param = BOOK ]]; then
     
    128128      write_error_and_die
    129129    done
    130       echo "   ${BOLD}${GREEN}${PARAM_GROUP%%_*T} specific parameters are valid${OFF}"
     130
     131    [[ "$PROGNAME" = "clfs" ]] &&
     132    for config_param in BOOT_CONFIG; do
     133      if [[ "${METHOD}" = "boot" ]]; then
     134        [[ $1 = "1" ]] && echo "`eval echo $PARAM_VALS`"
     135          # There must be a config file when the build method is 'boot'
     136        [[ -e "${!config_param}" ]] && [[ -s "${!config_param}" ]] && continue
     137          # If you make it this far then there is a problem
     138        write_error_and_die
     139      fi
     140    done
     141    echo "   ${BOLD}${GREEN}${PARAM_GROUP%%_*T} specific parameters are valid${OFF}"
    131142  done
     143
    132144  set -e
    133145  echo "$tab_***${BOLD}${GREEN}Config parameters look good${OFF}***"
Note: See TracChangeset for help on using the changeset viewer.