blob: 324e4aa3654fc5c1f5b918f9d7fd6b5d6ebba1b8 [file] [log] [blame]
Kyösti Mälkkif09e6d42015-01-10 12:13:23 +02001#
2# This file is part of the coreboot project.
3#
4# Copyright (C) 2011 Advanced Micro Devices, Inc.
Kyösti Mälkki8c190f32014-11-14 16:20:22 +02005# Copyright (C) 2013 Sage Electronic Engineering, LLC
Kyösti Mälkkif09e6d42015-01-10 12:13:23 +02006#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; version 2 of the License.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
Kyösti Mälkkif09e6d42015-01-10 12:13:23 +020016
17ifeq ($(CONFIG_AHCI_BIOS),y)
18stripped_ahcibios_id = $(call strip_quotes,$(CONFIG_AHCI_BIOS_ID))
19cbfs-files-$(CONFIG_AHCI_BIOS) += pci$(stripped_ahcibios_id).rom
20pci$(stripped_ahcibios_id).rom-file := $(call strip_quotes,$(CONFIG_AHCI_BIOS_FILE))
21pci$(stripped_ahcibios_id).rom-type := optionrom
22endif
23
24romstage-y += buildOpts.c
25romstage-y += BiosCallOuts.c
Kyösti Mälkkia5d72a32016-04-27 08:55:41 +030026romstage-y += OemCustomize.c
Kyösti Mälkki78093562014-11-11 17:22:23 +020027romstage-y += gpio_ftns.c
Kyösti Mälkkif09e6d42015-01-10 12:13:23 +020028
29ramstage-y += buildOpts.c
30ramstage-y += BiosCallOuts.c
Kyösti Mälkkia5d72a32016-04-27 08:55:41 +030031ramstage-y += OemCustomize.c
Kyösti Mälkki78093562014-11-11 17:22:23 +020032ramstage-y += gpio_ftns.c
Kyösti Mälkki8c190f32014-11-14 16:20:22 +020033
34## DIMM SPD for on-board memory
35SPD_BIN = $(obj)/spd.bin
36
37# Order of names in SPD_SOURCES is important!
38SPD_SOURCES = HYNIX-H5TQ2G83CFR HYNIX-H5TQ4G83MFR
39
40SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex)
41
Elyes HAOUAS8ab989e2016-07-30 17:46:17 +020042# Include spd ROM data
Kyösti Mälkki8c190f32014-11-14 16:20:22 +020043$(SPD_BIN): $(SPD_DEPS)
44 for f in $+; \
45 do for c in $$(cat $$f | grep -v ^#); \
Aaron Durbin3e91cff2015-04-01 08:49:41 -050046 do printf $$(printf '\%o' 0x$$c); \
Kyösti Mälkki8c190f32014-11-14 16:20:22 +020047 done; \
48 done > $@
49
50cbfs-files-y += spd.bin
51spd.bin-file := $(SPD_BIN)
Martin Roth72a8e5e2015-03-24 16:02:27 -060052spd.bin-type := spd