← Back to team overview

kernel-packages team mailing list archive

[Bug 1492939] [NEW] Enhancement request: please document how to build kernel in PPA

 

Public bug reported:

Hi,

In the process of working around an issue that has appeared in the linux
kernel after the patch series "convert host_busy to atomic_t"  (see bug
1451277), I would like to compile kernel deb packages that work around
the issue in a PPA, using patches that appeared on the LKML.

Unfortunately, it is unclear to me how to build a kernel in a PPA.

Simply taking the kernel source package, applying the patch, rebuilding
the source package and uploading to the PPA fails to build in the PPA
(due to ABI checks, I believe).

I have not been able to find any up to date instruction on how to create
a kernel source package with just a trivial patch on top of the current
ubuntu kernel and build it in a PPA.

- Instructions in https://wiki.ubuntu.com/Kernel/Dev/KernelBuildScripts
do not seem recent and appear to involve much more than what is needed
for my case. Most important, they fail at the invocation of the build-
mkppa command.

- Instructions in http://ubuntuforums.org/showthread.php?t=1682345 seem
to work, but they are very unofficial and look like black magic.
Specifically, what are those parameters supposed to do and why are they
needed? Why do these parameter make the built kernel a very different
size than the original one? A minor patch should not make this
difference.

Altogether, can up to date, official instructions for building the
Ubuntu kernel + a patch in a PPA be added somewhere?

Thanks!

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1492939

Title:
  Enhancement request: please document how to build kernel in PPA

Status in linux package in Ubuntu:
  New

Bug description:
  Hi,

  In the process of working around an issue that has appeared in the
  linux kernel after the patch series "convert host_busy to atomic_t"
  (see bug 1451277), I would like to compile kernel deb packages that
  work around the issue in a PPA, using patches that appeared on the
  LKML.

  Unfortunately, it is unclear to me how to build a kernel in a PPA.

  Simply taking the kernel source package, applying the patch,
  rebuilding the source package and uploading to the PPA fails to build
  in the PPA (due to ABI checks, I believe).

  I have not been able to find any up to date instruction on how to
  create a kernel source package with just a trivial patch on top of the
  current ubuntu kernel and build it in a PPA.

  - Instructions in
  https://wiki.ubuntu.com/Kernel/Dev/KernelBuildScripts do not seem
  recent and appear to involve much more than what is needed for my
  case. Most important, they fail at the invocation of the build-mkppa
  command.

  - Instructions in http://ubuntuforums.org/showthread.php?t=1682345
  seem to work, but they are very unofficial and look like black magic.
  Specifically, what are those parameters supposed to do and why are
  they needed? Why do these parameter make the built kernel a very
  different size than the original one? A minor patch should not make
  this difference.

  Altogether, can up to date, official instructions for building the
  Ubuntu kernel + a patch in a PPA be added somewhere?

  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1492939/+subscriptions


Follow ups