Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 45 lines (32 sloc) 865 Bytes
#!/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
for f in $DEFCONFIG_PATH/*.conf; do echo $(basename $f .conf); done
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