use ~/.openwrt/defconfig as default config if it exists

SVN-Revision: 6876
lede-17.01
Felix Fietkau 2007-04-06 23:09:06 +00:00
parent c993ad73be
commit c3a9685aa3
1 changed files with 6 additions and 1 deletions

View File

@ -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