I added a Thunderbolt 3 port to a laptop with this method, this is a nice summary of things. I also needed to prod some registers to make the card visible, so I have a UEFI script that does this on boot. https://rsend.wordpress.com/x210-coreboot/adding-a-thunderbo...
I reduced the kernel size (stripped out unnecessary drivers) and stuffed a stripped-down version with full GUI into my BIOS / ROM chip running coreboot. Pretty neat.