sudo apt-get install kernel-package fakeroot build-essential libssl-dev git
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo sed -i 's/# deb-src/deb-src/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get build-dep linux-image-$(uname -r)
apt-get source linux-image-$(uname -r)
或
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-<release codename>.git
chmod a+x debian/rules
chmod a+x debian/scripts/* chmod a+x debian/scripts/misc/* fakeroot debian/rules binary-headers binary-generic binary-perarch //quicker build 或 fakeroot debian/rules binary //if you need linux-tools or lowlatency kernel,run instead
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。