src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / mainboard / google / glados / variants / glados / Makefile.inc
blob5f84742acfcc6694ad07500d56ed31eb93fd1c34
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 = empty                             # 0b0000
15 SPD_SOURCES += samsung_dimm_K4E6E304EE-EGCF     # 0b0001
16 SPD_SOURCES += hynix_dimm_H9CCNNN8JTBLAR        # 0b0010
17 SPD_SOURCES += hynix_dimm_H9CCNNNBLTALAR        # 0b0011
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