From c78f5f3cd679b43a3c857e68333459d12995d5db Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sat, 8 Jul 2017 06:19:29 -0600 Subject: [PATCH] Makefile.unix: Add savedefconfig target. --- Makefile.unix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile.unix b/Makefile.unix index cca3c1cd6c..4df0773eb9 100644 --- a/Makefile.unix +++ b/Makefile.unix @@ -515,6 +515,14 @@ do_gconfig: dirlinks apps_preconfig gconfig: do_gconfig clean_context +do_savedefconfig: dirlinks apps_preconfig + +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_BOARD=" .config >> defconfig + # export # # The export target will package the NuttX libraries and header files into