build: re-add initconfig to generate .config
run make initconfig to only create the .config in outdir. The .config will be the result of the defconfig merged with the local application config define in CONF_FILE. Change-Id: If2a308ac3805d32cea8dd7be7a14772f22443600 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
267db291e6
commit
f5e3be2af7
1 changed files with 5 additions and 1 deletions
|
@ -53,6 +53,8 @@ endif
|
|||
zephyrmake = @$(MAKE) -C $(ZEPHYR_BASE) O=$(1) CFLAGS="$(CFLAGS)" \
|
||||
PROJECT=$(PROJECT_BASE) SOURCE_DIR=$(SOURCE_DIR) $(2)
|
||||
|
||||
|
||||
|
||||
DOTCONFIG = $(O)/.config
|
||||
|
||||
all: $(DOTCONFIG)
|
||||
|
@ -61,6 +63,8 @@ all: $(DOTCONFIG)
|
|||
qemu: $(DOTCONFIG)
|
||||
$(Q)$(call zephyrmake,$(O),$@)
|
||||
|
||||
initconfig: $(DOTCONFIG)
|
||||
|
||||
# Catch all
|
||||
%:
|
||||
$(Q)$(call zephyrmake,$(O),$@)
|
||||
|
@ -74,7 +78,7 @@ $(DOTCONFIG): $(CONF_FILE)
|
|||
pristine:
|
||||
$(Q)rm -rf $(O)
|
||||
|
||||
PHONY += FORCE
|
||||
PHONY += FORCE initconfig
|
||||
FORCE:
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue