Skip to content

Commit

Permalink
Update distributable packages for IMM76D
Browse files Browse the repository at this point in the history
Also update factory image script to latest variant

Change-Id: I5bc3927fe0e98e5f212d7535a02e35ea0b24d21f
  • Loading branch information
Jean-Baptiste Queru committed Mar 27, 2012
1 parent ec28d99 commit 243a9b2
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 9 deletions.
52 changes: 45 additions & 7 deletions factory-images/generate-factory-images-package.sh
Expand Up @@ -16,25 +16,30 @@

# 223971 = ITL41D
# 235179 = ICL53F
# 299849 = IMM76D

PRODUCT=mysid
DEVICE=toro
BUILD=235179
VERSION=icl53f
BOOTLOADER=primekk15
RADIO=i515.ek02
CDMARADIO=i515.ek05
BUILD=299849
VERSION=imm76d
BOOTLOADER=primela03
RADIO=i515.fc03
CDMARADIO=i515.fa04

if test "$RADIOSRC" = ""
then
RADIOSRC=radio.img
fi
rm -rf tmp
mkdir -p tmp/$PRODUCT-$VERSION
unzip -d tmp signed-$PRODUCT-target_files-$BUILD.zip RADIO/radio.img RADIO/bootloader.img
unzip -d tmp signed-$PRODUCT-target_files-$BUILD.zip RADIO/$RADIOSRC RADIO/bootloader.img
if test "$CDMARADIO" != ""
then
unzip -d tmp signed-$PRODUCT-target_files-$BUILD.zip RADIO/radio-cdma.img
fi
cp signed-$PRODUCT-img-$BUILD.zip tmp/$PRODUCT-$VERSION/image-$PRODUCT-$VERSION.zip
cp tmp/RADIO/bootloader.img tmp/$PRODUCT-$VERSION/bootloader-$DEVICE-$BOOTLOADER.img
cp tmp/RADIO/radio.img tmp/$PRODUCT-$VERSION/radio-$DEVICE-$RADIO.img
cp tmp/RADIO/$RADIOSRC tmp/$PRODUCT-$VERSION/radio-$DEVICE-$RADIO.img
if test "$CDMARADIO" != ""
then
cp tmp/RADIO/radio-cdma.img tmp/$PRODUCT-$VERSION/radio-cdma-$DEVICE-$CDMARADIO.img
Expand Down Expand Up @@ -75,6 +80,39 @@ cat >> tmp/$PRODUCT-$VERSION/flash-all.sh << EOF
fastboot -w update image-$PRODUCT-$VERSION.zip
EOF
chmod a+x tmp/$PRODUCT-$VERSION/flash-all.sh
cat > tmp/$PRODUCT-$VERSION/flash-base.sh << EOF
#!/bin/sh
# Copyright (C) 2011 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
fastboot flash bootloader bootloader-$DEVICE-$BOOTLOADER.img
fastboot reboot-bootloader
sleep 5
fastboot flash radio radio-$DEVICE-$RADIO.img
fastboot reboot-bootloader
sleep 5
EOF
if test "$CDMARADIO" != ""
then
cat >> tmp/$PRODUCT-$VERSION/flash-base.sh << EOF
fastboot flash radio-cdma radio-cdma-$DEVICE-$CDMARADIO.img
fastboot reboot-bootloader
sleep 5
EOF
fi
chmod a+x tmp/$PRODUCT-$VERSION/flash-base.sh
(cd tmp ; tar zcvf ../$PRODUCT-$VERSION-factory.tgz $PRODUCT-$VERSION)
mv $PRODUCT-$VERSION-factory.tgz $PRODUCT-$VERSION-factory-$(sha1sum < $PRODUCT-$VERSION-factory.tgz | cut -b -8).tgz
rm -rf tmp
5 changes: 3 additions & 2 deletions self-extractors/generate-packages.sh
Expand Up @@ -26,8 +26,9 @@
# 239410 = IML74K
# 243892 = IMM06
# 262866 = IMM30D
ZIP=mysid-ota-239410.zip
BUILD=iml74k
# 299849 = IMM76D
ZIP=mysid-ota-299849.zip
BUILD=imm76d
ROOTDEVICE=toro
DEVICE=toro
MANUFACTURER=samsung
Expand Down

0 comments on commit 243a9b2

Please sign in to comment.