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.
19 echo "{ /* generated from ${in_file}; do not edit. */" >"${out_file}"
20 # Note currently we can only handle DDR3 type memory, even in C
22 sed "/^#.*$/d; s/^SDRAM.0./ /; s/\r$//; s/;$/,/;" \
23 "${in_file}" >> "${out_file}"
24 echo "}," >>"${out_file}"
28 echo "Generating $file => ${file%cfg}inc..."
29 bct_cfg2inc
"${file}" "${file%cfg}inc"