Commit Graph

73 Commits

Author SHA1 Message Date
Stefan Bader
0a29860bb2 UBUNTU: debian/dkms-versions -- update from kernel-versions (main/2022.07.11)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2022-07-12 10:49:16 +02:00
Stefan Bader
6b1cbf7730 UBUNTU: debian/dkms-versions -- update from kernel-versions (main/2022.05.30)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2022-06-15 14:12:53 +02:00
You-Sheng Yang (vicamo)
be1c8f6701 UBUNTU: [Packaging] drop do_<mod> arch specific configs
BugLink: https://bugs.launchpad.net/bugs/1969434

They should been assigned automatically based on the latest
dkms-versions.

Also disable building any dkms for mainline builds.

Signed-off-by: You-Sheng Yang (vicamo) <vicamo.yang@canonical.com>
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
2022-06-15 14:12:51 +02:00
You-Sheng Yang (vicamo)
3fcc97ecd6 UBUNTU: [Packaging] support standalone dkms module builds
BugLink: https://bugs.launchpad.net/bugs/1969434

Signed-off-by: You-Sheng Yang (vicamo) <vicamo.yang@canonical.com>
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
2022-06-15 14:12:51 +02:00
Po-Hsu Lin
57fb8bb1c6 UBUNTU: [Debian] Use kernel-testing repo from launchpad
BugLink: https://bugs.launchpad.net/bugs/1968016

Reflect the change with kernel-testing repo moved from kernel.ubuntu.com
to launchpad, where we host all of our testing tools.

Use shallow clone to save some bandwidth / time.

Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Francis Ginther <francis.ginther@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-05-20 14:41:31 +02:00
Stefan Bader
5088a41928 UBUNTU: debian/dkms-versions -- update from kernel-versions (main/2022.04.18)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2022-05-05 11:44:35 +02:00
Paolo Pisati
57edaa32f2 Revert "UBUNTU: [Packaging] Rotate to 2021v1 signing key"
This reverts commit 3263c8d046.

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-03-25 10:44:25 +01:00
Dimitri John Ledkov
3263c8d046 UBUNTU: [Packaging] Rotate to 2021v1 signing key
BugLink: https://bugs.launchpad.net/bugs/1964990

Revoke 2017, 2018, 2019 signing certificates for kexec/kdump
purposes.

2012 signing certificate was already revoked for kexec/kdump purposes.
After this patch is applied, certificates corresponding to CRL serials
01, 02, 03, 04 will not be usable by this kernel for kexec/kdump
purposes. This patch prevents this kernel to kexec/kdump using kernels
signed by those certifictes when lockdown is in place.

05 Ubuntu Core 2019 signing certificate is not included as revoked, as
that certificate signs kernel.efi apps only which linux doesn't know
not know how to use with kexec/kdump.

Kernels that include this patch should be routed via 2021v1 signing,
to preserve kexec/kdump functionality under lockdown.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-03-22 16:28:45 +01:00
Dimitri John Ledkov
cc71cafc72 UBUNTU: [Packaging] Always catch errors in dkms-build scripts
Enforce `set -e` execution of the dkms-build scripts, even when
overall SHELL is not set to `bash -e`. This enforces that dkms-build
scripts catch errors, even when building without SHELL variable, like
it is done by the LRM packages.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-03-15 17:12:29 +01:00
Dimitri John Ledkov
8f5cefee04 UBUNTU: [Packaging] Fix bashism in dkms-build script
dkms-build script uses bashism variable and test comparison, replace
them with dash compatible invocations. This allows using dkms-build
scripts without SHELL variable set to "bash -e", like it is done by
LRM packages.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-03-15 17:12:22 +01:00
Dimitri John Ledkov
eda3c38bc9 UBUNTU: [Packaging] mark dkms-build-configure--zfs executable
Mark dkms-build-configure--zfs script executable, such that one
doesn't need to call it with an explicit shell.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-03-15 17:10:53 +01:00
Paolo Pisati
9bf7918c08 UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-03-11 11:21:44 +01:00
Andy Whitcroft
e60a40f971 UBUNTU: [Packaging] resync dkms-build{,--nvidia-N} from LRMv5
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andy Whitcroft <apw@canonical.com>
2022-03-10 11:52:56 +00:00
Dimitri John Ledkov
bc17312239 UBUNTU: [Packaging] use xz compression for ddebs
ddebs are huge in size, and rarely used. Keep them xz compressed.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-02-11 11:56:47 +01:00
Dimitri John Ledkov
d7f876926a UBUNTU: [Packaging] do not use compression for image packages
linux-image-ABI packages contain compressed content only (vmlinuz,
changelog) and thus the deb does not benefit at all from being
recompressed again. Only copyring file is compressed. We can actually
avoid shipping /doc/ at all, by symlinking it to the modules package
provided /doc/.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-02-11 11:56:47 +01:00
Dimitri John Ledkov
d7b9ec4e71 UBUNTU: [Packaging] use default zstd compression
Revert "UBUNTU: [Packaging] enforce xz compression for debs"

This reverts commit 45da4d72de.

The previous commit incorrectly stated that jammy dpkg default has
switched from xz to zstd. This change was done late in impish
cycle. [1] It also incorrectly states that there are no evident benefits
for the kernel packages to use zstd.

It is correct that zstd compression may require more
resources. However, the decompression speed and decompression memory
requirements are a lot faster. The choice to switch from xz to zstd by
default in Ubuntu was done to speed up installation and upgrade of all
packages, at the expense of slightly larger download sizes.

If we do want to futher optimize compression methods it should
probably be done on per subpackage type. For example, linux-image-ABI
already contains compressed kernel image and not much else, we can
choose to not compress that deb at all with compression method
none. Debug symbols are usually rarely installed, thus it might make
sense to keep them small and thus choose compress ddebs with
xz. However modules and tools should remain compressed with zstd.

[1] https://launchpad.net/ubuntu/+source/dpkg/1.20.9ubuntu2

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-02-11 11:56:47 +01:00
Paolo Pisati
429f6063e1 UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-01-28 17:12:24 +01:00
Juerg Haefliger
753a8f4332 UBUNTU: [Packaging] Add list of built-in firmwares to the ABI
Built-in modules can require firmware so add a new file
<version>/fwinfo.builtin to the buildinfo package that contains that list.

Signed-off-by: Juerg Haefliger <juergh@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2022-01-21 15:49:22 +01:00
Juerg Haefliger
7b77836036 UBUNTU: [Packaging] getabis: Add fwinfo.builtin to the ABI
Newer buildinfo packages provide a fwinfo.builtin file. Process that
file when downloading the ABIs.

Signed-off-by: Juerg Haefliger <juergh@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2022-01-21 15:49:22 +01:00
Andrea Righi
ead56502f8 UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2022-01-08 10:57:22 +01:00
Andrea Righi
e57dcd3710 UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2022-01-04 10:59:49 +01:00
Andrea Righi
45da4d72de UBUNTU: [Packaging] enforce xz compression for debs
In jammy we switched from xz compression to zstd compression for debs.
This change seems to have increased a lot the build time without giving
any evident benefit for the kernel packages.

Explicitly enforce xz compression for kernel debs and ddebs to prevent
timeout issues during the build.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2022-01-04 10:59:49 +01:00
You-Sheng Yang
1f72c364cd UBUNTU: update dkms package versions
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2022-01-04 09:56:13 +01:00
You-Sheng Yang
b29295c96c UBUNTU: support v4l2loopback dkms build
BugLink: https://bugs.launchpad.net/bugs/1938531

Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2022-01-04 09:56:13 +01:00
Juerg Haefliger
8e7fa8fac2 UBUNTU: [Packaging] abi-check: Process modules.builtin
The previous commit introduced a new file modules.builtin that lists all
built-in modules. Take the content of that file into account during the ABI
check so that modules that changed from 'm' to 'y' don't result in a build
failure.

Signed-off-by: Juerg Haefliger <juergh@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2022-01-04 09:49:13 +01:00
Juerg Haefliger
025b082610 UBUNTU: [Packaging] Add list of built-in modules to the ABI
Add a new file <version>/modules.builtin to the buildinfo package that
lists all the built-in modules. This will be used by the ABI checker to
not complain about missing modules if module configs have changed from
'm' to 'y'.

Signed-off-by: Juerg Haefliger <juergh@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2022-01-04 09:49:13 +01:00
Andrea Righi
f93bbeb069 UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2022-01-04 09:48:56 +01:00
Juerg Haefliger
31d65dcaf1 UBUNTU: [Packaging] Rewrite debian/scripts/module-check in Python
Rewrite the module-check script in Python to get us one step closer to
dropping Perl as an Ubuntu kernel build dependency. While at it, remove
some of the rather 'interesting' comments printed to the console.

Signed-off-by: Juerg Haefliger <juergh@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2022-01-04 09:48:42 +01:00
Paolo Pisati
e289c1bd11 UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2021-12-07 07:32:25 +01:00
Dimitri John Ledkov
807e0ec087 UBUNTU: [Packaging] Drop unused d-i build-deps and packaging
Unused since 20.04.1 release, and no udebs are built in Ubuntu since
21.04 release.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2021-12-07 07:32:22 +01:00
Juerg Haefliger
71d05981fb UBUNTU: [Packaging] Rewrite debian/scripts/misc/insert-changes.pl in Python
Rewrite the insert-changes.pl script in Python to get us one step closer
to dropping Perl as an Ubuntu kernel build dependency.

Signed-off-by: Juerg Haefliger <juergh@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2021-12-07 07:32:20 +01:00
Paolo Pisati
24c02ffa17 UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2021-12-07 07:32:20 +01:00
Juerg Haefliger
485717d9fc UBUNTU: [Packaging] Replace Perl oneliner with Bash statements
Replace the only Perl oneliner in the Ubuntu Makefiles with Bash
statements. This brings us one step closer to dropping Perl as a build
dependency for the Ubuntu kernel.

Signed-off-by: Juerg Haefliger <juergh@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2021-12-07 07:32:20 +01:00
Marcelo Henrique Cerri
7660be452f UBUNTU: [Packaging] Add fips-checks as part of finalchecks
BugLink: https://bugs.launchpad.net/bugs/1945989

Call fips-checks as part of the debian target "finalchecks". That will
ensure the checks are executed during build and during cranky close.

Kernels need to enable this check via do_fips_checks.

Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2021-12-07 07:32:20 +01:00
Dimitri John Ledkov
5eac1296a8 UBUNTU: [Packaging] Add system trusted and revocation keys final check
BugLink: https://bugs.launchpad.net/bugs/1947174

If certificates are packaged, the config keys to use them must be
enabled otherwise boot testing will fail. This check ensures early
detection of incorrect configuration when rebasing derivative kernels.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2021-12-07 07:32:20 +01:00
Juerg Haefliger
bbf647bdc3 UBUNTU: [Debian] Remove old and unused firmware helper scripts
There are scripts in the kernel tree that supposedly help with managing
firmware files/blobs but they haven't been used nor needed in ages so get
rid of them.

Signed-off-by: Juerg Haefliger <juergh@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2021-12-07 07:32:20 +01:00
Paolo Pisati
7564134320 UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2021-12-07 07:32:18 +01:00
Paolo Pisati
1240c8ad7a UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2021-12-07 07:32:16 +01:00
Andy Whitcroft
c3811a2371 UBUNTU: debian/dkms-versions -- update from kernel-versions (main/master)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andy Whitcroft <apw@canonical.com>
2021-12-07 07:32:14 +01:00
Dimitri John Ledkov
4be5b52c72 UBUNTU: [Packaging] remove remaining references to ports
Remove remaining few, unused, references to family=ports builds. Also
remove the maintainer targets to operate on ports.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Juerg Haefliger <juergh@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2021-12-07 07:32:14 +01:00
Paolo Pisati
df23ba736c UBUNTU: [Packaging] NVIDIA: transition -460 and -465 to -470, transition -460-server to -470-server
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2021-12-07 07:32:14 +01:00
Paolo Pisati
b268a43a02 UBUNTU: update dkms package versions
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2021-12-07 07:32:14 +01:00
Paolo Pisati
3789efb058 UBUNTU: [Packaging] NVIDIA -- Add the NVIDIA 470 driver
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2021-12-07 07:32:14 +01:00
Paolo Pisati
314dd05e46 UBUNTU: update dkms package versions
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2021-12-07 07:32:10 +01:00
Paolo Pisati
9bb68df8ca UBUNTU: update dkms package versions
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2021-12-07 07:32:09 +01:00
Paolo Pisati
6e55b9cc70 UBUNTU: update dkms package versions
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2021-12-07 07:32:09 +01:00
Dimitri John Ledkov
9075b83ae9 UBUNTU: [Packaging] Revoke 2012 UEFI signing certificate as built-in
BugLink: https://bugs.launchpad.net/bugs/1932029
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2021-12-07 07:32:08 +01:00
Dimitri John Ledkov
8a1513094a UBUNTU: [Packaging] build canonical-revoked-certs.pem from branch/arch certs
BugLink: https://bugs.launchpad.net/bugs/1932029
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2021-12-07 07:32:08 +01:00
Stefan Bader
993129be45 UBUNTU: [Packaging] Fix ODM support in actual build
BugLink: https://bugs.launchpad.net/bugs/1912789

The config update was working with the conditional entry but the actual
build is different and was just ignoring everything.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
(cherry picked commit from 198971108d5dfe12b9846bf0d115accc3d1c3fe8
focal)
Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2021-12-07 07:32:07 +01:00
Stefan Bader
e2655225df UBUNTU: [Packaging] Add support for ODM drivers
BugLink: https://bugs.launchpad.net/bugs/1912789

We want to be able to selectively turn on ODM driver support for those
kernels/arches we have to but otherwise not inherit this to other
derivatives. This is done by a new config option which we will have to
depend on in the new drivers config options. Support is toggled by
changing a makefile rule variable. The new config option will be hidden
as long as not at least one of the arches supported turns on the rule
variable.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
(cherry picked from commit 4aeffc246531a666c1fad1925ebf1a6e68a704e4
focal)
Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2021-12-07 07:32:07 +01:00