X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=include%2Ftoplevel.mk;h=e13d66781aaa655f700f434b187fe2a56584aabd;hb=8b41afa584e513ec64156fc15058a0f6888d6b56;hp=606e3e5844b45635645958e6f6090f844f078518;hpb=f2e997ac3836cfcbb68b708adf3db90524425f87;p=openwrt%2Fstaging%2Fnbd.git diff --git a/include/toplevel.mk b/include/toplevel.mk index 606e3e5844..e13d66781a 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -45,7 +45,7 @@ prepare-tmpinfo: FORCE touch $(TOPDIR)/tmp/.build .config: ./scripts/config/conf prepare-tmpinfo - @+if [ \! -f .config ]; then \ + @+if [ -f .config ] || ! grep CONFIG_HAVE_DOT_CONFIG .config >/dev/null; then \ [ -e $(HOME)/.openwrt/defconfig ] && cp $(HOME)/.openwrt/defconfig .config; \ $(NO_TRACE_MAKE) menuconfig $(PREP_MK); \ fi