[UNSTABLE][PATCH] UBUNTU: [Packaging] Support skipped dkms modules
Dimitri John Ledkov
dimitri.ledkov at canonical.com
Thu Dec 8 16:41:58 UTC 2022
Very odd. Are the Nvidia modules actually building successfully or they too
need skipping? Would not think that 510 has support for 6.0 yet, does it?
On Thu, 8 Dec 2022, 16:31 Timo Aaltonen, <tjaalton at ubuntu.com> wrote:
> Dimitri John Ledkov kirjoitti 19.10.2022 klo 19.03:
> > In recent releases we have fixed up most dkms modules to correctly
> > detect, and skip building dkms modules when compiling against
> > incompatible kernels. For example, trying to build a WiFi driver
> > against a kernel without 80221 config enabled, results in dkms
> > returning error code 9 skipped build, due to incompatibility. Our DKMS
> > autopkgtests already honor such cases, and mark test results as
> > passing for skipped {kernel, dkms-module} combinations.
> >
> > Improve kernel's dkms-build script to distinguish failed versus
> > skipped builds, by propagating exact status code. For standalone
> > skipped dkms modules, skip generating an empty deb packages.
> >
> > Also do not fail over missing make.log for the skipped dkms builds,
> > which do not have one.
> >
> > This change will enable us to use a static list of dkms-versions
> > across all kernels, without need to do anything special for cases were
> > a vendored dkms module is declared incompatible in dkms.conf for a
> > given kernel.
> >
> > For example, v4l2loopback incompatible with cloud kernels that do not
> > enable CONFIG_VIDEO, or backports-iwlwifi incompatible with kvm
> > kernel.
> >
> > This patch is tested against working, skipepd, and FTBFS dkms modules,
> > which correctly built the full kernel, skipped some dkms modules, or
> > failed the overall build.
> >
> > Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
> > ---
> > debian/rules.d/2-binary-arch.mk | 3 ++-
> > debian/scripts/dkms-build | 5 ++---
> > 2 files changed, 4 insertions(+), 4 deletions(-)
>
> Hi, this breaks building lrm:
>
>
> https://launchpadlibrarian.net/638018034/buildlog_ubuntu-jammy-amd64.linux-restricted-modules-oem-6.1_6.1.0-1002.2_BUILDING.txt.gz
>
>
> II: dkms-build override dkms-build--nvidia-N found, executing
> II: copying support files ...
> II: copying support files ... found
>
> /<<PKGBUILDDIR>>/__________dkms/headers/linux-headers-6.1.0-1002-oem/scripts/module.lds
> grep:
> /<<PKGBUILDDIR>>/__________dkms/build/nvidia/510.108.03/build/make.log:
> No such file or directory
> sha256sum: '*.ko': No such file or directory
>
> and after reverting this back to normal:
>
> II: dkms-build override dkms-build--nvidia-N found, executing
> II: copying support files ...
> II: copying support files ... found
>
> /<<PKGBUILDDIR>>/__________dkms/headers/linux-headers-6.1.0-1002-oem/scripts/module.lds
> II: dkms-build build nvidia-510 complete
>
>
> --
> t
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20221208/884f6dc1/attachment.html>
More information about the kernel-team
mailing list