diff mbox series

[SRU,focal/linux-meta-raspi,2/2] UBUNTU: [Config] raspi: Enable zfs modules for arm64

Message ID 20200622062317.11932-3-juergh@canonical.com
State New
Headers show
Series [SRU,focal/linux-raspi,1/2] UBUNTU: [Config] raspi: Enable zfs modules for arm64 | expand

Commit Message

Juerg Haefliger June 22, 2020, 6:23 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1884110

Signed-off-by: Juerg Haefliger <juergh@canonical.com>
---
 debian/control.d/raspi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefan Bader June 22, 2020, 8:23 a.m. UTC | #1
On 22.06.20 08:23, Juerg Haefliger wrote:
> BugLink: https://bugs.launchpad.net/bugs/1884110
> 
> Signed-off-by: Juerg Haefliger <juergh@canonical.com>
> ---
>  debian/control.d/raspi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/debian/control.d/raspi b/debian/control.d/raspi
> index e14488746499..82677aaa1f43 100644
> --- a/debian/control.d/raspi
> +++ b/debian/control.d/raspi
> @@ -9,7 +9,7 @@ Description: Raspberry Pi Linux kernel headers
>  Package: linux-image-raspi${variant:suffix}
>  Architecture: armhf arm64
>  Section: kernel
> -Provides: ${dkms:wireguard-linux-compat-modules}
> +Provides: ${dkms:wireguard-linux-compat-modules}, ${dkms:zfs-modules}
>  Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-raspi, linux-firmware
>  Description: Raspberry Pi Linux kernel image
>   This package will always depend on the latest Raspberry Pi Linux
> 
I have not looked yet, but normally this requires some changes to update-version
and debian/rules to keep debian/dkms-versions in sync with the kernel tree and
inject the versions into control files.

-Stefan
Juerg Haefliger June 23, 2020, 7:23 a.m. UTC | #2
On Mon, 22 Jun 2020 10:23:45 +0200
Stefan Bader <stefan.bader@canonical.com> wrote:

> On 22.06.20 08:23, Juerg Haefliger wrote:
> > BugLink: https://bugs.launchpad.net/bugs/1884110
> > 
> > Signed-off-by: Juerg Haefliger <juergh@canonical.com>
> > ---
> >  debian/control.d/raspi | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/debian/control.d/raspi b/debian/control.d/raspi
> > index e14488746499..82677aaa1f43 100644
> > --- a/debian/control.d/raspi
> > +++ b/debian/control.d/raspi
> > @@ -9,7 +9,7 @@ Description: Raspberry Pi Linux kernel headers
> >  Package: linux-image-raspi${variant:suffix}
> >  Architecture: armhf arm64
> >  Section: kernel
> > -Provides: ${dkms:wireguard-linux-compat-modules}
> > +Provides: ${dkms:wireguard-linux-compat-modules}, ${dkms:zfs-modules}
> >  Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-raspi, linux-firmware
> >  Description: Raspberry Pi Linux kernel image
> >   This package will always depend on the latest Raspberry Pi Linux
> >   
> I have not looked yet, but normally this requires some changes to update-version
> and debian/rules to keep debian/dkms-versions in sync with the kernel tree and
> inject the versions into control files.

I believe that logic is already present in update-version and debian/rules.

In update-version:

# Update things from the primary package.
for thing in \
        debian/dkms-versions \
        debian/scripts/misc/git-ubuntu-log
do
...


and in debian/rules:

$ grep zfs debian/rules 
dkms_zfs_linux_version=$(shell gawk '/^zfs-linux/ { print $$2; }' debian/dkms-versions)
gencontrol_flags += -Vdkms:zfs-modules="zfs-modules (= $(dkms_zfs_linux_version)),"


...Juerg
 
> -Stefan
>
diff mbox series

Patch

diff --git a/debian/control.d/raspi b/debian/control.d/raspi
index e14488746499..82677aaa1f43 100644
--- a/debian/control.d/raspi
+++ b/debian/control.d/raspi
@@ -9,7 +9,7 @@  Description: Raspberry Pi Linux kernel headers
 Package: linux-image-raspi${variant:suffix}
 Architecture: armhf arm64
 Section: kernel
-Provides: ${dkms:wireguard-linux-compat-modules}
+Provides: ${dkms:wireguard-linux-compat-modules}, ${dkms:zfs-modules}
 Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-raspi, linux-firmware
 Description: Raspberry Pi Linux kernel image
  This package will always depend on the latest Raspberry Pi Linux