|
|
@ -56,8 +56,9 @@ makeopt= |
|
|
|
var_append makeopt ' ' "ARCH=$lx_cpu CROSS_COMPILE=$archprefix KCC=$KCC" |
|
|
|
var_append makeopt ' ' "ARCH=$lx_cpu CROSS_COMPILE=$archprefix KCC=$KCC" |
|
|
|
makeinstopt="$makeopt" |
|
|
|
makeinstopt="$makeopt" |
|
|
|
|
|
|
|
|
|
|
|
auto_config () |
|
|
|
auto_config() { |
|
|
|
{ |
|
|
|
# get defconfig (.config.1) |
|
|
|
|
|
|
|
# |
|
|
|
if [ -f $base/architecture/$arch/kernel$treever.conf.sh ] ; then |
|
|
|
if [ -f $base/architecture/$arch/kernel$treever.conf.sh ] ; then |
|
|
|
echo " using: architecture/$arch/kernel$treever.conf.sh" |
|
|
|
echo " using: architecture/$arch/kernel$treever.conf.sh" |
|
|
|
. $base/architecture/$arch/kernel$treever.conf.sh > .config |
|
|
|
. $base/architecture/$arch/kernel$treever.conf.sh > .config |
|
|
@ -90,6 +91,7 @@ auto_config () |
|
|
|
yes '' | eval $MAKE $makeopt no2modconfig > /dev/null ; cp .config{,.2} |
|
|
|
yes '' | eval $MAKE $makeopt no2modconfig > /dev/null ; cp .config{,.2} |
|
|
|
|
|
|
|
|
|
|
|
# call scripts to tweak the config file |
|
|
|
# call scripts to tweak the config file |
|
|
|
|
|
|
|
# |
|
|
|
for x in $lx_confscripts ; do |
|
|
|
for x in $lx_confscripts ; do |
|
|
|
echo " running: $x" |
|
|
|
echo " running: $x" |
|
|
|
sh $x .config |
|
|
|
sh $x .config |
|
|
@ -97,6 +99,7 @@ auto_config () |
|
|
|
cp .config{,.3} |
|
|
|
cp .config{,.3} |
|
|
|
|
|
|
|
|
|
|
|
# merge various text/plain config files |
|
|
|
# merge various text/plain config files |
|
|
|
|
|
|
|
# |
|
|
|
for x in $lx_confmerge; do |
|
|
|
for x in $lx_confmerge; do |
|
|
|
if [ -f $x ] ; then |
|
|
|
if [ -f $x ] ; then |
|
|
|
echo " merging: '$x'" |
|
|
|
echo " merging: '$x'" |
|
|
@ -112,9 +115,11 @@ auto_config () |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
# create a valid .config |
|
|
|
# create a valid .config |
|
|
|
|
|
|
|
# |
|
|
|
yes '' | eval $MAKE $makeopt oldconfig > /dev/null ; cp .config{,.5} |
|
|
|
yes '' | eval $MAKE $makeopt oldconfig > /dev/null ; cp .config{,.5} |
|
|
|
|
|
|
|
|
|
|
|
# last disable broken stuff |
|
|
|
# last disable broken stuff |
|
|
|
|
|
|
|
# |
|
|
|
rm -f /tmp/$$.sed |
|
|
|
rm -f /tmp/$$.sed |
|
|
|
list="CONFIG_THIS_DOES_NOT_EXIST" |
|
|
|
list="CONFIG_THIS_DOES_NOT_EXIST" |
|
|
|
for x in $pkg_linux_brokenfiles ; do |
|
|
|
for x in $pkg_linux_brokenfiles ; do |
|
|
@ -126,14 +131,14 @@ auto_config () |
|
|
|
for x in $list ; do |
|
|
|
for x in $list ; do |
|
|
|
echo "s,^$x=.\$,# $x is not set,;" >> /tmp/$$.sed |
|
|
|
echo "s,^$x=.\$,# $x is not set,;" >> /tmp/$$.sed |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
sed -f /tmp/$$.sed < .config > .config.6 |
|
|
|
sed -f /tmp/$$.sed < .config > .config.6 |
|
|
|
cp .config{.6,} ; rm -f /tmp/$$.sed |
|
|
|
rm -f /tmp/$$.sed |
|
|
|
|
|
|
|
cp .config{.6,} |
|
|
|
|
|
|
|
|
|
|
|
# create a valid .config (dependencies might need to be disabled) |
|
|
|
# create a valid .config (dependencies might need to be disabled) |
|
|
|
yes '' | eval $MAKE $makeopt oldconfig > /dev/null |
|
|
|
yes '' | eval $MAKE $makeopt oldconfig > /dev/null |
|
|
|
|
|
|
|
|
|
|
|
# save final config |
|
|
|
# save final config (with modules) |
|
|
|
cp .config{,_modules} |
|
|
|
cp .config{,_modules} |
|
|
|
|
|
|
|
|
|
|
|
echo "Creating config without modules ...." |
|
|
|
echo "Creating config without modules ...." |
|
|
|