2 ## This file is part of the coreboot project.
5 ## SPDX-License-Identifier: GPL-2.0-only
7 romstage-y += variant.c
8 ramstage-y += variant.c
11 SPD_BIN = $(obj)/spd.bin
13 # SPD data by index. No method for board identification yet
14 SPD_SOURCES = empty # 0b0000
15 SPD_SOURCES += samsung_dimm_K4E6E304EE-EGCF # 0b0001
16 SPD_SOURCES += hynix_dimm_H9CCNNN8JTBLAR # 0b0010
17 SPD_SOURCES += hynix_dimm_H9CCNNNBLTALAR # 0b0011
19 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
21 # Include spd ROM data
22 $(SPD_BIN): $(SPD_DEPS)
24 do for c in $$(cat $$f | grep -v ^#); \
25 do printf $$(printf '\%o' 0x$$c); \
29 cbfs-files-y += spd.bin
30 spd.bin-file := $(SPD_BIN)