src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / mainboard / intel / harcuvar / spd / Makefile.inc
blobaac334a705533b9172bc65e6ad8ab6cd1d77ce83
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ##
5 ## SPDX-License-Identifier: GPL-2.0-only
7 romstage-y += spd.c
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)
19         for f in $+; \
20           do for c in $$(cat $$f | grep -v ^#); \
21             do echo -e -n "\\x$$c"; \
22           done; \
23         done > $@
25 cbfs-files-y += spd.bin
26 spd.bin-file := $(SPD_BIN)
27 spd.bin-position := $(CONFIG_SPD_LOC)
28 spd.bin-type := spd