From 6107064d66359213dd20736b2321990de29c39ff Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Fri, 15 May 2020 15:37:07 -0700 Subject: 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 Change-Id: I4320288422230d8913dfa7cc7b7512775a1a797b Reviewed-on: https://review.coreboot.org/c/coreboot/+/41439 Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) --- Makefile.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile.inc') 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: -- cgit v1.2.3