Bug 13156 - linux-fimware recipe is an abomination
Summary: linux-fimware recipe is an abomination
Status: NEW
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 5.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-01-29 13:26 UTC by Ross Burton
Modified: 2025-10-02 10:59 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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