Re: [meta-lts-mixins][wrynose/linux-firmware][PATCH 2/3] linux-firmware: set DEFAULT_PREFERENCE to "-1"

Dmitry Baryshkov <[email protected]>
Newsgroups org.yoctoproject.lists.yocto-patches
Message-ID <CAO9ioeX6kqfTDyks2DVooEuvN8G08N_BkBg=LKR2N0kyF=FTBw@mail.gmail.com>
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.

-- 
With best wishes
Dmitry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.