blob: 0cbc92d42879d5414e8242212de92050a3809445 [file] [log] [blame]
Dave Frodin892d1292013-12-11 12:38:40 -07001#
2# This file is part of the coreboot project.
3#
4# Copyright (C) 2011 Advanced Micro Devices, Inc.
5# Copyright (C) 2013 Sage Electronic Engineering, LLC
6#
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#
Dave Frodin892d1292013-12-11 12:38:40 -070016
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
Dave Frodin892d1292013-12-11 12:38:40 -070025romstage-y += BiosCallOuts.c
26romstage-y += PlatformGnbPcie.c
Dave Frodin892d1292013-12-11 12:38:40 -070027
28ramstage-y += buildOpts.c
Dave Frodin892d1292013-12-11 12:38:40 -070029ramstage-y += BiosCallOuts.c
30ramstage-y += PlatformGnbPcie.c
31
32## DIMM SPD for on-board memory
33SPD_BIN = $(obj)/spd.bin
34
35# Order of names in SPD_SOURCES is important!
36SPD_SOURCES = Elpida_EDJ2116DEBG
37
38SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex)
39
40# Include spd rom data
41$(SPD_BIN): $(SPD_DEPS)
42 for f in $+; \
43 do for c in $$(cat $$f | grep -v ^#); \
Aaron Durbin3e91cff2015-04-01 08:49:41 -050044 do printf $$(printf '\%o' 0x$$c); \
Dave Frodin892d1292013-12-11 12:38:40 -070045 done; \
46 done > $@
47
48cbfs-files-y += spd.bin
49spd.bin-file := $(SPD_BIN)
Martin Roth72a8e5e2015-03-24 16:02:27 -060050spd.bin-type := spd