Skip to content

Commit df48f46

Browse files
committed
zephyr/Makefile: Add workaround (fix?) for broken builds for DTS targets.
1 parent 4b75351 commit df48f46

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

zephyr/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ CFLAGS = $(KBUILD_CFLAGS) $(NOSTDINC_FLAGS) $(ZEPHYRINCLUDE) \
5656
include ../py/mkrules.mk
5757

5858
$(Z_EXPORTS): $(CONF_FILE)
59-
$(MAKE) -f Makefile.zephyr BOARD=$(BOARD) CONF_FILE=$(CONF_FILE) initconfig outputexports
59+
# We use single target here ($(Z_EXPORTS)) for simplicity, but actually
60+
# number of things get generated here: 'initconfig' generates C header for
61+
# Kconfig configuration, 'outputexports' generates make environment with CC,
62+
# etc., and 'lib' generates other headers which may be included by zephyr.h,
63+
# e.g. DTS-related.
64+
$(MAKE) -f Makefile.zephyr BOARD=$(BOARD) CONF_FILE=$(CONF_FILE) initconfig outputexports lib
6065

6166
GENERIC_TARGETS = all zephyr run qemu qemugdb flash debug
6267
KCONFIG_TARGETS = \

0 commit comments

Comments
 (0)