Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 44 lines (32 sloc) 0.839 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
#!/bin/sh

. config/options

$SCRIPTS/kconfiginit

DEFCONFIG_PATH="$CONFIG/defconfigs"
DOT_CONFIG="`ls -d $ROOT/$BUILD_NOARCH/kconfig-frontends-*`/.config"

die () {
  echo "Usage: $0 [list | defconfig filename]"
  exit 1
}

not_found () {
  echo "File not found: $CFG_FILENAME"
  exit 1
}

# check for valid config file
[ -z "$1" ] && die

if [ "$1" = "list" ]; then
  ls -1 $DEFCONFIG_PATH | sed 's/\.conf$//g'
  exit 0
fi

CFG_FILENAME="${DEFCONFIG_PATH}/$1.conf"

[ ! -f "$CFG_FILENAME" ] && not_found

echo ""
echo "########################################################################"
echo "##"
echo "## Loading configuration from:"
echo "## ./${CFG_FILENAME}"
echo "##"
echo "########################################################################"
echo ""

cp -P ${CFG_FILENAME} ${DOT_CONFIG}
make silentoldconfig

exit 0
Something went wrong with that request. Please try again.