src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / mainboard / google / auron / variants / auron_paine / spd / Makefile.inc
blobc797c58840d06e6e579851becfdc975675315d2e
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 # { GPIO47, GPIO9, GPIO13 }
12 SPD_SOURCES  = Micron_4KTF25664HZ                       # 0b0000
13 SPD_SOURCES += Hynix_HMT425S6AFR6A                      # 0b0001
14 SPD_SOURCES += Hynix_HMT425S6CFR6A_H5TC4G63CFR          # 0b0010
15 SPD_SOURCES += Micron_4KTF25664HZ                       # 0b0011
16 SPD_SOURCES += Micron_4KTF25664HZ                       # 0b0100
17 SPD_SOURCES += Hynix_HMT425S6AFR6A                      # 0b0101
18 SPD_SOURCES += Hynix_HMT425S6CFR6A_H5TC4G63CFR          # 0b0110
19 SPD_SOURCES += empty                                    # 0b0111
20 SPD_SOURCES += empty                                    # 0b1000
21 SPD_SOURCES += empty                                    # 0b1001
22 SPD_SOURCES += empty                                    # 0b1010
23 SPD_SOURCES += empty                                    # 0b1011
24 SPD_SOURCES += empty                                    # 0b1100
25 SPD_SOURCES += empty                                    # 0b1101
26 SPD_SOURCES += empty                                    # 0b1110
27 SPD_SOURCES += empty                                    # 0b1111
29 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/spd/$(f).spd.hex)
31 # Include spd ROM data
32 $(SPD_BIN): $(SPD_DEPS)
33         for f in $+; \
34           do for c in $$(cat $$f | grep -v ^#); \
35             do printf $$(printf '\\%o' 0x$$c); \
36           done; \
37         done > $@
39 cbfs-files-y += spd.bin
40 spd.bin-file := $(SPD_BIN)
41 spd.bin-type := spd