开发者

Compile a small subset of the linux kernel (i.e. just a few files)

开发者 https://www.devze.com 2023-01-27 07:13 出处:网络
I\'m trying to extract specific pieces of code from the linux kernel. I specifically want to compile only a few files, and obviously need to ensure any references and dependencies to other files are i

I'm trying to extract specific pieces of code from the linux kernel. I specifically want to compile only a few files, and obviously need to ensure any references and dependencies to other files are included for the compi开发者_运维百科le to work.


make fs/read_write.o
make fs/btrfs/

For anything else, like .ko files, you need to have System.map available first, which means having built the core kernel image first (vmlinux).

0

精彩评论

暂无评论...
验证码 换一张
取 消