我正在尝试在 ubuntu 上构建一个自定义内核,我看到了这个文档,它说我需要安装软件包 https://help.ubuntu.com/community/Kernel/Compile
To start, you will need to install a few packages. The exact commands to install those packages depends on which release you are using:
Hardy (8.04):
sudo apt-get install linux-kernel-devel fakeroot kernel-wedge build-essential
Note: The package makedumpfile is not available in Hardy.
Lucid (10.04):
sudo apt-get install fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge
sudo apt-get build-dep linux
sudo apt-get install git-core libncurses5 libncurses5-dev libelf-dev asciidoc binutils-dev
sudo apt-get install linux-kernel-devel fakeroot kernel-wedge build-essential
Run Code Online (Sandbox Code Playgroud)
sudo = 允许用户以超级用户身份执行命令 …