Attached python script generates Limine configs by scanning through kernels in the /boot directory and reading in a TOML file with other config info.
Also attached a little XBPS kernel post-install hook script, copy it to /etc/kernel.d/post-install/ and it will update the config every time the kernel updates. Note: it assumes that the script is in /usr/local/bin/gen-limine and the TOML file is in /etc/limine.toml. Edit that if you feel the need for it.
Also note: the code is absolutely janky as hell, but it gets the job done
Run without arguments to see it's usage, should be pretty self-explanatory.
[opts] # options passed as global options to limine - optional
timeout = 5
wallpaper = ["one.png", "two.png"] # lists get passed as the same key with different values
# ...
[os]
cmdline = "BLAH BLAH BLAH" # kernel commandline - probably required to boot
name = "Void Bajingus" # overwrites the /etc/os-release PRETTY_NAME as the os name in the final config - optional
comment = "This is my favourite OS of all time!" # the boot group comment - optional
[os.opts] # other options passed to every boot entry of the kernels - optional
comment = "This is Void Linux with the kernel of the version {}!" # every {} in this sections gets substituted to kernel version
resolution = "1920x1080"
# ...
[oses."Windows 10"] # other oses can be added as keys to the oses category
# everything here gets passed as-is to limine
protocol = "efi"
path = "boot():/EFI/Microsoft/Boot/bootmgfw.efi"
# ...
[oses."Memtest86+"]
protocol = "efi"
path = "boot():/memtest86+/memtest.efi"
# ...
# ...