Commit 1dff8157 authored by Linus Torvalds's avatar Linus Torvalds

Make "oldconfig" look for old defaults first in .config, then

in /etc/kernel-config, and only if that fails in the architecture-
specific defconfig.
parent a5f843dd
...@@ -537,9 +537,12 @@ if [ "$1" != "" ] ; then ...@@ -537,9 +537,12 @@ if [ "$1" != "" ] ; then
CONFIG_IN=$1 CONFIG_IN=$1
fi fi
DEFAULTS=arch/$ARCH/defconfig DEFAULTS=.config
if [ -f .config ]; then if [ ! -f .config ]; then
DEFAULTS=.config DEFAULTS=/etc/kernel-config
if [ ! -f $DEFAULTS ]; then
DEFAULTS=arch/$ARCH/defconfig
fi
fi fi
if [ -f $DEFAULTS ]; then if [ -f $DEFAULTS ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment