I thought that if something is in mainline it would be quite usable out of the box. I guess not really...
And I just learned about this ATF/TF-A thing, not sure what this does yet other than not existing for RK3528.
And yes, if I was more experienced I would probably use GitHub to work on this. However, git is quite a complicated tool for people with no formal training in it, with a lot of jargon and assumed knowledge about how branches work. GitHub adds another layer of complexity with its forks. So you are right in principle but only assuming someone knows how to use these tools properly.
Anyway, with some stuff commented out and one of Werner's lines changed to
declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin"
the image builds.
I also saw the KERNELBRANCH parameter for the build command, but as far as I understand, 6.19.something doesn't exist yet?