summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-06-04 13:16:28 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-10-30 08:26:54 +0000
commit5e5fd41fcf06175ebdec40a1529c3d09e854ada1 (patch)
tree89e0b5a2c321ea87bbd5a0e2c289f23ee52b6cc9 /Makefile.inc
parent4d77bf2a23d23301f889a5ffa4616d460712ab85 (diff)
downloadcoreboot-5e5fd41fcf06175ebdec40a1529c3d09e854ada1.tar.xz
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>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index f7f3708a15..04c83d84d5 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -107,6 +107,10 @@ subdirs-y += util/checklist util/testing
# Add source classes and their build options
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
$(foreach supported_arch,$(ARCH_SUPPORTED), \
$(eval $(call define_class,rmodules_$(supported_arch),$(supported_arch))))