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 |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 20 | ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += i915.c |
| 21 | ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += i915io.c |
Ronald G. Minnich | 665e3d2 | 2013-02-27 09:54:47 -0800 | [diff] [blame] | 22 | ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += intel_dp.c |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 23 | |
| 24 | smm-$(CONFIG_HAVE_SMI_HANDLER) += mainboard_smi.c |
| 25 | SPD_BIN = $(obj)/spd.bin |
| 26 | |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 27 | # Order of names in SPD_SOURCES is important! |
| 28 | SPD_SOURCES = elpida_4Gb_1600_x16 |
| 29 | SPD_SOURCES += samsung_4Gb_1600_1.35v_x16 |
| 30 | SPD_SOURCES += micron_4Gb_1600_1.35v_x16 |
| 31 | |
Stefan Reinauer | f2e1f6a | 2013-02-28 00:12:18 +0100 | [diff] [blame] | 32 | SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex) |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 33 | |
| 34 | # Include spd rom data |
| 35 | $(SPD_BIN): $(SPD_DEPS) |
Aaron Durbin | 3e91cff | 2015-04-01 08:49:41 -0500 | [diff] [blame] | 36 | for f in $+; \ |
| 37 | do for c in $$(cat $$f | grep -v ^#); \ |
| 38 | do printf $$(printf '\%o' 0x$$c); \ |
| 39 | done; \ |
| 40 | done > $@ |
Stefan Reinauer | 49428d8 | 2013-02-21 15:48:37 -0800 | [diff] [blame] | 41 | |
| 42 | cbfs-files-y += spd.bin |
| 43 | spd.bin-file := $(SPD_BIN) |
Martin Roth | 72a8e5e | 2015-03-24 16:02:27 -0600 | [diff] [blame] | 44 | spd.bin-type := spd |