src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / mainboard / google / rambi / variants / banjo / Makefile.inc
blob44a01e9cdd29a10e923bc4a5665cc96a2d3c2027
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ##
5 ## SPDX-License-Identifier: GPL-2.0-only
7 SPD_BIN = $(obj)/spd.bin
9 # Order matters for SPD sources. The following indices
10 # define the SPD data to use.
11 # 0b000 - 2GiB total - 1 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz
12 # 0b001 - 4GiB total - 2 x 2GiB Hynix  H5TC4G63AFR-PBA 1600MHz
13 # 0b010 - 2GiB total - 1 x 2GiB Hynix  H5TC4G63AFR-PBA 1600MHz
14 # 0b011 - 4GiB total - 2 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz
15 # 0b100 - 2GiB total - 1 x 2GiB Hynix  H5TC4G63CFR-PBA 1600MHz
16 # 0b101 - 4GiB total - 2 x 2GiB Hynix  H5TC4G63CFR-PBA 1600MHz
17 SPD_SOURCES = samsung_2GiB_dimm_K4B4G1646Q-HYK0
18 SPD_SOURCES += hynix_2GiB_dimm_H5TC4G63AFR-PBA
19 SPD_SOURCES += hynix_2GiB_dimm_H5TC4G63AFR-PBA
20 SPD_SOURCES += samsung_2GiB_dimm_K4B4G1646Q-HYK0
21 SPD_SOURCES += Hynix_HMT425S6CFR6A_H5TC4G63CFR
22 SPD_SOURCES += Hynix_HMT425S6CFR6A_H5TC4G63CFR
24 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
26 # Include spd ROM data
27 $(SPD_BIN): $(SPD_DEPS)
28         for f in $+; \
29           do for c in $$(cat $$f | grep -v ^#); \
30             do printf $$(printf '\%o' 0x$$c); \
31           done; \
32         done > $@
34 cbfs-files-y += spd.bin
35 spd.bin-file := $(SPD_BIN)
36 spd.bin-type := spd