Re: [meta-lts-mixins][wrynose/linux-firmware][PATCH 2/3] linux-firmware: set DEFAULT_PREFERENCE to "-1"
Jose Quaresma <[email protected]>
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <CADWMC-Yd0=mb0bfMh2LqmzXgHJE+KCpNiWSR2r3qaQAyf8tT8w@mail.gmail.com> |
On Thu, Jun 18, 2026 at 11:31 AM Dmitry Baryshkov < [email protected]> wrote: > On Thu, 18 Jun 2026 at 13:29, Jose Quaresma > <[email protected]> wrote: > > > > Hi Dmitry, > > > > On Wed, Jun 17, 2026 at 8:21 PM Dmitry Baryshkov < > [email protected]> wrote: > >> > >> In order to make this layer Yocto Project Compatible, the layer should > >> not provide new versions of packages by default. The easiest way to > >> achieve it is to set DEFAULT_PREFERENCE to "-1" for the new versions of > >> the recipes. > >> > >> Signed-off-by: Dmitry Baryshkov <[email protected]> > >> --- > >> recipes-kernel/linux-firmware/linux-firmware_20260519.bb | 3 +++ > >> 1 file changed, 3 insertions(+) > >> > >> diff --git a/recipes-kernel/linux-firmware/linux-firmware_20260519.bb > b/recipes-kernel/linux-firmware/linux-firmware_20260519.bb > >> index 7eb9bf35fbe3..f2cd8737f253 100644 > >> --- a/recipes-kernel/linux-firmware/linux-firmware_20260519.bb > >> +++ b/recipes-kernel/linux-firmware/linux-firmware_20260519.bb > >> @@ -3692,3 +3692,6 @@ INSANE_SKIP:${PN} = "already-stripped" > >> > >> # No need to put firmware into the sysroot > >> SYSROOT_DIRS_IGNORE += "${firmwaredir}" > >> + > >> +# Don't prefer it by default > >> +DEFAULT_PREFERENCE = "-1" > > > > > > With this change this recipe will no longer be used by layer users. > > Until now, to use the provided linux-firmware recipe, all you had to do > was add the layer. > > > > I would prefer to continue having something similar where no additional > configuration > > is needed to use this layer. > > This exactly contradicts with the Yocto Project Compatibility > requirements. The layer should not be changing the default > configuration. > After several tests, I couldn't find another way to do this. I'm going to introduce a new variable to control the choice of linux-firmware. Jose > > -- > With best wishes > Dmitry >