Browse Source

Changed linux-conf.in to preinitialize the $lx_confscripts list

early
Alejandro Mery 17 years ago
parent
commit
8a615290e0
  1. 19
      base/linux26/linux-conf.in

19
base/linux26/linux-conf.in

@ -29,11 +29,21 @@ lx_confmerge=
for x in $base/config/$config/linux.cfg \
$base/target/$target/kernel${treever}.conf \
$base/target/$target/kernel.conf ; do
if [ -f $x ] ; then
if [ -f "$x" ]; then
var_append lx_confmerge ' ' "$x"
fi
done
# $lx_confscripts list of scripts to alter .config.2 generating .config.3 on auto_config()
lx_confscripts=
for x in $base/target/$target/kernel$treever.conf.sh \
$base/target/$target/kernel.conf.sh ; do
if [ -f "$x" ]; then
var_append lx_confscripts ' ' "$x"
break
fi
done
# inject a possible pre-/ post-release patch
# we filter out .tar`s to avoid trouble with the linuxsh kernel drop-in trees
var_insert patchfiles " " "`match_source_file patch-.* | grep -v '\.tar\.'`"
@ -79,12 +89,7 @@ auto_config ()
echo "Enabling all modules ..."
yes '' | eval $MAKE $makeopt no2modconfig > /dev/null ; cp .config{,.2}
if [ -f $base/target/$target/kernel$treever.conf.sh ] ; then
lx_confscripts="$base/target/$target/kernel$treever.conf.sh $confscripts"
elif [ -f $base/target/$target/kernel.conf.sh ] ; then
lx_confscripts="$base/target/$target/kernel.conf.sh $confscripts"
fi
# call scripts to tweak the config file
for x in $lx_confscripts ; do
echo " running: $x"
sh $x .config

Loading…
Cancel
Save