src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / mainboard / google / eve / spd / Makefile.inc
blobd6816524451ac2254e1a612ec31bfacc528fc14c
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 SPD_SOURCES = empty                             # 0b0000
12 SPD_SOURCES += samsung_dimm_K4E8E324EB          # 0b0001
13 SPD_SOURCES += hynix_dimm_H9CCNNN8GTALAR        # 0b0010
14 SPD_SOURCES += samsung_dimm_K4E6E304EB          # 0b0011
15 SPD_SOURCES += hynix_dimm_H9CCNNNBJTALAR        # 0b0100
16 SPD_SOURCES += samsung_dimm_K4EBE304EB          # 0b0101
17 SPD_SOURCES += hynix_dimm_H9CCNNNCLTMLAR        # 0b0110
19 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
21 # Include spd ROM data
22 $(SPD_BIN): $(SPD_DEPS)
23         for f in $+; \
24           do for c in $$(cat $$f | grep -v ^#); \
25             do printf $$(printf '\\%o' 0x$$c); \
26           done; \
27         done > $@
29 cbfs-files-y += spd.bin
30 spd.bin-file := $(SPD_BIN)
31 spd.bin-type := spd