Skip to contentSkip to conversation

How to manage linux-firmware recipe

DISCUSSION Mauro Ziliani 5 participants 7 messages Jun 11, 2025 – Jun 14, 2025

lore
Share & tools
lore
#0 lore raw

Hi all.

I'm working with kirkstone on ibase ib200 board (amd ryzen).

When I build a core-image-minimal image, I get an iso of 1,3GB.

1.0GB cames from linux-firmware recipe. I don't need al linx-firmware files.

How can I select some of all packages installed by linux-firmware?

I try with NO_GENERIC_LICENSE := "" but this doesn't work

Thanks all

  MZ

#1 lore raw

Hi Mauro,
are you using any particular layer providing those firmware? --
Marco

#2 lore raw

Hi Marco.

The "master" recipe comes from poky

./poky/meta/recipes-kernel/linux-firmware/linux-firmware_20240909.bb

In my layer I have a linux-firmware_%.bbappend, where I tried to change the content of ON_GENERIC_LICENSE, to remove some firmware.

./meta-mz/recipes-kernel/linux-firmware/linux-firmware_%.bbappend

No other layers push linux-firmwar recipe.

The bsp uses this layers

BBLAYERS ?= " \
  ${BSPDIR}/sources/poky/meta \
  ${BSPDIR}/sources/poky/meta-poky \
"

BBLAYERS += " \
  ${BSPDIR}/sources/meta-openembedded/meta-oe \
  ${BSPDIR}/sources/meta-openembedded/meta-python \
  ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
  ${BSPDIR}/sources/meta-openembedded/meta-networking \
  ${BSPDIR}/sources/meta-openembedded/meta-initramfs \
  ${BSPDIR}/sources/meta-openembedded/meta-filesystems \
"

BBLAYERS += " \
  ${BSPDIR}/sources/meta-dpdk \
  ${BSPDIR}/sources/meta-amd/meta-amd-distro \
  ${BSPDIR}/sources/meta-amd/meta-amd-bsp \
"

BBLAYERS += " \
  ${BSPDIR}/sources/meta-virtualization \
"

BBLAYERS += " \
  ${BSPDIR}/sources/meta-ibase/meta-ibase-bsp \
  ${BSPDIR}/sources/meta-ibase/meta-ibase-distro \
"

BBLAYERS += " \
  ${BSPDIR}/sources/meta-qt5 \
  ${BSPDIR}/sources/meta-flutter \
  ${BSPDIR}/sources/meta-flutter/meta-flutter-apps \
"

BBLAYERS += " \
  ${BSPDIR}/sources/meta-mz \
"

Greetings

  MZ

Il 12/06/25 09:05, Marco Cavallini via lists.yoctoproject.org ha scritto:

Quoted 4 lines

Hi Mauro,
are you using any particular layer providing those firmware? --
Marco

#3 lore raw

Hi Mauro,

Quoted 7 lines · Mauro Ziliani via lists.yoctoproject.org

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Hi Marco.

The "master" recipe comes from poky

Quoted 8 lines

./poky/meta/recipes-kernel/linux-firmware/linux-firmware_20240909.bb

In my layer I have a linux-firmware_%.bbappend, where I tried to change the content of ON_GENERIC_LICENSE, to remove some firmware.

./meta-mz/recipes-kernel/linux-firmware/linux-firmware_%.bbappend

Just install the package(s) you need instead of linux-firmware, e.g. linux-firmware-iwlwifi-7260. If you know which files you need, you can use

oe-pkgdata-util find-path '*/your-file.bin'

and it'll tell you in which package it is.

Cheers,
Quentin

#4 lore raw

Hi Mauro/Marci,

For our Pine64 devices we use something like this:

https://github.com/webOS-ports/meta-pine64-luneos/blob/scarthgap/recipes-kernel/linux/linux-firmware-pine64_1.0.bb#L20 where we use part of linux-firmware and some custom firmware binaries.

But as always there are multiple ways to achieve what you want.

Best regards,
Herman

Quoted 36 lines · Quentin Schulz via lists.yoctoproject.org

Hi Mauro,

Quoted 7 lines · Mauro Ziliani via lists.yoctoproject.org

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Hi Marco.

The "master" recipe comes from poky

Quoted 8 lines

./poky/meta/recipes-kernel/linux-firmware/linux-firmware_20240909.bb

In my layer I have a linux-firmware_%.bbappend, where I tried to change the content of ON_GENERIC_LICENSE, to remove some firmware.

./meta-mz/recipes-kernel/linux-firmware/linux-firmware_%.bbappend

Just install the package(s) you need instead of linux-firmware, e.g. linux-firmware-iwlwifi-7260. If you know which files you need, you can use

oe-pkgdata-util find-path '*/your-file.bin'

and it'll tell you in which package it is.

Cheers,
Quentin

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#65509): https://lists.yoctoproject.org/g/yocto/message/65509
Mute This Topic: https://lists.yoctoproject.org/mt/113594047/3618673
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw
In reply to Mauro Ziliani
Quoted 2 lines · Mauro Ziliani via lists.yoctoproject.org

In my layer I have a linux-firmware_%.bbappend, where I tried to change the content of ON_GENERIC_LICENSE, to remove some firmware.

Changing NO_GENERIC_LICENSE will simply change the licenses of the packages, and won’t have any impact on the contents of the packages or what gets installed.

The usual solution here is to:
1) stop installing the main linux-firmware package and just install specific subpackages such as linux-firmware-foobar/
2) if needed, use a bbappend (or send a patch) to split more pieces of firmware into separate packages

Ross