src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / mainboard / google / glados / variants / cave / Makefile.inc
blob87a85cd10bfc011dc5b746b1ee89e94603d09234
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ##
5 ## SPDX-License-Identifier: GPL-2.0-only
7 romstage-y += variant.c
8 ramstage-y += variant.c
9 smm-y += variant.c
11 SPD_BIN = $(obj)/spd.bin
13 # SPD data by index.  No method for board identification yet
14 SPD_SOURCES = micron_4GiB_dimm_MT52L256M32D1PF  # 0b0000
15 SPD_SOURCES += samsung_dimm_K4E8E324EB-EGCF     # 0b0001
16 SPD_SOURCES += micron_8GiB_dimm_MT52L512M32D2PF # 0b0010
17 SPD_SOURCES += samsung_dimm_K4E6E304EB-EGCF     # 0b0011
18 SPD_SOURCES += micron_16GiB_dimm_MT52L1G32D4PG  # 0b0100
19 SPD_SOURCES += hynix_dimm_H9CCNNNCLTMLAR        # 0b0101
21 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
23 # Include spd ROM data
24 $(SPD_BIN): $(SPD_DEPS)
25         for f in $+; \
26           do for c in $$(cat $$f | grep -v ^#); \
27             do printf $$(printf '\%o' 0x$$c); \
28           done; \
29         done > $@
31 cbfs-files-y += spd.bin
32 spd.bin-file := $(SPD_BIN)
33 spd.bin-type := spd