There's a non-upstream OpenEmbedded layer for building OCaml components, but it jumps through hoops to coordinate OCaml toolchain with upstream OE releases, https://github.com/OpenXT/meta-openxt-ocaml-platform
This could be generalized to create an upstream OE layer that uses the upcoming cross-compiling improvements from upstream Ocaml, which would then enable MirageOS unikernels in OE meta-virtualization, https://layers.openembedded.org/layerindex/branch/master/lay.... RISC-V support is in early stages for meta-virt, Western Digital added some support.
Intro to meta-virt: https://youtube.com/watch?feature=emb_title&v=fIbWvrlWJYg
Intro to Yocto: https://elinux.org/images/a/a8/Getting_Started_with_Embedded...
Meta-virt mailing list would be a good place for discussion, https://lists.yoctoproject.org/g/meta-virtualization