Dave Frodin | c43bce5 | 2014-12-03 08:22:46 -0700 | [diff] [blame] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
| 4 | # Copyright (C) 2012 Advanced Micro Devices, Inc. |
Dave Frodin | d6aa7cf | 2014-11-21 14:57:03 -0700 | [diff] [blame] | 5 | # Copyright (C) 2014 Sage Electronic Engineering, LLC |
Dave Frodin | c43bce5 | 2014-12-03 08:22:46 -0700 | [diff] [blame] | 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 Frodin | c43bce5 | 2014-12-03 08:22:46 -0700 | [diff] [blame] | 16 | |
| 17 | romstage-y += buildOpts.c |
| 18 | romstage-y += BiosCallOuts.c |
| 19 | romstage-y += PlatformGnbPcie.c |
| 20 | |
| 21 | ramstage-y += buildOpts.c |
| 22 | ramstage-y += BiosCallOuts.c |
| 23 | ramstage-y += PlatformGnbPcie.c |
Dave Frodin | d6aa7cf | 2014-11-21 14:57:03 -0700 | [diff] [blame] | 24 | |
| 25 | ## DIMM SPD for on-board memory |
| 26 | SPD_BIN = $(obj)/spd.bin |
| 27 | |
| 28 | # Order of names in SPD_SOURCES is important! |
| 29 | SPD_SOURCES = Micron_MT41J128M16JT |
| 30 | |
| 31 | SPD_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 Durbin | 3e91cff | 2015-04-01 08:49:41 -0500 | [diff] [blame] | 37 | do printf $$(printf '\%o' 0x$$c); \ |
Dave Frodin | d6aa7cf | 2014-11-21 14:57:03 -0700 | [diff] [blame] | 38 | done; \ |
| 39 | done > $@ |
| 40 | |
| 41 | cbfs-files-y += spd.bin |
| 42 | spd.bin-file := $(SPD_BIN) |
Martin Roth | 72a8e5e | 2015-03-24 16:02:27 -0600 | [diff] [blame] | 43 | spd.bin-type := spd |