]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: firmware: add `module_firmware!` macro
authorDanilo Krummrich <dakr@kernel.org>
Thu, 6 Mar 2025 22:23:29 +0000 (23:23 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Sun, 9 Mar 2025 18:23:31 +0000 (19:23 +0100)
commit1d121a33ad50a3c61ce3a551a73ef7945c0b3494
treecea1be6b99eff5d17a4f4610e7395757386aa2f3
parentef476b0dd9ddfdc34a455408651e7c7bd20b4efe
rust: firmware: add `module_firmware!` macro

Analogous to the `module!` macro `module_firmware!` adds additional
firmware path strings to the .modinfo section.

In contrast to `module!`, where path strings need to be string literals,
path strings can be composed with the `firmware::ModInfoBuilder`.

Some drivers require a lot of firmware files (such as nova-core) and
hence benefit from more flexibility composing firmware path strings.

Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/r/20250306222336.23482-4-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/firmware.rs