diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-04-06 23:09:06 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-04-06 23:09:06 +0000 |
commit | c3a9685aa3e03f7705f9584dfd7fb5b82166102a (patch) | |
tree | 6fd77e7868fac84096bd085d1bca8ebab316e653 | |
parent | c993ad73be467282f04a53e112cbd535498f2226 (diff) | |
download | upstream-c3a9685aa3e03f7705f9584dfd7fb5b82166102a.tar.gz upstream-c3a9685aa3e03f7705f9584dfd7fb5b82166102a.tar.bz2 upstream-c3a9685aa3e03f7705f9584dfd7fb5b82166102a.zip |
use ~/.openwrt/defconfig as default config if it exists
SVN-Revision: 6876
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |