summaryrefslogtreecommitdiffstats
path: root/src/mainboard
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2021-07-02 11:10:35 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-07-20 08:25:56 +0000
commit0a44e8f8a1b931424965ba6ac2790edc9cec97a0 (patch)
tree27adff5dd567f40acd0960e6e471a2cd56ac6fff /src/mainboard
parente0758cb4f2c9a49cdcc67e34018ceb85b967280e (diff)
downloadcoreboot-0a44e8f8a1b931424965ba6ac2790edc9cec97a0.tar.gz
coreboot-0a44e8f8a1b931424965ba6ac2790edc9cec97a0.tar.bz2
coreboot-0a44e8f8a1b931424965ba6ac2790edc9cec97a0.zip
mb/siemens/mc_ehl: Move SPD data to variant directory
Since the variants can have different memory move the SPD related content to the variant directory. Change-Id: I38aa5e7514437bfcc61c38d64f0ba6f19350810d Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56036 Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/siemens/mc_ehl/spd/Makefile.inc3
-rw-r--r--src/mainboard/siemens/mc_ehl/variants/mc_ehl1/Makefile.inc4
-rw-r--r--src/mainboard/siemens/mc_ehl/variants/mc_ehl1/spd/empty.spd.hex (renamed from src/mainboard/siemens/mc_ehl/spd/empty.spd.hex)0
-rw-r--r--src/mainboard/siemens/mc_ehl/variants/mc_ehl1/spd/mc_ehl1.spd.hex (renamed from src/mainboard/siemens/mc_ehl/spd/mc_ehl.spd.hex)0
-rw-r--r--src/mainboard/siemens/mc_ehl/variants/mc_ehl1/spd/spd.h (renamed from src/mainboard/siemens/mc_ehl/spd/spd.h)0
5 files changed, 4 insertions, 3 deletions
diff --git a/src/mainboard/siemens/mc_ehl/spd/Makefile.inc b/src/mainboard/siemens/mc_ehl/spd/Makefile.inc
deleted file mode 100644
index 6d9e9087f4ec..000000000000
--- a/src/mainboard/siemens/mc_ehl/spd/Makefile.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-## SPDX-License-Identifier: GPL-2.0-only
-
-SPD_SOURCES = mc_ehl # 0b000
diff --git a/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/Makefile.inc b/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/Makefile.inc
index 641e8143516c..e01199994080 100644
--- a/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/Makefile.inc
+++ b/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/Makefile.inc
@@ -3,3 +3,7 @@
bootblock-y += gpio.c
romstage-y += memory.c
ramstage-y += gpio.c
+
+SPD_SOURCES = mc_ehl1 # 0b000
+LIB_SPD_DEPS := $(foreach f, $(SPD_SOURCES), \
+ src/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/spd/$(f).spd.hex)
diff --git a/src/mainboard/siemens/mc_ehl/spd/empty.spd.hex b/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/spd/empty.spd.hex
index 67b46cd23961..67b46cd23961 100644
--- a/src/mainboard/siemens/mc_ehl/spd/empty.spd.hex
+++ b/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/spd/empty.spd.hex
diff --git a/src/mainboard/siemens/mc_ehl/spd/mc_ehl.spd.hex b/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/spd/mc_ehl1.spd.hex
index 71e5456542ec..71e5456542ec 100644
--- a/src/mainboard/siemens/mc_ehl/spd/mc_ehl.spd.hex
+++ b/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/spd/mc_ehl1.spd.hex
diff --git a/src/mainboard/siemens/mc_ehl/spd/spd.h b/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/spd/spd.h
index f667e7422ebf..f667e7422ebf 100644
--- a/src/mainboard/siemens/mc_ehl/spd/spd.h
+++ b/src/mainboard/siemens/mc_ehl/variants/mc_ehl1/spd/spd.h