Makefile.inc: Add a class 'all' to link files in all stage except SMM
Change-Id: I955dd2dc22cb3cfc4fdf1198cfd32f56475f97c9 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33198 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
4d77bf2a23
commit
5e5fd41fcf
4
Makefile
4
Makefile
|
@ -252,13 +252,13 @@ includemakefiles= \
|
||||||
$(foreach class,classes subdirs $(classes) $(special-classes), $(eval $(class)-y:=)) \
|
$(foreach class,classes subdirs $(classes) $(special-classes), $(eval $(class)-y:=)) \
|
||||||
$(eval -include $(1)) \
|
$(eval -include $(1)) \
|
||||||
$(foreach class,$(classes-y), $(call add-class,$(class))) \
|
$(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), \
|
$(foreach class,$(classes), \
|
||||||
$(eval $(class)-srcs+= \
|
$(eval $(class)-srcs+= \
|
||||||
$$(subst $(absobj)/,$(obj)/, \
|
$$(subst $(absobj)/,$(obj)/, \
|
||||||
$$(subst $(top)/,, \
|
$$(subst $(top)/,, \
|
||||||
$$(abspath $$(subst $(dir $(1))/,/,$$(addprefix $(dir $(1)),$$($(class)-y)))))))) \
|
$$(abspath $$(subst $(dir $(1))/,/,$$(addprefix $(dir $(1)),$$($(class)-y)))))))) \
|
||||||
$(foreach special,$(special-classes), \
|
|
||||||
$(foreach item,$($(special)-y), $(call $(special)-handler,$(dir $(1)),$(item)))) \
|
|
||||||
$(eval subdirs+=$$(subst $(CURDIR)/,,$$(wildcard $$(abspath $$(addprefix $(dir $(1)),$$(subdirs-y))))))
|
$(eval subdirs+=$$(subst $(CURDIR)/,,$$(wildcard $$(abspath $$(addprefix $(dir $(1)),$$(subdirs-y))))))
|
||||||
|
|
||||||
# For each path in $(subdirs) call includemakefiles
|
# For each path in $(subdirs) call includemakefiles
|
||||||
|
|
|
@ -107,6 +107,10 @@ subdirs-y += util/checklist util/testing
|
||||||
# Add source classes and their build options
|
# Add source classes and their build options
|
||||||
classes-y := ramstage romstage bootblock decompressor postcar smm smmstub cpu_microcode verstage
|
classes-y := ramstage romstage bootblock decompressor postcar smm smmstub cpu_microcode verstage
|
||||||
|
|
||||||
|
# Add a special 'all' class to add sources to all stages
|
||||||
|
$(call add-special-class,all)
|
||||||
|
all-handler = $(foreach class,bootblock verstage romstage postcar ramstage,$(eval $(class)-y += $(2)))
|
||||||
|
|
||||||
# Add dynamic classes for rmodules
|
# Add dynamic classes for rmodules
|
||||||
$(foreach supported_arch,$(ARCH_SUPPORTED), \
|
$(foreach supported_arch,$(ARCH_SUPPORTED), \
|
||||||
$(eval $(call define_class,rmodules_$(supported_arch),$(supported_arch))))
|
$(eval $(call define_class,rmodules_$(supported_arch),$(supported_arch))))
|
||||||
|
|
Loading…
Reference in New Issue