diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2019-10-29 18:36:46 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-10-30 21:35:36 +0000 |
commit | 6c2324a8f390ae05f67584e598ffd4e48e37b62f (patch) | |
tree | a9572b23971af2f6a8af7153e04a27b11467323d /payloads/libpayload | |
parent | 10af2af81fbf102d3f68fbf4f47364978f59e8ab (diff) |
libpayload: handle special-class-handlers before sources
This matches the coreboot makefile behavior.
Change-Id: Iaada965de904cb03edd068fed8827643496292cb
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36439
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r-- | payloads/libpayload/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/Makefile b/payloads/libpayload/Makefile index 1a0acf1781..b1ab302794 100644 --- a/payloads/libpayload/Makefile +++ b/payloads/libpayload/Makefile @@ -221,12 +221,12 @@ includemakefiles= \ $(foreach class,classes subdirs $(classes) $(special-classes), $(eval $(class)-y:=)) \ $(eval -include $(1)) \ $(foreach class,$(classes-y), $(call add-class,$(class))) \ + $(foreach special,$(special-classes), \ + $(foreach item,$($(special)-y), $(call $(special)-handler,$(dir $(1)),$(item)))) \ $(foreach class,$(classes), \ $(eval $(class)-srcs+= \ $$(subst $(top)/,, \ $$(abspath $$(addprefix $(dir $(1)),$$($(class)-y)))))) \ - $(foreach special,$(special-classes), \ - $(foreach item,$($(special)-y), $(call $(special)-handler,$(dir $(1)),$(item)))) \ $(eval subdirs+=$$(subst $(CURDIR)/,,$$(abspath $$(addprefix $(dir $(1)),$$(subdirs-y))))) # For each path in $(subdirs) call includemakefiles |