Matt DeVillier | 19e7060 | 2018-07-08 19:22:05 -0500 | [diff] [blame] | 1 | ## |
| 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 | |
| 17 | romstage-y += variant.c |
| 18 | ramstage-y += variant.c |
Kyösti Mälkki | 9265f89 | 2019-07-07 23:58:34 +0300 | [diff] [blame^] | 19 | smm-y += variant.c |
Matt DeVillier | 19e7060 | 2018-07-08 19:22:05 -0500 | [diff] [blame] | 20 | |
| 21 | SPD_BIN = $(obj)/spd.bin |
| 22 | |
| 23 | # SPD data by index |
| 24 | SPD_SOURCES = samsung_dimm_K4E8E324EB-EGCF # 0b0000 |
| 25 | SPD_SOURCES += samsung_dimm_K4E6E304EB-EGCF # 0b0001 |
| 26 | SPD_SOURCES += samsung_dimm_K4EBE304EB-EGCG # 0b0010 |
| 27 | |
| 28 | SPD_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 | |
| 38 | cbfs-files-y += spd.bin |
| 39 | spd.bin-file := $(SPD_BIN) |
| 40 | spd.bin-type := spd |