Bug 13156

Summary: linux-fimware recipe is an abomination
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: kernelAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Medium CC: jon.mason, randy.macleod, tom.zanussi
Version: 2.7   
Target Milestone: 5.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2019-01-29 13:26:42 UTC
This recipe seriously needs refactoring before it reaches 1000 lines.

I suspect that expressing the content of the recipe in some Python data structures that generates the packaging rules would reduce the size and complexity of the recipe drastically.
Comment 1 Randy MacLeod 2021-03-25 15:29:19 UTC
Ross, too late:
$ wc -l `fd linux-firmware_`
1041 meta/recipes-kernel/linux-firmware/linux-firmware_20210208.bb
Comment 2 Ross Burton 2021-03-25 16:08:16 UTC
????
Comment 3 Ross Burton 2021-03-25 16:08:31 UTC
Huh, that was meant to be emoji. :)
Comment 4 Randy MacLeod 2023-03-30 15:26:17 UTC
We could reduce the boilerplate in the recipe ...
Comment 5 Randy MacLeod 2023-10-24 14:24:24 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 6 Ross Burton 2025-10-02 10:59:45 UTC
For anyone who cares, I'm making progress towards machine-readable metadata in linux-firmware upstream so we can autogenerate the packaging.

eg https://gitlab.com/kernel-firmware/linux-firmware/-/merge_requests/591