summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2017-10-31 16:35:39 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-31 16:35:39 +0000
commita46e7eb4bd978c9f658f7926e26e208514f7b048 (patch)
tree6183c13a4203205f5521a7504ea3be5c338d9049
parent0010553abe6b857b3411012cc8e2b09fad9b4380 (diff)
parentbaf936a37343b115898a5fdb8ca88c4ef6fabd3f (diff)
downloaddevice_common-a46e7eb4bd978c9f658f7926e26e208514f7b048.tar.gz
device_common-a46e7eb4bd978c9f658f7926e26e208514f7b048.tar.bz2
device_common-a46e7eb4bd978c9f658f7926e26e208514f7b048.zip
Refuse to flash if fastboot have no knowledge about dtbo.
am: baf936a373 Change-Id: Ibc658f898c226f777203bf14a86988a61cd92fdb
-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