blob: 3397af0bb4a518431b6d16adea2f2474c54cba07 [file] [log] [blame]
Duncan Laurie3ece50d2013-06-24 14:57:40 -07001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2012 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##
Duncan Laurie3ece50d2013-06-24 14:57:40 -070015
16ramstage-$(CONFIG_EC_GOOGLE_CHROMEEC) += ec.c
17
Kyösti Mälkki5c4b8482014-05-03 13:29:06 +030018romstage-y += chromeos.c
19ramstage-y += chromeos.c
Duncan Laurie3ece50d2013-06-24 14:57:40 -070020
21smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c
22
23## DIMM SPD for on-board memory
24SPD_BIN = $(obj)/spd.bin
25
26# Order of names in SPD_SOURCES is important!
27SPD_SOURCES = micron_4Gb_1600_1.35v_x16
28
29SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex)
30
31# Include spd rom data
32$(SPD_BIN): $(SPD_DEPS)
33 for f in $+; \
34 do for c in $$(cat $$f | grep -v ^#); \
Aaron Durbin3e91cff2015-04-01 08:49:41 -050035 do printf $$(printf '\%o' 0x$$c); \
Duncan Laurie3ece50d2013-06-24 14:57:40 -070036 done; \
37 done > $@
38
39cbfs-files-y += spd.bin
40spd.bin-file := $(SPD_BIN)
Martin Roth72a8e5e2015-03-24 16:02:27 -060041spd.bin-type := spd