diff options
author | Xin Li <delphij@google.com> | 2017-10-31 16:38:10 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-10-31 16:38:10 +0000 |
commit | ad5e1b572059eed0b974b26aa5f2a6a847ef1559 (patch) | |
tree | 6183c13a4203205f5521a7504ea3be5c338d9049 | |
parent | 0010553abe6b857b3411012cc8e2b09fad9b4380 (diff) | |
parent | a46e7eb4bd978c9f658f7926e26e208514f7b048 (diff) | |
download | device_common-ad5e1b572059eed0b974b26aa5f2a6a847ef1559.tar.gz device_common-ad5e1b572059eed0b974b26aa5f2a6a847ef1559.tar.bz2 device_common-ad5e1b572059eed0b974b26aa5f2a6a847ef1559.zip |
Refuse to flash if fastboot have no knowledge about dtbo. am: baf936a373
am: a46e7eb4bd
Change-Id: I7a2da1b121fca59b7880fb9cd67dd5b8118fae9f
-rw-r--r-- | generate-factory-images-common.sh | 8 |
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 |