How does linux-headers get packaged?
Stefan Bader
stefan.bader at canonical.com
Mon Aug 21 12:50:59 UTC 2017
On 21.08.2017 12:49, Joel Fernandes wrote:
> Hi,
> After much digging I could find the recipe for Ubuntu's linux-headers
> packages (linux-headers-4.4.0-83 on Xenial) uses.
>
> I believe these headers are not the same ones that come from 'make
> headers_install' in the kernel sources, but are specially packaged
> version of the ever-changing kernel API and used for kernel module
> building.
>
> Could anyone point me to the recipe/scripts used for this?
If you have the debianized source (./debian[.master] exists), run
fakeroot debian/rules clean
fakeroot debian/rules binary-headers
which generates the common headers (*all*deb)
You need the specific headers generated by
fakeroot debian/rules binary-(generic|lowlatency)
as well.
Or just do a complete build with
[depending on where you get the source from maybe needs a
fakeroot debian/rules clean
before]
dpkg-buildpackage -b -uc -us
which takes long but gets you all packages generated by a kernel
build. The dpkg-buildpackage variant also has the advantage that
it will check and report build-dependencies.
-Stefan
>
> thanks a lot!
>
> -Joel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20170821/4df83f3b/attachment.sig>
More information about the kernel-team
mailing list