Arch Linux Image for VisionFive 2

Read it from the system ?

Or else https://github.com/cwt/pkgbuild-linux-cwt-starfive-visionfive2/blob/5.15/config

And a third option might be to use the extract-ikconfig script on a kernel image:
https://github.com/torvalds/linux/blob/master/scripts/extract-ikconfig