blob: f952642920e16095b2c0ba866eb4f7217ef832e6 [file] [log] [blame]
Dave Frodinc43bce52014-12-03 08:22:46 -07001#
2# This file is part of the coreboot project.
3#
4# Copyright (C) 2012 Advanced Micro Devices, Inc.
Dave Frodind6aa7cf2014-11-21 14:57:03 -07005# Copyright (C) 2014 Sage Electronic Engineering, LLC
Dave Frodinc43bce52014-12-03 08:22:46 -07006#
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 Frodinc43bce52014-12-03 08:22:46 -070016
17romstage-y += buildOpts.c
18romstage-y += BiosCallOuts.c
19romstage-y += PlatformGnbPcie.c
20
21ramstage-y += buildOpts.c
22ramstage-y += BiosCallOuts.c
23ramstage-y += PlatformGnbPcie.c
Dave Frodind6aa7cf2014-11-21 14:57:03 -070024
25## DIMM SPD for on-board memory
26SPD_BIN = $(obj)/spd.bin
27
28# Order of names in SPD_SOURCES is important!
29SPD_SOURCES = Micron_MT41J128M16JT
30
31SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex)
32
33# Include spd rom data
34$(SPD_BIN): $(SPD_DEPS)
35 for f in $+; \
36 do for c in $$(cat $$f | grep -v ^#); \
Aaron Durbin3e91cff2015-04-01 08:49:41 -050037 do printf $$(printf '\%o' 0x$$c); \
Dave Frodind6aa7cf2014-11-21 14:57:03 -070038 done; \
39 done > $@
40
41cbfs-files-y += spd.bin
42spd.bin-file := $(SPD_BIN)
Martin Roth72a8e5e2015-03-24 16:02:27 -060043spd.bin-type := spd