summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorJuan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>2015-08-14 11:21:36 -0500
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:15:26 -0500
commitea0c810bc56ee802a1008b7cddf8a36cd6bfcded (patch)
tree49430c840e000c028a1b718d89596fe893334ed3 /Makefile.inc
parent33b13dc70d1e6d6c45997c0ab2079b194e2c2a60 (diff)
kbuild: environmental vars rebuild
This commit allows kbuild to rebuild if the following environmental variables change: KERNEL_TYPE, PLATFORM_CONFIG, ARCH. Change-Id: Ibab0392b6eb362a5423bce149c013235b75d3140 Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@linux.intel.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index b9cd8b622..88a265333 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -79,7 +79,7 @@ qemu: $(CONFIG_DEPS) $(O)/.dir
CFLAGS=$(CFLAGS) qemu
-$(O)/.config: $(O)/.dir
+$(O)/.config: $(O)/.dir $(O)/.$(ARCH)-$(PLATFORM_CONFIG)-$(KERNEL_TYPE).env
$(Q)cp $(KBUILD_DEFCONFIG_PATH) $(O)/.config
$(O)/.initconfig: mergeconfig
@@ -105,6 +105,10 @@ $(CONF_FILE):;
help:
$(Q)$(MAKE) -C $(ZEPHYR_BASE) help
+$(O)/.$(ARCH)-$(PLATFORM_CONFIG)-$(KERNEL_TYPE).env: FORCE
+ @rm -rf $(O)/.*.env
+ $(Q)touch $(O)/.$(ARCH)-$(PLATFORM_CONFIG)-$(KERNEL_TYPE).env
+
PHONY += FORCE clean mrproper
FORCE: