diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-03-30 15:15:39 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-03-30 15:16:55 +0300 |
commit | df48f4645d603db99c1c9df6f72052866ba032b6 (patch) | |
tree | bebec775e3936ac8092c1fc8a5ebf3ed1a155c58 | |
parent | 4b753515c719ddf098979a55846bf5d976a003f9 (diff) |
zephyr/Makefile: Add workaround (fix?) for broken builds for DTS targets.
-rw-r--r-- | zephyr/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/zephyr/Makefile b/zephyr/Makefile index c6d6eb325..c3781322a 100644 --- a/zephyr/Makefile +++ b/zephyr/Makefile @@ -56,7 +56,12 @@ CFLAGS = $(KBUILD_CFLAGS) $(NOSTDINC_FLAGS) $(ZEPHYRINCLUDE) \ include ../py/mkrules.mk $(Z_EXPORTS): $(CONF_FILE) - $(MAKE) -f Makefile.zephyr BOARD=$(BOARD) CONF_FILE=$(CONF_FILE) initconfig outputexports + # We use single target here ($(Z_EXPORTS)) for simplicity, but actually + # number of things get generated here: 'initconfig' generates C header for + # Kconfig configuration, 'outputexports' generates make environment with CC, + # etc., and 'lib' generates other headers which may be included by zephyr.h, + # e.g. DTS-related. + $(MAKE) -f Makefile.zephyr BOARD=$(BOARD) CONF_FILE=$(CONF_FILE) initconfig outputexports lib GENERIC_TARGETS = all zephyr run qemu qemugdb flash debug KCONFIG_TARGETS = \ |