src/: Replace GPL boilerplate with SPDX headers
[coreboot.git] / src / mainboard / gizmosphere / gizmo / Makefile.inc
blob5ed4d883add4b97ec79b0986e4779e7a87c894c4
2 # This file is part of the coreboot project.
5 # SPDX-License-Identifier: GPL-2.0-only
7 ifeq ($(CONFIG_AHCI_BIOS),y)
8 stripped_ahcibios_id = $(call strip_quotes,$(CONFIG_AHCI_BIOS_ID))
9 cbfs-files-$(CONFIG_AHCI_BIOS) += pci$(stripped_ahcibios_id).rom
10 pci$(stripped_ahcibios_id).rom-file := $(call strip_quotes,$(CONFIG_AHCI_BIOS_FILE))
11 pci$(stripped_ahcibios_id).rom-type := optionrom
12 endif
14 romstage-y += buildOpts.c
15 romstage-y += BiosCallOuts.c
16 romstage-y += OemCustomize.c
18 ramstage-y += buildOpts.c
19 ramstage-y += BiosCallOuts.c
20 ramstage-y += OemCustomize.c
22 ## DIMM SPD for on-board memory
23 SPD_BIN = $(obj)/spd.bin
25 # Order of names in SPD_SOURCES is important!
26 SPD_SOURCES  = Elpida_EDJ2116DEBG
28 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex)
30 # Include spd ROM data
31 $(SPD_BIN): $(SPD_DEPS)
32         for f in $+; \
33           do for c in $$(cat $$f | grep -v ^#); \
34             do printf $$(printf '\%o' 0x$$c); \
35           done; \
36         done > $@
38 cbfs-files-y += spd.bin
39 spd.bin-file := $(SPD_BIN)
40 spd.bin-type := spd