最好的方式應該是這一篇文章
不要再用什麼 fakeroot 去編了, 失敗率超高, 尤其是在 ARM 平台
https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
來個範例, 在 ARM64 上編了 4.10~4.17 其中幾個版本, 每次都成功
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git cd linux git checkout -b 4.17 v4.17 cp /boot/config-`uname -r` .config yes '' | make oldconfig make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-custom |
0 Comments.