summaryrefslogtreecommitdiff
path: root/src/mainboard/google/zork/spd/Makefile.inc
diff options
context:
space:
mode:
authorReka Norman <rekanorman@google.com>2021-09-17 20:25:37 +1000
committerFurquan Shaikh <furquan@google.com>2021-09-23 06:51:50 +0000
commitafedc210ffdb4fc54f9276c0512c61202bd7bdcb (patch)
tree902b31a0339e0ea70892aac475493e326cb0a439 /src/mainboard/google/zork/spd/Makefile.inc
parentffa61b0f60d8e988a72ea8d2777b9efa6c35d304 (diff)
mb/google/zork: Migrate zork to use SPD files under spd/
SPD files are being moved from the soc and mainboard directories to a centralised spd/ directory. This change migrates all zork variants to use this new location. The contents of the new SPDs are identical, only their file paths have changed. The variant Makefile.inc and dram_id.generated.txt files were generated using the part_id_gen tool. E.g. for dalboz: util/spd_tools/bin/part_id_gen \ PCO \ ddr4 \ src/mainboard/google/zork/variants/dalboz/spd \ src/mainboard/google/zork/variants/dalboz/spd/mem_parts_used.txt BUG=b:191776301 TEST=Check that each variant's coreboot.rom is the same with and without this change. Built using: abuild -p none -t google/zork -a -x --timeless Signed-off-by: Reka Norman <rekanorman@google.com> Change-Id: I305a24f9345bab28ff35e317b6e7fd7efba22413 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57772 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/zork/spd/Makefile.inc')
-rw-r--r--src/mainboard/google/zork/spd/Makefile.inc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mainboard/google/zork/spd/Makefile.inc b/src/mainboard/google/zork/spd/Makefile.inc
index d6ae475b12..4ae310ae84 100644
--- a/src/mainboard/google/zork/spd/Makefile.inc
+++ b/src/mainboard/google/zork/spd/Makefile.inc
@@ -1,14 +1,13 @@
# SPDX-License-Identifier: GPL-2.0-or-later
-# This directory
-SPD_SOURCES_DIR := src/mainboard/$(MAINBOARDDIR)/spd
+SPD_SOURCES_DIR=$(dir $(word 1, $(SPD_SOURCES)))
-APCB_SOURCES=$(foreach f, $(basename $(SPD_SOURCES)), $(obj)/APCB_$(f).gen)
+APCB_SOURCES=$(foreach f, $(basename $(notdir $(SPD_SOURCES))), $(obj)/APCB_$(f).gen)
# APCB binary with magic numbers to be replaced by apcb_edit tool
APCB_MAGIC_BLOB:=$(FIRMWARE_LOCATION)/APCB_magic.bin
-$(obj)/APCB_%.gen: $(SPD_SOURCES_DIR)/%.hex \
+$(obj)/APCB_%.gen: $(SPD_SOURCES_DIR)%.hex \
$(APCB_EDIT_TOOL) \
$(APCB_MAGIC_BLOB)
$(APCB_EDIT_TOOL) \