i used meta-rockchip and some bbappend files for kernel and uboot in my layer.
it creates kernel and uboot successfully.
linux-rockchip_5.10.bbappend:
SRC_URI = "git://github.com/friendlyarm/kernel-rockchip.git;protocol=https;nobranch=1;branch=nanopi5-v5.10.y_opt;"
SRCREV = "${AUTOREV}"
u-boot-rockchip.bbappend:
SRC_URI = " \
git://github.com/friendlyarm/uboot-rockchip.git;protocol=https;branch=nanopi5-v2017.09;\
git://github.com/JeffyCN/mirrors.git;protocol=https;branch=rkbin;name=rkbin;destsuffix=rkbin; \
"
SRCREV = "${AUTOREV}"
machine/nanopi-r5s.conf:
SOC_FAMILY ?= "rk3568"
PREFERRED_VERSION_linux-rockchip ?= "5.10%"
LINUXLIBCVERSION ?= "5.10-custom%"
require conf/machine/include/rockchip-arm64-common.inc
MALI_GPU := "bifrost-g52"
MALI_VERSION ?= "g2p0"
RK_ISP_VERSION := "2.1"
UBOOT_MACHINE = "nanopi5_defconfig"
RK_WIFIBT_FIRMWARES = ""
MACHINE_EXTRA_RRECOMMENDS:append = " \
drm-cursor \
"
KERNEL_DEVICETREE = "rockchip/rk3568-nanopi5-rev01.dtb"