Kyösti Mälkki | f09e6d4 | 2015-01-10 12:13:23 +0200 | [diff] [blame] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
| 4 | # Copyright (C) 2011 Advanced Micro Devices, Inc. |
Kyösti Mälkki | 8c190f3 | 2014-11-14 16:20:22 +0200 | [diff] [blame] | 5 | # Copyright (C) 2013 Sage Electronic Engineering, LLC |
Kyösti Mälkki | f09e6d4 | 2015-01-10 12:13:23 +0200 | [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 | # |
Kyösti Mälkki | f09e6d4 | 2015-01-10 12:13:23 +0200 | [diff] [blame] | 16 | |
| 17 | ifeq ($(CONFIG_AHCI_BIOS),y) |
| 18 | stripped_ahcibios_id = $(call strip_quotes,$(CONFIG_AHCI_BIOS_ID)) |
| 19 | cbfs-files-$(CONFIG_AHCI_BIOS) += pci$(stripped_ahcibios_id).rom |
| 20 | pci$(stripped_ahcibios_id).rom-file := $(call strip_quotes,$(CONFIG_AHCI_BIOS_FILE)) |
| 21 | pci$(stripped_ahcibios_id).rom-type := optionrom |
| 22 | endif |
| 23 | |
| 24 | romstage-y += buildOpts.c |
| 25 | romstage-y += BiosCallOuts.c |
Kyösti Mälkki | a5d72a3 | 2016-04-27 08:55:41 +0300 | [diff] [blame] | 26 | romstage-y += OemCustomize.c |
Kyösti Mälkki | 7809356 | 2014-11-11 17:22:23 +0200 | [diff] [blame] | 27 | romstage-y += gpio_ftns.c |
Kyösti Mälkki | f09e6d4 | 2015-01-10 12:13:23 +0200 | [diff] [blame] | 28 | |
| 29 | ramstage-y += buildOpts.c |
| 30 | ramstage-y += BiosCallOuts.c |
Kyösti Mälkki | a5d72a3 | 2016-04-27 08:55:41 +0300 | [diff] [blame] | 31 | ramstage-y += OemCustomize.c |
Kyösti Mälkki | 7809356 | 2014-11-11 17:22:23 +0200 | [diff] [blame] | 32 | ramstage-y += gpio_ftns.c |
Kyösti Mälkki | 8c190f3 | 2014-11-14 16:20:22 +0200 | [diff] [blame] | 33 | |
| 34 | ## DIMM SPD for on-board memory |
| 35 | SPD_BIN = $(obj)/spd.bin |
| 36 | |
| 37 | # Order of names in SPD_SOURCES is important! |
| 38 | SPD_SOURCES = HYNIX-H5TQ2G83CFR HYNIX-H5TQ4G83MFR |
| 39 | |
| 40 | SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex) |
| 41 | |
Elyes HAOUAS | 8ab989e | 2016-07-30 17:46:17 +0200 | [diff] [blame] | 42 | # Include spd ROM data |
Kyösti Mälkki | 8c190f3 | 2014-11-14 16:20:22 +0200 | [diff] [blame] | 43 | $(SPD_BIN): $(SPD_DEPS) |
| 44 | for f in $+; \ |
| 45 | do for c in $$(cat $$f | grep -v ^#); \ |
Aaron Durbin | 3e91cff | 2015-04-01 08:49:41 -0500 | [diff] [blame] | 46 | do printf $$(printf '\%o' 0x$$c); \ |
Kyösti Mälkki | 8c190f3 | 2014-11-14 16:20:22 +0200 | [diff] [blame] | 47 | done; \ |
| 48 | done > $@ |
| 49 | |
| 50 | cbfs-files-y += spd.bin |
| 51 | spd.bin-file := $(SPD_BIN) |
Martin Roth | 72a8e5e | 2015-03-24 16:02:27 -0600 | [diff] [blame] | 52 | spd.bin-type := spd |