2 # This file is part of the coreboot project.
5 # SPDX-License-Identifier: GPL-2.0-only
7 bootblock-y += bootblock.c
9 romstage-y += buildOpts.c
10 romstage-y += BiosCallOuts.c
11 romstage-y += OemCustomize.c
13 ramstage-y += buildOpts.c
14 ramstage-y += BiosCallOuts.c
15 ramstage-y += OemCustomize.c
17 ## DIMM SPD for on-board memory
18 SPD_BIN = $(obj)/spd.bin
20 # Order of names in SPD_SOURCES is important!
21 SPD_SOURCES = Micron_MT41J128M16JT
23 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex)
25 # Include spd ROM data
26 $(SPD_BIN): $(SPD_DEPS)
28 do for c in $$(cat $$f | grep -v ^#); \
29 do printf $$(printf '\%o' 0x$$c); \
33 cbfs-files-y += spd.bin
34 spd.bin-file := $(SPD_BIN)