aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-04-06 23:09:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-04-06 23:09:06 +0000
commit36e9ecc72aecce3f6e0f1fff492311b8fb0edeb8 (patch)
tree290cfe7973d6540ae0fdaf68964a35958cceeac9
parent7fd37b30fc7702b2a5ec7057d4c2048c57072829 (diff)
downloadupstream-36e9ecc72aecce3f6e0f1fff492311b8fb0edeb8.tar.gz
upstream-36e9ecc72aecce3f6e0f1fff492311b8fb0edeb8.tar.bz2
upstream-36e9ecc72aecce3f6e0f1fff492311b8fb0edeb8.zip
use ~/.openwrt/defconfig as default config if it exists
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6876 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 414a152789..43ed005b8a 100644
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,10 @@ tmp/.config-%.in: tmp/.%info
.config: ./scripts/config/conf tmp/.config-target.in tmp/.config-package.in
- @[ -f .config ] || $(NO_TRACE_MAKE) menuconfig
+ @[ -f .config ] || { \
+ [ -e $(HOME)/.openwrt/defconfig ] && cp $(HOME)/.openwrt/defconfig .config; \
+ $(NO_TRACE_MAKE) menuconfig; \
+ }
@$< -D .config Config.in &> /dev/null
scripts/config/mconf:
@@ -87,6 +90,8 @@ oldconfig: scripts/config/conf tmp/.config-target.in tmp/.config-package.in FORC
$< -o Config.in
menuconfig: scripts/config/mconf tmp/.config-target.in tmp/.config-package.in FORCE
+ @[ -f .config ] || \
+ [ -e $(HOME)/.openwrt/defconfig ] && cp $(HOME)/.openwrt/defconfig .config
$< Config.in
kernel_menuconfig: .config FORCE