BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y

BR2_TARGET_UBOOT_NEEDS_DTC=y
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y

# BR2_TARGET_UBOOT_LATEST_VERSION=y
# BR2_TARGET_UBOOT_USE_DEFCONFIG=y

BR2_TARGET_UBOOT_CUSTOM_TARBALL=y

# based on rockchip-master from ayufan-rock64/linux-u-boot
# skiff-rockchip based on rockchip-master
# currently identical to pinephone crust branch:
# https://gitlab.com/pine64-org/u-boot/-/commits/crust/
BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/paralin/u-boot/archive/7206996ef7f89375dd74b275ced62d85f8bc7f42/u-boot-pine64-7206996.tar.gz"

# BR2_TARGET_UBOOT_FORMAT_BIN is not set
BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin"

# Override BR2_TARGET_UBOOT_BOARD_DEFCONFIG in board-specific config
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="pine64-lts"
