summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Vyssotski <Nikolai.Vyssotski@amd.com>2022-09-24 08:47:58 -0500
committerFelix Held <felix-coreboot@felixheld.de>2024-06-21 20:37:27 +0000
commit854dd9a5d1153fbb7ace2a7619bb98d024e284ce (patch)
tree5d5dfeb8f507d6c49eb4ea1338ac7668d6b079b8
parent5fccf367b8a70f841c1e8e2b806d5e7ae3f17092 (diff)
Makefile.mk: Put site-local path first
"site-local" Makfile(s) may need to override some of the macros/paths used elsewhere in src/* Makefiles. If we include it last src/* Makefile.mk will have already been processed. MAINBOARD_BLOBS_DIR is an example where the path needs to be overwritten in site-local requiring it to be included first before src/mainboard/* Makefile.mk is processed. Change-Id: I8ea865cd73aba5092a628b0422e5c4121b32fb4d Signed-off-by: Nikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68799 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
-rw-r--r--Makefile.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.mk b/Makefile.mk
index 3cfd97c53e..301a3bc835 100644
--- a/Makefile.mk
+++ b/Makefile.mk
@@ -96,6 +96,9 @@ PHONY+= clean-abuild coreboot check-style build_complete
#######################################################################
# root source directories of coreboot
+# site-local Makefile.mk must go first to override default locations (for binaries etc.)
+subdirs-y := site-local
+
subdirs-y := src/lib src/commonlib/ src/console src/device src/acpi src/superio/common
subdirs-$(CONFIG_EC_ACPI) += src/ec/intel
subdirs-y += src/ec/acpi $(wildcard src/ec/*/*) $(wildcard src/southbridge/*/*)
@@ -112,8 +115,6 @@ subdirs-y += src/mainboard/$(MAINBOARDDIR)
subdirs-y += src/security
subdirs-y += payloads payloads/external
subdirs-$(CONFIG_SBOM) += src/sbom
-
-subdirs-y += site-local
subdirs-y += util/checklist util/testing
#######################################################################