无法构建 Ubuntu 内核:为什么“make mrproper”摆脱 debian 目录?如何在没有 debian/rules 的情况下构建 Ubuntu/Trusty 内核?

Moi*_*pik 2 kernel modprobe 14.04

过去几周我一直在尝试构建 Ubuntu 内核。(实际上,我不需要内核,我只需要 snd-aloop.ko,它在 Ubuntu 14 服务器发行版中缺少,它在 12 中,但我找不到仅构建此模块的方法我正在运行的最新发布的 Ubuntu(Ubunty/trusty Linux vagrant-ubuntu-trusty-64 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:40:53 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux)

我按照官方 Ubuntu 网站上的说明进行操作并收到此错误

Using /home/vagrant/linux-3.13.0 as source for kernel
/home/vagrant/linux-3.13.0 is not clean, please run 'make mrproper'
in the '/home/vagrant/linux-3.13.0' directory.
Run Code Online (Sandbox Code Playgroud)

mrproper 所做的事情之一就是删除“debian”目录!

CLEAN   /home/vagrant/linux-3.13.0/debian/
CLEAN   .config
Run Code Online (Sandbox Code Playgroud)

如何在没有 debian 目录的情况下构建,因为官方 Ubuntu 文档告诉我使用 debian 目录中的“规则”脚本构建内核

 fakeroot debian/rules clean
 DEB_BUILD_OPTIONS=parallel=3 AUTOBUILD=1 fakeroot debian/rules binary-generic
Run Code Online (Sandbox Code Playgroud)

请注意,我在构建之前运行了 debian/rules clean,但对于 Mr. Proper 来说还不够干净!我会收到这条消息:

/home/vagrant/linux-3.13.0 is not clean, please run 'make mrproper'
Run Code Online (Sandbox Code Playgroud)

除了设置 .config 文件以匹配我正在运行的系统之外,我没有对源树做任何事情。我真正想要的只是一个可以加载到我的系统上的 snd-aloop.ko。为什么 Ubuntu 这么烂?

Fra*_*ank 5

我只是一遍又一遍地遇到同样的错误,并且很生气。事实证明,如果您将内核配置 .config 复制到根目录,这就是导致问题的原因。源根目录中不应有 .config 文件。

您必须改为运行fakeroot debian/rules editconfigs并编辑配置文件以获得正确的拱形结构。

使用这些说明:https : //wiki.ubuntu.com/Kernel/BuildYourOwnKernel