- 下载 linux 源码,v6.10-rc2
- 在项目根目录下执行
make menuconfig
配置
Kernel hacking —>
Compile-time checks and compiler options —>
Debug information (Generate DWARF Version 5 debuginfo) —>
(X) Generate DWARF Version 5 debuginfo
[*] Provide GDB scripts for kernel debugging
make -j8
busybox 1.36.1
1 |
|
1 | make menuconfig |
[*] Build static binary (no shared libs)