diff --git a/Makefile.unix b/Makefile.unix index 4df0773eb9c..52fe9cdc5c8 100644 --- a/Makefile.unix +++ b/Makefile.unix @@ -521,6 +521,7 @@ savedefconfig: do_savedefconfig $(Q) APPSDIR=${CONFIG_APPS_DIR} kconfig-conf --savedefconfig defconfig Kconfig $(Q) sed -i -e "/CONFIG_APPS_DIR=/d" defconfig $(Q) grep "CONFIG_ARCH=" .config >> defconfig + $(Q) grep "^CONFIG_ARCH_CHIP_" .config >> defconfig $(Q) grep "CONFIG_ARCH_BOARD=" .config >> defconfig # export diff --git a/Makefile.win b/Makefile.win index 06a0d9aa277..5a096b0dcce 100644 --- a/Makefile.win +++ b/Makefile.win @@ -507,6 +507,7 @@ savedefconfig: do_savedefconfig $(Q) set APPSDIR=$(patsubst "%",%,${CONFIG_APPS_DIR})& kconfig-conf --savedefconfig defconfig Kconfig $(Q) sed -i -e "/CONFIG_APPS_DIR=/d" defconfig $(Q) grep "CONFIG_ARCH=" .config >> defconfig + $(Q) grep "^CONFIG_ARCH_CHIP_" .config >> defconfig $(Q) grep "CONFIG_ARCH_BOARD=" .config >> defconfig # export