Skip to content

Instantly share code, notes, and snippets.

@psyke83
Created July 1, 2014 21:49
Show Gist options
  • Select an option

  • Save psyke83/5b044b1e6c9d517cd6fe to your computer and use it in GitHub Desktop.

Select an option

Save psyke83/5b044b1e6c9d517cd6fe to your computer and use it in GitHub Desktop.
From b01f0b67e1617ce101d0bf931ed2c81f3f605f15 Mon Sep 17 00:00:00 2001
From: Conn O'Griofa <connogriofa@gmail.com>
Date: Tue, 1 Jul 2014 22:48:22 +0100
Subject: [PATCH] Pass MINIGZIP and MKBOOTIMG variables to ota script
---
build.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/build.sh b/build.sh
index bd565b3..300f477 100755
--- a/build.sh
+++ b/build.sh
@@ -438,6 +438,14 @@ then
else
OTASCRIPT=./build/tools/releasetools/ota_from_target_files
fi
+ if [ -s $OUT/ota_custom_minigzip ]
+ then
+ OTASCRIPT="MINIGZIP=$(cat $OUT/ota_custom_minigzip) $OTASCRIPT"
+ fi
+ if [ -s $OUT/ota_custom_bootimg_mk ]
+ then
+ OTASCRIPT="MKBOOTIMG=$(cat $OUT/ota_custom_bootimg_mk) $OTASCRIPT"
+ fi
if [ -z "$WITH_GMS" -o "$WITH_GMS" = "false" ]
then
OTASCRIPT="$OTASCRIPT --backup=true"
--
1.9.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment