summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2015-10-14 17:42:59 -0400
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:24:29 -0500
commitfa2e18b294534020619c01fabc30bb048aed3360 (patch)
tree02cd41effbcd167f043a4ff0cf422350619232dc /Makefile.inc
parenta5e1b78141b644b62a933bee77213bbe2f7b79ca (diff)
kbuild: make menuconfig work with local configuration
Calling 'make menuconfig' from an application will prepare the configuration defined in the application (Makefile) and will launch menuconfig with the correct configuration rather than the default for the architecture. Change-Id: I6c611ddaa23b67632c507291294a73b6c4283cea Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index c5ec50428..2adb4e115 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -62,6 +62,9 @@ qemu: $(DOTCONFIG)
initconfig: $(DOTCONFIG)
+menuconfig: initconfig
+ $(Q)$(call zephyrmake,$(O),$@)
+
# Catch all
%:
$(Q)$(call zephyrmake,$(O),$@)