Here are the steps I've followed:
Download SDK here:
https://wiki.pine64.org/index.php/ROCKPr...ndroid_SDK
copy build_box.sh from here to root directory:
https://github.com/a9rock64/rk_device_ro...ild_box.sh
Contents of build_box.sh
lineageos@ba44581f91b1:~$ cat build_box.sh
In terminal in the base directory of the project do the following:
. build/envsetup.sh
./build_box.sh
I made a docker image with the required build environment dependencies:
https://cloud.docker.com/repository/dock...-rockpro64
The docker setup was borrowed from a lineage project and the instructions can be found here:
https://github.com/darran-kelinske-fives...-rockpro64
Download SDK here:
https://wiki.pine64.org/index.php/ROCKPr...ndroid_SDK
copy build_box.sh from here to root directory:
https://github.com/a9rock64/rk_device_ro...ild_box.sh
Contents of build_box.sh
lineageos@ba44581f91b1:~$ cat build_box.sh
Code:
#!/bin/bash
ARCH=arm64
LUNCH=rk3399_mid-userdebug
UBOOT_DEFCONFIG=rk3399
KERNEL_DEFCONFIG=rockchip_defconfig
KERNEL_DTS=rk3399-rockpro64
JOBS=4
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
In terminal in the base directory of the project do the following:
. build/envsetup.sh
./build_box.sh
I made a docker image with the required build environment dependencies:
https://cloud.docker.com/repository/dock...-rockpro64
The docker setup was borrowed from a lineage project and the instructions can be found here:
https://github.com/darran-kelinske-fives...-rockpro64