Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2998)

Unified Diff: scripts/image_signing/resign_firmwarefd.sh

Issue 6294002: Split common.sh into bash-only and dash-only sections (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: change resign_firmwarefd to only use dashisms Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/image_signing/make_dev_ssd.sh ('k') | scripts/image_signing/tofactory.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/image_signing/resign_firmwarefd.sh
diff --git a/scripts/image_signing/resign_firmwarefd.sh b/scripts/image_signing/resign_firmwarefd.sh
index ad2d4d9506eef07b12c43611ad75abe4bff21d79..98903422221cfce2795fea6d3131daf7f5ce0b09 100755
--- a/scripts/image_signing/resign_firmwarefd.sh
+++ b/scripts/image_signing/resign_firmwarefd.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
@@ -48,7 +48,7 @@
# offset 0x00008000 and size 0x00002000).
# Load common constants and variables.
-. "$(dirname "$0")/common.sh"
+. "$(dirname "$0")/common_minimal.sh"
# Abort on error
set -e
@@ -62,7 +62,7 @@ fi
# Make sure the tools we need are available.
for prog in mosys vbutil_firmware; do
- type -P "${prog}" &>/dev/null || \
+ type "${prog}" &>/dev/null || \
{ echo "${prog} tool not found."; exit 1; }
done
@@ -82,20 +82,16 @@ do
match_str="$i Key"
line=$(mosys -f -k eeprom map $1 | grep "$match_str")
offset="$(echo $line | sed -e 's/.*area_offset=\"\([a-f0-9x]*\)\".*/\1/')"
- eval let \
- fw${i}_vblock_offset="$offset"
+ eval fw${i}_vblock_offset=$((offset))
size="$(echo $line | sed -e 's/.*area_size=\"\([a-f0-9x]*\)\".*/\1/')"
- eval let \
- fw${i}_vblock_size="$size"
+ eval fw${i}_vblock_size=$((size))
match_str="$i Data"
line=$(mosys -f -k eeprom map $1 | grep "$match_str")
offset="$(echo $line | sed -e 's/.*area_offset=\"\([a-f0-9x]*\)\".*/\1/')"
- eval let \
- fw${i}_offset="$offset"
+ eval fw${i}_offset=$((offset))
size="$(echo $line | sed -e 's/.*area_size=\"\([a-f0-9x]*\)\".*/\1/')"
- eval let \
- fw${i}_size="$size"
+ eval fw${i}_size=$((size))
done
temp_fwimage=$(make_temp_file)
« no previous file with comments | « scripts/image_signing/make_dev_ssd.sh ('k') | scripts/image_signing/tofactory.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698