summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2017-10-31 16:48:10 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-31 16:48:10 +0000
commit59f90baa4f5ad3e3b3eeb4dd558e839b057a048f (patch)
tree6183c13a4203205f5521a7504ea3be5c338d9049
parent0010553abe6b857b3411012cc8e2b09fad9b4380 (diff)
parentad5e1b572059eed0b974b26aa5f2a6a847ef1559 (diff)
downloadcommon-59f90baa4f5ad3e3b3eeb4dd558e839b057a048f.tar.gz
Refuse to flash if fastboot have no knowledge about dtbo. am: baf936a373 am: a46e7eb4bd
am: ad5e1b5720 Change-Id: Ic294bd3f528a09f49656b4e92f3154b7b9d1f5bc
-rw-r--r--generate-factory-images-common.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/generate-factory-images-common.sh b/generate-factory-images-common.sh
index dc1bfcd..a2d81ca 100644
--- a/generate-factory-images-common.sh
+++ b/generate-factory-images-common.sh
@@ -101,6 +101,10 @@ cat > tmp/$PRODUCT-$VERSION/flash-all.sh << EOF
# See the License for the specific language governing permissions and
# limitations under the License.
+if ! grep -q dtbo.sig \$(which fastboot); then
+ echo "fastboot too old"
+ exit 1
+fi
EOF
if test "$UNLOCKBOOTLOADER" = "true"
then
@@ -254,6 +258,10 @@ cat > tmp/$PRODUCT-$VERSION/flash-base.sh << EOF
# See the License for the specific language governing permissions and
# limitations under the License.
+if ! grep -q dtbo.sig \$(which fastboot); then
+ echo "fastboot too old"
+ exit 1
+fi
EOF
if test "$XLOADER" != ""
then