summaryrefslogtreecommitdiff
path: root/src/vendorcode
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2013-05-10 22:18:09 +0200
committerRonald G. Minnich <rminnich@gmail.com>2013-05-14 22:03:07 +0200
commit4bd7b0cbadabb45f9131da03121a6ca284f24f35 (patch)
treed7b8b46b89af05fd4f3fa5e27fb343f35e0ac8d9 /src/vendorcode
parent3a1457137e52bee5cb136196db97695142e85a5e (diff)
downloadcoreboot-4bd7b0cbadabb45f9131da03121a6ca284f24f35.tar.xz
EXYNOS5250/SNOW: fix the build script. Add a script to get the bl1.
build-snow got broken when the snow makefile improved. So fix it. While we're at it, create a script like the update-microcode scripts that gets the bl1. I thought about making this a common script but the various names and paths always evolve, leaving me thinking it's not worth it. This script is just a piece of the snow build script. Change-Id: I65c0f8697a978c62fe12533c4f0152d14dbaefda Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Reviewed-on: http://review.coreboot.org/3238 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'src/vendorcode')
-rwxr-xr-xsrc/vendorcode/google/chromeos/build-snow21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/vendorcode/google/chromeos/build-snow b/src/vendorcode/google/chromeos/build-snow
index a749ba535a..da1566bf1e 100755
--- a/src/vendorcode/google/chromeos/build-snow
+++ b/src/vendorcode/google/chromeos/build-snow
@@ -44,29 +44,16 @@ get_bl1() {
fi
}
-merge_bl1() {
- local outfile="$1"
- local bl1="${BL1_PATH}/${BL1_NAME}"
-
- if [ ! -e "$bl1" ]; then
- get_bl1
- fi
-
- # use the new BL1 which supports 30KB BL2/SPL/Coreboot
- local size="$(stat -c "%s" "$outfile")"
- local bl1_size="$(stat -c "%s" "$bl1")"
-
- [ "$bl1_size" = "$((0x2000))" ] || die "Incorrect BL1 input file."
- dd if="$bl1" of=${outfile} conv=notrunc
-}
-
is_servod_ready() {
ps -C servod >/dev/null 2>&1
}
main() {
+ if [ ! -e "$bl1" ]; then
+ get_bl1
+ fi
+
make
- merge_bl1 "$OUTPUT"
create_diff_192k "$OUTPUT" "$TMP_DIFF"
echo "OK: Generated image (with BL1) in $OUTPUT"
if is_servod_ready; then