diff options
Diffstat (limited to 'kconfig')
-rwxr-xr-x | kconfig | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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" |