summaryrefslogtreecommitdiffstats
path: root/kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'kconfig')
-rwxr-xr-xkconfig7
1 files changed, 6 insertions, 1 deletions
diff --git a/kconfig b/kconfig
index 9a098b8..4f1ce82 100755
--- a/kconfig
+++ b/kconfig
@@ -9,7 +9,12 @@ base=$(dirname $0)
for config in $configs; do
if test "$config" = "init"; then
echo "# init"
- cp -v "/boot/config-$(uname -r)" .config
+ if test -f /proc/config.gz; then
+ echo "from /proc/config.gz"
+ zcat /proc/config.gz > .config
+ else
+ cp -v "/boot/config-$(uname -r)" .config || exit 1
+ fi
echo "# oldconfig"
yes "" | make oldconfig >/dev/null
echo "# localmodconfig"