我正在尝试从 Mantic 上的 Ubuntu 软件包源构建内核。到目前为止,我已经完成了以下操作:
$ sudo apt-get build-dep linux linux-image-generic
$ sudo apt-get install libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf llvm
$ apt-get source linux-image-unsigned-$(uname -r)
# Edited debian.master/changelog to set a local version
$ LANG=C fakeroot debian/rules clean
$ LANG=C fakeroot debian/rules binary-headers binary-generic binary-perarch
请注意apt-get build-dep linux-image-$(uname -r)
(正如文档中所建议的)失败,因为linux-generate
当前无法安装,但这似乎安装了所有必需的构建工具。
失败原因:
Symlinking and copying Rust files for generic...
ln -s ../linux-lib-rust-6.5.0-14-generic/rust /home/tkcook/linux-6.5.0/debian/linux-headers-6.5.0-14-generic/usr/src/linux-headers-6.5.0-14-generic/rust
Debug: module-check-generic
debian/scripts/checks/module-check "generic" \
"/home/tkcook/linux-6.5.0/debian.master/abi/amd64" "/home/tkcook/linux-6.5.0/debian.master/__abi.current/amd64"
II: Checking modules for generic...
Reading modules to ignore...read 0 modules.
Reading new modules...read 6595 modules.
Reading old modules...read 6598 modules.
II: Checking for modules changes...
MISS : spl
MISS : v4l2loopback
MISS : zfs
EE: Missing modules
make: *** [debian/rules.d/4-checks.mk:10: module-check-generic] Error 1
我不太清楚这里发生了什么。它与哪个模块列表进行比较?为什么它会抱怨那些模块缺失?它们为什么会缺失?
答案1
在以下位置创建 ignore.modulesABI 目录:
touch debian.master/abi/amd64/ignore.modules
就我而言,这是有效的。