blob: e6c7be181c8aa4d5a2a29e4778824668371316f6 [file] [log] [blame]
Stefan Reinauer49428d82013-02-21 15:48:37 -08001##
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 Reinauer49428d82013-02-21 15:48:37 -080015
16ramstage-y += ec.c
17
Kyösti Mälkki5c4b8482014-05-03 13:29:06 +030018romstage-y += chromeos.c
19ramstage-y += chromeos.c
Nico Huberec69c482017-10-20 21:12:45 +020020ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
Stefan Reinauer49428d82013-02-21 15:48:37 -080021
Kyösti Mälkki9265f892019-07-07 23:58:34 +030022smm-y += mainboard_smi.c
Stefan Reinauer49428d82013-02-21 15:48:37 -080023SPD_BIN = $(obj)/spd.bin
24
Stefan Reinauer49428d82013-02-21 15:48:37 -080025# Order of names in SPD_SOURCES is important!
26SPD_SOURCES = elpida_4Gb_1600_x16
27SPD_SOURCES += samsung_4Gb_1600_1.35v_x16
28SPD_SOURCES += micron_4Gb_1600_1.35v_x16
29
Stefan Reinauerf2e1f6a2013-02-28 00:12:18 +010030SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex)
Stefan Reinauer49428d82013-02-21 15:48:37 -080031
Elyes HAOUAS8ab989e2016-07-30 17:46:17 +020032# Include spd ROM data
Stefan Reinauer49428d82013-02-21 15:48:37 -080033$(SPD_BIN): $(SPD_DEPS)
Aaron Durbin3e91cff2015-04-01 08:49:41 -050034 for f in $+; \
35 do for c in $$(cat $$f | grep -v ^#); \
36 do printf $$(printf '\%o' 0x$$c); \
37 done; \
38 done > $@
Stefan Reinauer49428d82013-02-21 15:48:37 -080039
40cbfs-files-y += spd.bin
41spd.bin-file := $(SPD_BIN)
Martin Roth72a8e5e2015-03-24 16:02:27 -060042spd.bin-type := spd
Vladimir Serbinenko613d3ad2016-02-10 01:43:08 +010043romstage-y += gpio.c