summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-02-15 01:56:01 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-02-15 01:56:01 +0100
commitd93a358a4a9dccfb77b33479c94fe1ec3db9e406 (patch)
tree6eaa2d5314d2acd1c822479ba8ba0affb98ece2d
parent37254642e976c745e8ea0af2cf9287fcdfa8dd2f (diff)
downloadvendor_replicant-d93a358a4a9dccfb77b33479c94fe1ec3db9e406.zip
vendor_replicant-d93a358a4a9dccfb77b33479c94fe1ec3db9e406.tar.gz
vendor_replicant-d93a358a4a9dccfb77b33479c94fe1ec3db9e406.tar.bz2
sign-build: consider device-specific releasetools code for Galaxy S2
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rwxr-xr-xsign-build22
1 files changed, 16 insertions, 6 deletions
diff --git a/sign-build b/sign-build
index d32622f..f4c809e 100755
--- a/sign-build
+++ b/sign-build
@@ -105,25 +105,35 @@ mkdir -p $DIST_OUT_DIR
if [ "$DEVICE" = "i9100" ]
then
python $BASEDIR/device/samsung/galaxys2-common/releasetools/galaxys2_sign_target_files_apks \
+ -s device/samsung/galaxys2-common/releasetools/extensions/releasetools.py \
-o \
-p $OUT_DIR/host/linux-x86 \
-d $KEY_DIR $TARGET_FILES \
$DIST_OUT_DIR/signed-target_files-$DEVICE.zip
+
+ python $BASEDIR/build/tools/releasetools/ota_from_target_files \
+ -s device/samsung/galaxys2-common/releasetools/extensions/releasetools.py \
+ -k $KEY_DIR/releasekey \
+ -p $OUT_DIR/host/linux-x86 \
+ $DIST_OUT_DIR/signed-target_files-$DEVICE.zip \
+ $DIST_OUT_DIR/$RELEASE-$DEVICE.zip
+
else
python $BASEDIR/build/tools/releasetools/sign_target_files_apks \
-o \
-p $OUT_DIR/host/linux-x86 \
-d $KEY_DIR $TARGET_FILES \
$DIST_OUT_DIR/signed-target_files-$DEVICE.zip
-fi
-python $BASEDIR/build/tools/releasetools/ota_from_target_files \
- -k $KEY_DIR/releasekey \
- -p $OUT_DIR/host/linux-x86 \
- $DIST_OUT_DIR/signed-target_files-$DEVICE.zip \
- $DIST_OUT_DIR/$RELEASE-$DEVICE.zip
+ python $BASEDIR/build/tools/releasetools/ota_from_target_files \
+ -k $KEY_DIR/releasekey \
+ -p $OUT_DIR/host/linux-x86 \
+ $DIST_OUT_DIR/signed-target_files-$DEVICE.zip \
+ $DIST_OUT_DIR/$RELEASE-$DEVICE.zip
+fi
python $BASEDIR/build/tools/releasetools/img_from_target_files \
+ -z \
$DIST_OUT_DIR/signed-target_files-$DEVICE.zip \
$DIST_OUT_DIR/signed-img-$DEVICE.zip