Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
| 4 | ## Copyright (C) 2011 Google Inc. |
| 5 | ## |
| 6 | ## This program is free software; you can redistribute it and/or modify |
| 7 | ## it under the terms of the GNU General Public License as published by |
| 8 | ## the Free Software Foundation; version 2 of the License. |
| 9 | ## |
| 10 | ## This program is distributed in the hope that it will be useful, |
| 11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | ## GNU General Public License for more details. |
| 14 | ## |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 15 | |
| 16 | ramstage-y += ec.c |
| 17 | |
Kyösti Mälkki | 5c4b848 | 2014-05-03 13:29:06 +0300 | [diff] [blame] | 18 | romstage-y += chromeos.c |
| 19 | ramstage-y += chromeos.c |
Nico Huber | ec69c48 | 2017-10-20 21:12:45 +0200 | [diff] [blame] | 20 | ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 21 | |
Kyösti Mälkki | 9265f89 | 2019-07-07 23:58:34 +0300 | [diff] [blame^] | 22 | smm-y += mainboard_smi.c |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 23 | SPD_BIN = $(obj)/spd.bin |
| 24 | |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 25 | # Order of names in SPD_SOURCES is important! |
| 26 | SPD_SOURCES = elpida_4Gb_1600_x16 |
| 27 | SPD_SOURCES += samsung_4Gb_1600_1.35v_x16 |
| 28 | SPD_SOURCES += micron_4Gb_1600_1.35v_x16 |
| 29 | |
Stefan Reinauer | f2e1f6a | 2013-02-28 00:12:18 +0100 | [diff] [blame] | 30 | SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex) |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 31 | |
Elyes HAOUAS | 8ab989e | 2016-07-30 17:46:17 +0200 | [diff] [blame] | 32 | # Include spd ROM data |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 33 | $(SPD_BIN): $(SPD_DEPS) |
Aaron Durbin | 3e91cff | 2015-04-01 08:49:41 -0500 | [diff] [blame] | 34 | for f in $+; \ |
| 35 | do for c in $$(cat $$f | grep -v ^#); \ |
| 36 | do printf $$(printf '\%o' 0x$$c); \ |
| 37 | done; \ |
| 38 | done > $@ |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 39 | |
| 40 | cbfs-files-y += spd.bin |
| 41 | spd.bin-file := $(SPD_BIN) |
Martin Roth | 72a8e5e | 2015-03-24 16:02:27 -0600 | [diff] [blame] | 42 | spd.bin-type := spd |
Vladimir Serbinenko | 613d3ad | 2016-02-10 01:43:08 +0100 | [diff] [blame] | 43 | romstage-y += gpio.c |