diff options
author | Michael Niewöhner <foss@mniewoehner.de> | 2020-08-25 13:55:53 +0200 |
---|---|---|
committer | Michael Niewöhner <c0d3z3r0@review.coreboot.org> | 2020-09-06 14:57:06 +0000 |
commit | e83d30bb5a240757b2e0a712e012c9fe6ab44f95 (patch) | |
tree | 111b98e276b27d1f8b827bc085bcfa46357e7efc /src/mainboard/lenovo/x1_carbon_gen1/spd | |
parent | f0eb1925e4f3f083cd20e42dd35f65696341ce01 (diff) | |
download | coreboot-e83d30bb5a240757b2e0a712e012c9fe6ab44f95.tar.xz |
mb: remove duplicated Make code for spd.bin generation
Drop duplicated code for spd.bin generation that is provided globally
in lib/Makefile.inc.
For all affected boards it has been verified that the output binary
functionally matches the original one. The changed execution order of
Make instructions influenced the cbfs file order. Hence, the rom images
can't be compared directly.
Thus, the output files of the two timeless abuild runs have been compared.
Further, it was verified that the final files in cbfs stay identical, by
comparing the extracted cbfs of each board.
The boards (possibly) needing modification could be found with something
like this (with false positives, though):
find src/mainboard -name Makefile.inc | \
xargs egrep 'SPD_BIN|SPD_DEPS' | cut -d: -f1 | sort -u
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Change-Id: Icd3ac0fd6c901228554115c6350d88bb49874587
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44774
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/mainboard/lenovo/x1_carbon_gen1/spd')
-rw-r--r-- | src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc | 21 | ||||
-rw-r--r-- | src/mainboard/lenovo/x1_carbon_gen1/spd/elpida.spd.hex (renamed from src/mainboard/lenovo/x1_carbon_gen1/spd/elpida.hex) | 0 | ||||
-rw-r--r-- | src/mainboard/lenovo/x1_carbon_gen1/spd/hynix.spd.hex (renamed from src/mainboard/lenovo/x1_carbon_gen1/spd/hynix.hex) | 0 | ||||
-rw-r--r-- | src/mainboard/lenovo/x1_carbon_gen1/spd/samsung.spd.hex (renamed from src/mainboard/lenovo/x1_carbon_gen1/spd/samsung.hex) | 0 |
4 files changed, 3 insertions, 18 deletions
diff --git a/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc b/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc index e047c6ee58..d3244d1a9c 100644 --- a/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc +++ b/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc @@ -1,20 +1,5 @@ ## SPDX-License-Identifier: GPL-2.0-only -SPD_BIN = $(obj)/spd.bin - -SPD_SOURCES = elpida.hex # 0b0000 Single Channel 2GB -SPD_SOURCES += hynix.hex # 0b0001 2GiB -SPD_SOURCES += samsung.hex # 0b0010 4GiB -SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f)) - -# Include spd ROM data -$(SPD_BIN): $(SPD_DEPS) - for f in $+; \ - do for c in $$(cat $$f | grep -v ^#); \ - do printf $$(printf '\\%o' 0x$$c); \ - done; \ - done > $@ - -cbfs-files-y += spd.bin -spd.bin-file := $(SPD_BIN) -spd.bin-type := spd +SPD_SOURCES = elpida # 0b0000 Single Channel 2GB +SPD_SOURCES += hynix # 0b0001 2GiB +SPD_SOURCES += samsung # 0b0010 4GiB diff --git a/src/mainboard/lenovo/x1_carbon_gen1/spd/elpida.hex b/src/mainboard/lenovo/x1_carbon_gen1/spd/elpida.spd.hex index 816254d379..816254d379 100644 --- a/src/mainboard/lenovo/x1_carbon_gen1/spd/elpida.hex +++ b/src/mainboard/lenovo/x1_carbon_gen1/spd/elpida.spd.hex diff --git a/src/mainboard/lenovo/x1_carbon_gen1/spd/hynix.hex b/src/mainboard/lenovo/x1_carbon_gen1/spd/hynix.spd.hex index 111745ce2d..111745ce2d 100644 --- a/src/mainboard/lenovo/x1_carbon_gen1/spd/hynix.hex +++ b/src/mainboard/lenovo/x1_carbon_gen1/spd/hynix.spd.hex diff --git a/src/mainboard/lenovo/x1_carbon_gen1/spd/samsung.hex b/src/mainboard/lenovo/x1_carbon_gen1/spd/samsung.spd.hex index 24186362b8..24186362b8 100644 --- a/src/mainboard/lenovo/x1_carbon_gen1/spd/samsung.hex +++ b/src/mainboard/lenovo/x1_carbon_gen1/spd/samsung.spd.hex |