At least this was working with Docker. Currently working with Podman.
Run something like this:
$ mkdir ~/uboot-workarea && cd ~/uboot-workarea
$ git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/
$ git clone https://gitlab.denx.de/u-boot/u-boot.git/
$ uboot-builder
$ cd trusted-firmware-a/
$ git checkout v2.4
$ make PLAT=rk3399 CROSS_COMPILE=aarch64-linux-gnu- -j24
$ export BL31="$(find ${PWD} -name bl31.elf)" && echo "BL31=${BL31}"
$ cd ../u-boot/
$ git checkout v2021.01
$ make CROSS_COMPILE=aarch64-linux-gnu- rockpro64-rk3399_defconfig
$ make CROSS_COMPILE=aarch64-linux-gnu- all u-boot.itb -j24
That's for RockPro64. Use pinebook-pro-rk3399_defconfig
for PBP.
$ ./build-image.sh
$ mkdir -p ~/bin
$ ln -s "${PWD}/run-image.sh" ~/bin/uboot-builder