blob: 21b20e6912a981a23d8ce1e46463063d5485c320 [file] [log] [blame]
Matt DeVillier19e70602018-07-08 19:22:05 -05001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2016 Google Inc.
5## Copyright (C) 2016 Intel Corporation
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##
16
17romstage-y += variant.c
18ramstage-y += variant.c
Kyösti Mälkki9265f892019-07-07 23:58:34 +030019smm-y += variant.c
Matt DeVillier19e70602018-07-08 19:22:05 -050020
21SPD_BIN = $(obj)/spd.bin
22
23# SPD data by index
24SPD_SOURCES = samsung_dimm_K4E8E324EB-EGCF # 0b0000
25SPD_SOURCES += samsung_dimm_K4E6E304EB-EGCF # 0b0001
26SPD_SOURCES += samsung_dimm_K4EBE304EB-EGCG # 0b0010
27
28SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
29
30# Include spd ROM data
31$(SPD_BIN): $(SPD_DEPS)
32 for f in $+; \
33 do for c in $$(cat $$f | grep -v ^#); \
34 do printf $$(printf '\%o' 0x$$c); \
35 done; \
36 done > $@
37
38cbfs-files-y += spd.bin
39spd.bin-file := $(SPD_BIN)
40spd.bin-type := spd