forked from rock64-android/device-rockchip-rk3328
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sh
executable file
·37 lines (34 loc) · 852 Bytes
/
build.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
35
36
37
#!/bin/bash
ARCH=arm64
LUNCH=rk3328_box-userdebug
UBOOT_DEFCONFIG=rk3328_box_defconfig
KERNEL_DEFCONFIG=rockchip_smp_nougat_defconfig
KERNEL_DTS=rk3328-rock64
JOBS=12
usage()
{
echo "USAGE: build [-ovj]"
echo "-o -Generate ota package"
echo "-v -Set build version name for output image folder"
echo "-j -Build jobs"
exit 1
}
# check pass argument
while getopts "ovj:" arg
do
case $arg in
o)
echo "will build ota package"
BUILD_OTA=true
;;
v)
BUILD_VERSION=$OPTARG
;;
j)
JOBS=$OPTARG
;;
?)
usage ;;
esac
done
source device/rockchip/common/build_base.sh -a $ARCH -l $LUNCH -u $UBOOT_DEFCONFIG -k $KERNEL_DEFCONFIG -d $KERNEL_DTS -j $JOBS