2 ## This file is part of the coreboot project.
5 ## SPDX-License-Identifier: GPL-2.0-only
7 romstage-y += romstage.c
8 romstage-y += spd_util.c
11 ramstage-y += ramstage.c
13 SPD_BIN = $(obj)/spd.bin
15 SPD_SOURCES = samsung_dimm_K4E8E304EE-EGCE
16 SPD_SOURCES += samsung_dimm_K4E8E324EB-EGCF
17 SPD_SOURCES += micron_2GiB_dimm_EDF8132A3MA-GD-F-R
18 SPD_SOURCES += micron_2GiB_dimm_MT52L256M32D1PF-107WT
20 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
22 # Include spd ROM data
23 $(SPD_BIN): $(SPD_DEPS)
25 do for c in $$(cat $$f | grep -v ^#); \
26 do printf $$(printf '\%o' 0x$$c); \
30 cbfs-files-y += spd.bin
31 spd.bin-file := $(SPD_BIN)