diff options
author | Anas Nashif <anas.nashif@intel.com> | 2015-08-28 15:42:03 -0400 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2016-02-05 20:15:33 -0500 |
commit | fbed1e4bcdd290e057e6cbf88ad413df1a67d129 (patch) | |
tree | 2d9114c81e251044b8bd7c07f7bc52b7bfb0a9a3 /Makefile.inc | |
parent | 3a6ac16eae87fab1973156d8bdff82f1f8c4065d (diff) |
Kbuild: Use DOTCONFIG instead of /.config
Change-Id: Ida72f1321f6b02c5d506e4c9a9a18035e9c13b0d
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile.inc b/Makefile.inc index c461817ef..4e0407297 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -53,14 +53,19 @@ endif zephyrmake = @$(MAKE) -C $(ZEPHYR_BASE) O=$(1) CFLAGS="$(CFLAGS)" \ PROJECT=$(PROJECT_BASE) SOURCE_DIR=$(SOURCE_DIR) $(2) -all: $(O)/.config +DOTCONFIG = $(O)/.config + +all: $(DOTCONFIG) $(Q)$(call zephyrmake,$(O),$@) -qemu: $(O)/.config +qemu: $(DOTCONFIG) $(Q)$(call zephyrmake,$(O),$@) +# Catch all +%: + $(Q)$(call zephyrmake,$(O),$@) -$(O)/.config: $(CONF_FILE) +$(DOTCONFIG): $(CONF_FILE) $(Q)$(CONFIG_SHELL) $(ZEPHYR_BASE)/scripts/kconfig/merge_config.sh \ -q -m -O $(O) $(KBUILD_DEFCONFIG_PATH) $< $(Q)yes "" | $(MAKE) $(S) -C $(ZEPHYR_BASE) O=$(O) \ @@ -72,9 +77,5 @@ pristine: PHONY += FORCE FORCE: -# Catch all -%: - $(Q)$(call zephyrmake,$(O),$@) .PHONY: $(PHONY) -.PRECIOUS: %/.dir |