From df48f4645d603db99c1c9df6f72052866ba032b6 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 30 Mar 2017 15:15:39 +0300 Subject: [PATCH] zephyr/Makefile: Add workaround (fix?) for broken builds for DTS targets. --- zephyr/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zephyr/Makefile b/zephyr/Makefile index c6d6eb3253..c3781322a0 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 = \