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_2GiB_dimm_K4E8E304EE-EGCF
16 SPD_SOURCES += hynix_2GiB_dimm_H9CCNNN8GTMLAR-NUD
17 SPD_SOURCES += micron_2GiB_dimm_MT52L256M32D1PF
18 SPD_SOURCES += samsung_2GiB_dimm_K4E8E324EB-EGCF
19 SPD_SOURCES += micron_2GiB_dimm_EDF8132A3MA-JD-F
21 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
23 # Include spd ROM data
24 $(SPD_BIN): $(SPD_DEPS)
26 do for c in $$(cat $$f | grep -v ^#); \
27 do printf $$(printf '\%o' 0x$$c); \
31 cbfs-files-y += spd.bin
32 spd.bin-file := $(SPD_BIN)