Răsfoiți Sursa

include/toplevel.mk: fix defconfig when ~/.openwrt/defconfig exists

./scripts/feeds update will reset the .config file if ~/.openwrt/defconfig
exists, thus resetting the target to ar71xx.

Signed-off-by: John Crispin <[email protected]>
John Crispin 9 ani în urmă
părinte
comite
5b72807416
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      include/toplevel.mk

+ 1 - 1
include/toplevel.mk

@@ -110,7 +110,7 @@ config-clean: FORCE
 
 defconfig: scripts/config/conf prepare-tmpinfo FORCE
 	touch .config
-	@if [ -e $(HOME)/.openwrt/defconfig ]; then cp $(HOME)/.openwrt/defconfig .config; fi
+	@if [  -s .config -a -e $(HOME)/.openwrt/defconfig ]; then cp $(HOME)/.openwrt/defconfig .config; fi
 	$< --defconfig=.config Config.in
 
 confdefault-y=allyes