APPLIED: [Unstable/Noble PATCH 0/1] Fix annotation mismatch when bash is used (plan-B: remove arch-has-odm-enabled.sh)

Andrea Righi andrea.righi at canonical.com
Sat Mar 9 06:40:08 UTC 2024


On Fri, Mar 01, 2024 at 06:16:34PM +0900, Masahiro Yamada wrote:
> 
> If /bin/sh is a symlink to /bin/bash, the annotation check fails
> because debian/scripts/misc/arch-has-odm-enabled.sh always fails.
> 
> I am not sure if debian/scripts/misc/arch-has-odm-enabled.sh is
> necessary in the first place.
> 
> It was introduced by the following commit.
> 
> I may have missed something, but I could not understand what
> makes CONFIG_UBUNTU_ODM_DRIVERS so special.
> 
> Devivative kernels can inherit CONFIG options
> (by including annotations, or it should have been possible
> with older config fragments).
> 
> ---------------------->8--------------------------
> commit e2655225df60595146886c0f0d75073df5f0db32
> Author: Stefan Bader <stefan.bader at canonical.com>
> Date:   Fri Jun 11 18:01:28 2021 +0800
> 
>     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 at canonical.com>
>     Acked-by: Marcelo Henrique Cerri <marcelo.cerri at canonical.com>
>     Acked-by: Andy Whitcroft <apw at canonical.com>
>     Signed-off-by: Kelsey Skunberg <kelsey.skunberg at canonical.com>
>     (cherry picked from commit 4aeffc246531a666c1fad1925ebf1a6e68a704e4
>     focal)
>     Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao at canonical.com>
>     Acked-by: Stefan Bader <stefan.bader at canonical.com>
>     Acked-by: Kleber Sacilotto de Souza <kleber.souza at canonical.com>
>     Signed-off-by: Andrea Righi <andrea.righi at canonical.com>
> ---------------------->8--------------------------

I would say let's go with this plan and see if anything breaks.

Honestly I don't expect any breakage, this seems very reasonable and if
something else is really expecting to find the script of the rule
variable, it should be fixed to use the config instead.

Therefore, applied to noble/linux and noble/linux-unstable.

Thanks,
-Andrea



More information about the kernel-team mailing list