]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: add 'firmware' field support to module! macro
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Wed, 1 May 2024 12:35:48 +0000 (21:35 +0900)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 8 Jul 2024 20:20:09 +0000 (22:20 +0200)
commit549d3c2ffbea44fe123a67983fd8b15ab6989d8d
tree992bb03a6ebd2e9b19a62c8a1680ea96c2303cf2
parent63249a070eb5187d5caec995d171b53e374a0741
rust: add 'firmware' field support to module! macro

This adds 'firmware' field support to module! macro, corresponds to
MODULE_FIRMWARE macro. You can specify the file names of binary
firmware that the kernel module requires. The information is embedded
in the modinfo section of the kernel module. For example, a tool to
build an initramfs uses this information to put the firmware files
into the initramfs image.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20240501123548.51769-1-fujita.tomonori@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/macros/lib.rs
rust/macros/module.rs