2 ## This file is part of the coreboot project.
5 ## SPDX-License-Identifier: GPL-2.0-only
9 SPD_BIN = $(obj)/spd.bin
11 # Order matters for SPD sources. The following indices
12 # define the SPD data to use.
13 SPD_SOURCES = micron_4GiB_dimm_MTA9ASF51272PZ-2G1A2
15 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
17 # Include spd rom data
18 $(SPD_BIN): $(SPD_DEPS)
20 do for c in $$(cat $$f | grep -v ^#); \
21 do echo -e -n "\\x$$c"; \
25 cbfs-files-y += spd.bin
26 spd.bin-file := $(SPD_BIN)
27 spd.bin-position := $(CONFIG_SPD_LOC)