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>
This commit is contained in:
parent
da8f5077ff
commit
6107064d66
11
Makefile.inc
11
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:
|
||||
|
|
Loading…
Reference in New Issue