On Thu, Mar 16, 2023 at 07:18:11AM +1000, Dave Airlie wrote: > MODULE_FIRMWARE_GROUP("g1") > MODULE_FIRMWARE("fwv1.bin") > MODULE_FIRMWARE("fwv2.bin") > MODULE_FIRMWARE_GROUP_END("g2")
The way module namespaces were implemented could be used to leverage something like this, just that you'd use it for firmware tags, not symbols. drivers/dma-buf/dma-buf.c:EXPORT_SYMBOL_NS_GPL(dma_buf_export, DMA_BUF); Just that that would look like something like this, which might be even nicer: MODULE_FIRMWARE_GROUP("fwv1.bin", "nvidia/g1"); MODULE_FIRMWARE_GROUP("fwv2.bin", "nvidia/g1"); Luis