android_device_allwinner-full/octopus-ibt/package.sh
2016-08-05 21:03:18 -04:00

56 lines
788 B
Bash
Executable file

#!/bin/bash
cd $PACKAGE
chip=sun8iw6p1
platform=android
board=ibt
debug=uart0
sigmode=none
securemode=none
usage()
{
printf "Usage: pack [-cCHIP] [-pPLATFORM] [-bBOARD] [-d] [-s] [-v] [-h]
-c CHIP (default: $chip)
-p PLATFORM (default: $platform)
-b BOARD (default: $board)
-d pack firmware with debug info output to card0
-s pack firmware with signature
-v pack firmware with secureboot
-h print this help message
"
}
while getopts "c:p:b:dsvh" arg
do
case $arg in
c)
chip=$OPTARG
;;
p)
platform=$OPTARG
;;
b)
board=$OPTARG
;;
d)
debug=card0
;;
s)
sigmode=sig
;;
v)
securemode=secure
;;
h)
usage
exit 0
;;
?)
exit 1
;;
esac
done
./pack -c $chip -p $platform -b $board -d $debug -s $sigmode -v $securemode