From b7ba3ba1598d6af9378fd23e556e06885f1b032d Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 13 Jan 2023 15:56:27 -0500 Subject: [PATCH] Prevent make defconfig from overwriting devices --- openwrtbuilder | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openwrtbuilder b/openwrtbuilder index 317147d..fd2230f 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -576,10 +576,11 @@ fromSource() { # Only compile our target echo "CONFIG_TARGET_MULTI_PROFILE=n" >> .config + make defconfig # normalize .config and remove dupes + # make defconfig will add these back sed -i '/CONFIG_TARGET_DEVICE_/d' .config echo "CONFIG_TARGET_DEVICE_${P_ARR[target]//\//_}_DEVICE_${P_ARR[profile]}=y" >> .config - make defconfig # normalize .config and remove dupes make targetclean make download && make -j"$(nproc)" world