tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / google / rush_ryu / bct / cfg2inc.sh
blob0d0369746cf4e3616e5c1fc3c47d630da01c66e3
1 #!/bin/sh
3 # This file is part of the coreboot project.
5 # Copyright 2014 Google Inc.
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.
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.
16 bct_cfg2inc() {
17 local in_file="$1"
18 local out_file="$2"
19 echo "{ /* generated from ${in_file}; do not edit. */" >"${out_file}"
20 # Note currently we can only handle DDR3 type memory, even in C
21 # implementation.
22 sed "/^#.*$/d; s/^SDRAM.0./ /; s/\r$//; s/;$/,/;" \
23 "${in_file}" >> "${out_file}"
24 echo "}," >>"${out_file}"
27 for file in $@; do
28 echo "Generating $file => ${file%cfg}inc..."
29 bct_cfg2inc "${file}" "${file%cfg}inc"
30 done