|
|
@ -88,14 +88,18 @@ auto_config() { |
|
|
|
# get defconfig (.config.0) |
|
|
|
# get defconfig (.config.0) |
|
|
|
# |
|
|
|
# |
|
|
|
echo "Creating linux default config" |
|
|
|
echo "Creating linux default config" |
|
|
|
|
|
|
|
case "$SDECFG_PKG_LINUX_CONFIG_STYLE" in |
|
|
|
if [ -f arch/$lx_cpu/defconfig ]; then |
|
|
|
none) |
|
|
|
cp arch/$lx_cpu/defconfig .config |
|
|
|
abort "auto_config: shouldn't reach this point." |
|
|
|
cp .config{,.0} |
|
|
|
;; |
|
|
|
else |
|
|
|
defconfig|nomodules) |
|
|
|
cp arch/$lx_arch/configs/${lx_subarch}_defconfig .config |
|
|
|
eval $MAKE $makeopt defconfig |
|
|
|
cp .config{,.0} |
|
|
|
;; |
|
|
|
fi |
|
|
|
allmodules) |
|
|
|
|
|
|
|
eval $MAKE $makeopt allmodconfig |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
|
|
|
|
cp .config{,.0} |
|
|
|
# architecture specific configuration (will be merged) |
|
|
|
# architecture specific configuration (will be merged) |
|
|
|
x=$( ls -1 $base/package/*/linux26/arch/config.$arch.sh 2> /dev/null | head -n 1) |
|
|
|
x=$( ls -1 $base/package/*/linux26/arch/config.$arch.sh 2> /dev/null | head -n 1) |
|
|
|
if [ -f "$x" ]; then |
|
|
|
if [ -f "$x" ]; then |
|
|
@ -183,7 +187,7 @@ auto_config() { |
|
|
|
mv .config .config_nomods |
|
|
|
mv .config .config_nomods |
|
|
|
|
|
|
|
|
|
|
|
# which .config to use? |
|
|
|
# which .config to use? |
|
|
|
if [ "$SDECFG_PKG_LINUX_CONFIG_STYLE" = "modules" ] ; then |
|
|
|
if [ "$SDECFG_PKG_LINUX_CONFIG_STYLE" != "nomodules" ] ; then |
|
|
|
cp .config{_modules,} |
|
|
|
cp .config{_modules,} |
|
|
|
else |
|
|
|
else |
|
|
|
cp .config{_nomods,} |
|
|
|
cp .config{_nomods,} |
|
|
|