Commit af89facd authored by Ezequiel Garcia's avatar Ezequiel Garcia
Browse files

Add build stage for Rock PI 4


Signed-off-by: Ezequiel Garcia's avatarEzequiel Garcia <ezequiel@collabora.com>
parent 7b533f37
Pipeline #7211 failed with stage
in 2 minutes and 23 seconds
......@@ -35,3 +35,23 @@ imx8mq-evk:
paths:
- $CI_PROJECT_DIR/flash.bin
- $CI_PROJECT_DIR/flash.bin.hash
rock-pi-4:
stage: build
image: debian:testing
before_script:
- echo "deb http://deb.debian.org/debian testing main contrib non-free" > /etc/apt/sources.list
- echo "deb-src http://deb.debian.org/debian testing main contrib non-free" >> /etc/apt/sources.list
- apt-get update && apt-get $APT_OPTIONS build-dep u-boot && apt-get $APT_OPTIONS install git u-boot-tools python-pyelftools gcc-aarch64-linux-gnu g++-aarch64-linux-gnu wget
script:
- echo "CONFIG_NET_RANDOM_ETHADDR=y" >> configs/rock-pi-4-rk3399_defconfig
- make rock-pi-4-rk3399_defconfig
- make -j$(nproc)
- git clone --depth 1 https://github.com/rockchip-linux/rkbin.git
- (cd rkbin && mkimage -n rk3399 -T rksd -d bin/rk33/rk3399_ddr_800MHz_*.bin idbloader.img && cat bin/rk33/rk3399_miniloader_v*.bin >> idbloader.img
- (cd rkbin && ./tools/loaderimage --pack --uboot ../u-boot-dtb.bin uboot.img 0x200000 --size 1024 1)
- (cd rkbin && ./tools/trust_merger --size 1024 1 RKTRUST/RK3399TRUST.ini)
artifacts:
name: bootloader
paths:
- $CI_PROJECT_DIR/rkbin/*.img
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment