diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-04-02 15:26:15 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-04-02 15:26:15 -0700 |
commit | b7bca86e0740af6f6ff3525cdc07959b053dfeed (patch) | |
tree | b3745363be15810eb06238e2b5ca2bc6672d9a2f | |
parent | 61126f3c929aa80d06da92bf3ef944f7a093e187 (diff) | |
parent | abf5a1a2a183c4e80eea3c20af0813b746024f74 (diff) | |
download | device_samsung_maguro-b7bca86e0740af6f6ff3525cdc07959b053dfeed.zip device_samsung_maguro-b7bca86e0740af6f6ff3525cdc07959b053dfeed.tar.gz device_samsung_maguro-b7bca86e0740af6f6ff3525cdc07959b053dfeed.tar.bz2 |
am abf5a1a2: Add takju
* commit 'abf5a1a2a183c4e80eea3c20af0813b746024f74':
Add takju
-rwxr-xr-x | factory-images/generate-factory-images-package.sh | 96 |
1 files changed, 8 insertions, 88 deletions
diff --git a/factory-images/generate-factory-images-package.sh b/factory-images/generate-factory-images-package.sh index 98c5ba9..a7a62e5 100755 --- a/factory-images/generate-factory-images-package.sh +++ b/factory-images/generate-factory-images-package.sh @@ -26,93 +26,13 @@ VERSION=imm76d BOOTLOADER=primela03 RADIO=i9250xxla02 -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/$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 -# -# 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-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 +source ../../../common/generate-factory-images-common.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. +BUILD=299849 +DEVICE=maguro +PRODUCT=takju +VERSION=imm76d +BOOTLOADER=primela03 +RADIO=i9250xxla02 -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 +source ../../../common/generate-factory-images-common.sh |