diff options
author | KalimochoAz <calimochoazucarado@gmail.com> | 2012-04-04 17:36:32 +0400 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.cyanogenmod.com> | 2012-04-04 17:36:32 +0400 |
commit | 412f799aa7e33696839034acdb9969d70bf5f818 (patch) | |
tree | 9876bd74cf43d6ad534966e875184d95db2438b9 | |
parent | ea1817f36c6df6574cb7955b9f6fdd4f3956e53e (diff) | |
parent | 05e75622a9fb10580405882cc603ae40cc161356 (diff) | |
download | device_samsung_maguro-412f799aa7e33696839034acdb9969d70bf5f818.zip device_samsung_maguro-412f799aa7e33696839034acdb9969d70bf5f818.tar.gz device_samsung_maguro-412f799aa7e33696839034acdb9969d70bf5f818.tar.bz2 |
Merge "Update extractor scripts to IMM76D" into ics
-rw-r--r-- | board-info.txt | 5 | ||||
-rwxr-xr-x | factory-images/generate-factory-images-package.sh | 91 | ||||
-rwxr-xr-x | self-extractors/generate-packages.sh | 5 |
3 files changed, 79 insertions, 22 deletions
diff --git a/board-info.txt b/board-info.txt index 4067848..95ae123 100644 --- a/board-info.txt +++ b/board-info.txt @@ -1,4 +1,3 @@ require board=tuna -require version-bootloader=PRIMEKJ10|PRIMEKK13|PRIMEKK14|PRIMEKK15 -require version-baseband=I9250XXKK2|I9250XXKK6|I9250UGKL1 - +require version-bootloader=PRIMEKK15|PRIMEKL01|PRIMELA03 +require version-baseband=I9250XXKK6|I9250XXLA2 diff --git a/factory-images/generate-factory-images-package.sh b/factory-images/generate-factory-images-package.sh index 68a67d7..98c5ba9 100755 --- a/factory-images/generate-factory-images-package.sh +++ b/factory-images/generate-factory-images-package.sh @@ -17,20 +17,34 @@ # 223971 = ITL41D # 228551 = ITL41F # 235179 = ICL53F +# 299849 = IMM76D -BUILD=235179 -VERSION=icl53f -BOOTLOADER=primekk15 -RADIO=i9250xxkk6 +BUILD=299849 +DEVICE=maguro +PRODUCT=yakju +VERSION=imm76d +BOOTLOADER=primela03 +RADIO=i9250xxla02 +if test "$RADIOSRC" = "" +then + RADIOSRC=radio.img +fi rm -rf tmp -mkdir -p tmp/yakju-$VERSION -unzip -d tmp signed-yakju-target_files-$BUILD.zip RADIO/radio.img RADIO/bootloader.img -cp signed-yakju-img-$BUILD.zip tmp/yakju-$VERSION/image-yakju-$VERSION.zip -cp tmp/RADIO/bootloader.img tmp/yakju-$VERSION/bootloader-maguro-$BOOTLOADER.img -cp tmp/RADIO/radio.img tmp/yakju-$VERSION/radio-maguro-$RADIO.img -#cp flash-all.sh tmp/yakju-$VERSION -cat > tmp/yakju-$VERSION/flash-all.sh << EOF +mkdir -p tmp/$PRODUCT-$VERSION +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/$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 +fi +cat > tmp/$PRODUCT-$VERSION/flash-all.sh << EOF #!/bin/sh # Copyright (C) 2011 The Android Open Source Project @@ -47,15 +61,58 @@ cat > tmp/yakju-$VERSION/flash-all.sh << EOF # See the License for the specific language governing permissions and # limitations under the License. -fastboot flash bootloader bootloader-maguro-$BOOTLOADER.img +fastboot flash bootloader bootloader-$DEVICE-$BOOTLOADER.img fastboot reboot-bootloader sleep 5 -fastboot flash radio radio-maguro-$RADIO.img +fastboot flash radio radio-$DEVICE-$RADIO.img fastboot reboot-bootloader sleep 5 -fastboot -w update image-yakju-$VERSION.zip EOF -chmod a+x tmp/yakju-$VERSION/flash-all.sh -(cd tmp ; tar zcvf ../yakju-$VERSION-factory.tgz yakju-$VERSION) -mv yakju-$VERSION-factory.tgz yakju-$VERSION-factory-$(sha1sum < yakju-$VERSION-factory.tgz | cut -b -8).tgz +if test "$CDMARADIO" != "" +then +cat >> tmp/$PRODUCT-$VERSION/flash-all.sh << EOF +fastboot flash radio-cdma radio-cdma-$DEVICE-$CDMARADIO.img +fastboot reboot-bootloader +sleep 5 +EOF +fi +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 diff --git a/self-extractors/generate-packages.sh b/self-extractors/generate-packages.sh index 7bf97f0..4c30dec 100755 --- a/self-extractors/generate-packages.sh +++ b/self-extractors/generate-packages.sh @@ -24,8 +24,9 @@ # 239410 = IML74K # 257829 = IMM30B # 262866 = IMM30D -ZIP=yakju-ota-239410.zip -BUILD=iml74k +# 299849 = IMM76D +ZIP=yakju-ota-299849.zip +BUILD=imm76d ROOTDEVICE=maguro DEVICE=maguro MANUFACTURER=samsung |