I found some instruction for Ubuntu:
- Code: Select all
$ sudo apt-get build-dep linux
$ apt-get source linux
$ VERSION=$(uname -r)
$ cd linux-${VERSION%%-*}
$ fakeroot debian/rules clean
$ fakeroot debian/rules binary-generic
$ cd ..
$ sudo dpkg -i linux*.deb
After the download part i have:
- Code: Select all
linux-4.15.0
linux_4.15.0-20.21.diff.gz
linux_4.15.0-20.21.dsc
linux_4.15.0.orig.tar.gz
And after fakeroot i have:
- Code: Select all
linux-cloud-tools-4.15.0-20-generic_4.15.0-20.21_amd64.deb
linux-headers-4.15.0-20-generic_4.15.0-20.21_amd64.deb
linux-image-unsigned-4.15.0-20-generic_4.15.0-20.21_amd64.deb
linux-modules-4.15.0-20-generic_4.15.0-20.21_amd64.deb
linux-modules-extra-4.15.0-20-generic_4.15.0-20.21_amd64.deb
linux-tools-4.15.0-20-generic_4.15.0-20.21_amd64.deb
In Debian i did:
- Code: Select all
$ sudo apt build-dep linux
$ apt source linux
$ fakeroot debian/rules clean
$ fakeroot debian/rules binary
But that gives me stuff like that:
- Code: Select all
linux-headers-5.9.0-0.bpo.5-common_5.9.15-1~bpo10+1_all.deb
linux-headers-5.9.0-0.bpo.5-common-rt_5.9.15-1~bpo10+1_all.deb
linux-source_5.9.15-1~bpo10+1_all.deb
linux-source-5.9_5.9.15-1~bpo10+1_all.deb
linux-support-5.9.0-0.bpo.5_5.9.15-1~bpo10+1_all.deb
linux-doc_5.9.15-1~bpo10+1_all.deb
linux-doc-5.9_5.9.15-1~bpo10+1_all.deb
What i need is the amd64 image.
In Ubuntu you use
- Code: Select all
fakeroot debian/rules binary-generic
But "binary-generic" does not exist in Debian?
What is the right way if you only need amd64?
And I'm right that i can build on a virtual machine and use that Kernel than on a real machine?