rust-osdev/bootimage

Feature Request: Multiple Modules

ws-kj opened this issue · 4 comments

ws-kj commented

Hi - Is support for multiple modules (such as an initrd) planned? Thanks!

I'm not sure yet. I plan to start working with include_bytes and see how far I can get.

I'm of course open to proposals and pull requests, I just won't implement it myself until I need it.

ws-kj commented

Fair enough. I'm currently just writing the contents of a generated binary to a const &[u8]. Although it's a pretty hacky solution, it works for now.

I'm currently just writing the contents of a generated binary to a const &[u8]

That's exactly what include_bytes does.

Although it's a pretty hacky solution, it works for now.

Yeah, I agree that it's not optimal, but at least it works :).