在 Alpine Linux 中编译自定义内核和模块

在 Alpine Linux 中编译自定义内核和模块

我正在尝试在 Alpine Linux 3.15 中构建附加模块。

为此,我安装了:

linux-virt-dev

制作菜单配置所需:

ncurses
ncurses-dev
ncurses-lib

运行后make menuconfig,我想做make allor make kernel && make modules,但这样做会导致:

make[1]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'.  Stop.
make: *** [arch/x86/Makefile:213: archheaders] Error 2

我松散地遵循了这一点: https://unix.stackexchange.com/questions/606073/how-to-build-kernel-modules-in-alpine-3-12

我正在运行虚拟 Linux 内核,因此我进行了调整。我看到了这份文件;但是,内核编译通常不应该获取源代码,然后创建内核、模块、initrd 并完成吗?

https://wiki.alpinelinux.org/wiki/Custom_Kernel

相关内容