forked from CyanogenMod/lge-kernel-omap4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
36 lines (26 loc) · 609 Bytes
/
build.sh
File metadata and controls
36 lines (26 loc) · 609 Bytes
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
35
36
#!/bin/bash
HWVER=rev_d
CLEAN=""
WORK_PATH=`pwd`
IMAGE_PART1='../../../../../android/images/p920/part1'
for argument in "$@"
do
case "$argument" in
hw*)
HWVER=${argument:3}
;;
"clean")
CLEAN=clean
make clean
exit 0
;;
esac
done
echo "##############building kernel HWVER = ${HWVER} ####################"
make ${CLEAN} ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- cosmo_${HWVER}_defconfig
make ${CLEAN} -j8 ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
#if [ ! -d ${IMAGE_PART1} ]
#then
# mkdir ${IMAGE_PART1}
#fi
#cp -vf arch/arm/boot/uImage ${IMAGE_PART1}