tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / google / rambi / spd / Makefile.inc
blob6a19f0febcb14a763457e279f3142c5b5185e72e
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2013 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.
16 SPD_BIN = $(obj)/spd.bin
18 # Order matters for SPD sources. The following indicies
19 # define the SPD data to use.
20 # 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
21 # 0b001 - 4GiB total - 2 x 2GiB Hynix  H5TC4G63AFR-PBA 1600MHz
22 # 0b010 - 2GiB total - 2 x 1GiB Micron MT41K128M16JT-125:K 1600MHz
23 # 0b011 - 2GiB total - 2 x 1GiB Hynix  H5TC2G63FFR-PBA 1600MHz
24 # 0b100 - 2GiB total - 1 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
25 # 0b101 - 2GiB total - 1 x 2GiB Hynix  H5TC4G63AFR-PBA 1600MHz
26 SPD_SOURCES = micron_2GiB_dimm_MT41K256M16HA-125
27 SPD_SOURCES += hynix_2GiB_dimm_H5TC4G63AFR-PBA
28 SPD_SOURCES += micron_1GiB_dimm_MT41K128M16JT-125
29 SPD_SOURCES += hynix_1GiB_dimm_H5TC2G63FFR-PBA
30 SPD_SOURCES += micron_2GiB_dimm_MT41K256M16HA-125
31 SPD_SOURCES += hynix_2GiB_dimm_H5TC4G63AFR-PBA
33 SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f).spd.hex)
35 # Include spd rom data
36 $(SPD_BIN): $(SPD_DEPS)
37         for f in $+; \
38           do for c in $$(cat $$f | grep -v ^#); \
39             do printf $$(printf '\%o' 0x$$c); \
40           done; \
41         done > $@
43 cbfs-files-y += spd.bin
44 spd.bin-file := $(SPD_BIN)
45 spd.bin-type := spd