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
CONFIG_IN=$1
fi
DEFAULTS=arch/$ARCH/defconfig
if [ -f .config ]; then
DEFAULTS=.config
DEFAULTS=.config
if [ ! -f .config ]; then
DEFAULTS=/etc/kernel-config
if [ ! -f $DEFAULTS ]; then
DEFAULTS=arch/$ARCH/defconfig
fi
fi
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