forked from coolya/android_kernel_samsung
-
Notifications
You must be signed in to change notification settings - Fork 7
/
initramfs.sh
executable file
·34 lines (24 loc) · 858 Bytes
/
initramfs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Vibrant needs a fix on CM7 repo for now. Navigate to device/samsung/vibrantmtd/, and open full_vibrantmtd.mk. On line 34, PRODUCT_DEVICE := SGH-T959 should be changed to PRODUCT_DEVICE := vibrantmtd
# This script will build for all listed devices by default
# To build for one device only, use ./initramfs.sh "phone name" (without quote)
# Example : ./initramfs.sh captivate
declare -A phone
if [[ $# -gt 0 ]]; then
phones[0]=$1
echo " "
echo "================Force building for $1 only=================="
else
phones[0]="galaxys"
phones[1]="captivate"
phones[2]="vibrant"
phones[3]="fascinate"
fi
cd ../../../
for i in ${!phones[@]}; do
phone=${phones[$i]}
echo "========Building ramdisk.img and recovery.img for ${phone}========"
echo ""
. build/envsetup.sh && lunch full_${phone}mtd-eng && make bootimage
done
echo "Done!"