summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalimochoAz <calimochoazucarado@gmail.com>2012-04-04 14:35:57 +0400
committerGerrit Code Review <gerrit@review.cyanogenmod.com>2012-04-04 14:35:57 +0400
commit4b5809cd445a5ce09791f9644adc08fc9e2d4654 (patch)
tree713897bbf1f7233f8b165b57e2eba93fdda40f96
parent3d117b7920cdf619ba95f9b01a8bde1e501d7c0d (diff)
parentebbfdf9eb5692e7b6cce548aeef13113e469116c (diff)
downloaddevice_samsung_crespo-4b5809cd445a5ce09791f9644adc08fc9e2d4654.tar.gz
device_samsung_crespo-4b5809cd445a5ce09791f9644adc08fc9e2d4654.tar.bz2
device_samsung_crespo-4b5809cd445a5ce09791f9644adc08fc9e2d4654.zip
Merge "Distributables for IMM76D" into ics
-rw-r--r--board-info.txt4
-rwxr-xr-xfactory-images/generate-factory-images-package.sh116
-rwxr-xr-xself-extractors/generate-packages.sh5
3 files changed, 121 insertions, 4 deletions
diff --git a/board-info.txt b/board-info.txt
index f188d59..5f44dd5 100644
--- a/board-info.txt
+++ b/board-info.txt
@@ -1,3 +1,3 @@
require board=herring
-require version-bootloader=I9020XXJK1|I9020XXKA3|I9020XXKI1|I9020XXKL1
-require version-baseband=I9020XXJK8|I9020XXKB1|I9020XXKD1|I9020XXKF1|I9020XXKI1|I9020UCKB2|I9020UCKD1|I9020UCKF1|I9020KRKB3|M200KRKC1
+require version-bootloader=I9020XXKA3|I9020XXKI1|I9020XXKL1
+require version-baseband=I9020XXKI1|I9020UCKB2|I9020UCKD1|I9020UCKF1|I9020UCKJ1|I9020KRKB3|M200KRKC1
diff --git a/factory-images/generate-factory-images-package.sh b/factory-images/generate-factory-images-package.sh
new file mode 100755
index 0000000..44477ee
--- /dev/null
+++ b/factory-images/generate-factory-images-package.sh
@@ -0,0 +1,116 @@
+#!/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.
+
+# 299849 = IMM76D
+
+PRODUCT=soju
+DEVICE=crespo
+BUILD=299849
+VERSION=imm76d
+RADIOSRC=radio.xx.img
+BOOTLOADER=i9020xxkl1
+RADIO=i9020xxki1
+
+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
+
+# 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 5b5cb6c..e671a2e 100755
--- a/self-extractors/generate-packages.sh
+++ b/self-extractors/generate-packages.sh
@@ -36,8 +36,9 @@
# 239410 = IML74K
# 257829 = IMM30B
# 262866 = IMM30D
-ZIP=soju-ota-262866.zip
-BUILD=imm30d
+# 299849 = IMM76D
+ZIP=soju-ota-299849.zip
+BUILD=imm76d
ROOTDEVICE=crespo
DEVICE=crespo
MANUFACTURER=samsung