summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2020-05-15 15:37:07 -0700
committerDuncan Laurie <dlaurie@chromium.org>2020-05-22 01:50:11 +0000
commit6107064d66359213dd20736b2321990de29c39ff (patch)
tree2be54f07c5ef2cd1badc366591862b9004391636 /Makefile.inc
parentda8f5077ffa495d632536f561ce7bbeb372f6141 (diff)
make: Add a target and dependency to parse the devicetree with sconfig
This change adds a target to the top level Makefile that allows building sconfig and generating static.c/static.h without building the rest of coreboot. It also adds $(DEVICETREE_STATIC_C) to the c-deps for each stage so the files are generated before the build runs. Signed-off-by: Duncan Laurie <dlaurie@google.com> Change-Id: I4320288422230d8913dfa7cc7b7512775a1a797b Reviewed-on: https://review.coreboot.org/c/coreboot/+/41439 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 7debe53ebd..210e9cf6c6 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -596,6 +596,17 @@ bootblock-y+=$(DEVICETREE_STATIC_C)
postcar-y+=$(DEVICETREE_STATIC_C)
smm-y+=$(DEVICETREE_STATIC_C)
+# Ensure static.c and static.h are created before any objects are compiled
+ramstage-c-deps+=$(DEVICETREE_STATIC_C)
+romstage-c-deps+=$(DEVICETREE_STATIC_C)
+verstage-c-deps+=$(DEVICETREE_STATIC_C)
+bootblock-c-deps+=$(DEVICETREE_STATIC_C)
+postcar-c-deps+=$(DEVICETREE_STATIC_C)
+smm-c-deps+=$(DEVICETREE_STATIC_C)
+
+.PHONY: devicetree
+devicetree: $(DEVICETREE_STATIC_C)
+
#######################################################################
# Clean up rules
clean-abuild: