How to create linux-libc-dev .deb when building 5.13 kernel?

in flag

Our turnkey application that runs on 20.04 requires the 5.13 kernel and the headers in that version's linux-libc-dev package that are installed under /usr/include/linux. It also requires a custom change to one of those header files. I have downloaded, built, installed, and am running the 5.13 kernel just fine on our target (amd64) VM. I can see the correctly modified header file in the source tree under debian/linux-libc-dev/usr/include/linux but the build system never creates the Debian package.

I can see special-case code in debian/rules and other makefiles relating to linux-libc-dev. I think the fact that I'm building the (default) hwe-5.13 flavor, rather than "master" (whatever that means in this context), may be why the linux-libc-dev .deb is not being built.

What do I need to do to build this package?

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.