Skip to contentSkip to conversation

bbappend files and "ERROR: no recipes available for"

DISCUSSION Markus Svilans 2 participants 3 messages Nov 1, 2013

lore
Share & tools
lore
#0 lore raw

Dear list,

I am working on a compact filesystem image, that contains firmware only for the network hardware on the motherboard.

Therefore, I created a linux-firmware.bbappend file, with the following contents:

Quoted 9 lines

# Cherrypick the firmware files that we need for our hardware

#FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

PACKAGES += "${PN}-rtl8168d-1"

FILES_${PN}-rtl8168d-1 = " \
/lib/firmware/rtl_nic/rtl8168d-1.fw \
"

However, running "bitbake linux-firmware" fails with this bbappend file present:

Quoted 3 lines

ERROR: No recipes available for:
/home/markus/yocto/genericx86-64-dora-10.0.0/meta-markus/recipes-kernel/linux-firmware/linux-firmware.bbappend
ERROR: Command execution failed: Exited with 1

Other bbappend files, such as for custom kernel config for linux-yocto, worked without complaints.

So far, I was following the instructions for using bbappend files here:
http://www.yoctoproject.org/docs/1.5/dev-manual/dev-manual.html#using-bbappend-files
http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html

From what I can see, I am setting up my linux-firmware.bbappend file consistently with the instructions.

What am I doing wrong here?

Thanks very much
Markus

#1 lore raw

Hi

Rename your bbappend-file to the exact name of the original recipe.

1.5 (dora) contains linux-firmware_git.bb in which case the bbappend should be named linux-firmware_git.bbappend.

Fredag den 1. november 2013 15:43:19 skrev Markus Svilans:

Quoted 50 lines

Dear list,

I am working on a compact filesystem image, that contains firmware only for the network hardware on the motherboard.

Therefore, I created a linux-firmware.bbappend file, with the following

contents:

Quoted 11 lines

# Cherrypick the firmware files that we need for our hardware

#FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

PACKAGES += "${PN}-rtl8168d-1"

FILES_${PN}-rtl8168d-1 = " \

  /lib/firmware/rtl_nic/rtl8168d-1.fw \

"

However, running "bitbake linux-firmware" fails with this bbappend file

present:

Quoted 4 lines

ERROR: No recipes available for:
/home/markus/yocto/genericx86-64-dora-10.0.0/meta-markus/recipes-kernel/li nux-firmware/linux-firmware.bbappend ERROR: Command execution failed:
Exited with 1

Other bbappend files, such as for custom kernel config for linux-yocto, worked without complaints.

So far, I was following the instructions for using bbappend files here:
http://www.yoctoproject.org/docs/1.5/dev-manual/dev-manual.html#using-bbappe
nd-files http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html

From what I can see, I am setting up my linux-firmware.bbappend file
consistently with the instructions.

What am I doing wrong here?

Thanks very much
Markus

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Signature · 1 line
Søren Holm
#2 lore raw

Hi Søren,

Thanks very much for the suggestion. It worked.

On the subject, I noticed you have to be careful when using "+=" and "=+" to append to variables in bb files. Here is my bbappend file, with the proper operator after the PACKAGES variable:

Quoted 7 lines

# Cherrypick the firmware files that we need:

PACKAGES =+ " ${PN}-rtl8168d-1"

FILES_${PN}-rtl8168d-1 = " \
/lib/firmware/rtl_nic/rtl8168d-1.fw \
"

Previously I had "+=", and my custom rtl8168 package file was not being generated.

Regards,
Markus

Quoted 56 lines · Søren Holm

Hi

Rename your bbappend-file to the exact name of the original recipe.

1.5 (dora) contains linux-firmware_git.bb in which case the bbappend should be named linux-firmware_git.bbappend.

Fredag den 1. november 2013 15:43:19 skrev Markus Svilans:

Quoted 48 lines

Dear list,

I am working on a compact filesystem image, that contains firmware only for the network hardware on the motherboard.

Therefore, I created a linux-firmware.bbappend file, with the following

contents:

Quoted 11 lines

# Cherrypick the firmware files that we need for our hardware

#FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

PACKAGES += "${PN}-rtl8168d-1"

FILES_${PN}-rtl8168d-1 = " \

   /lib/firmware/rtl_nic/rtl8168d-1.fw \

"

However, running "bitbake linux-firmware" fails with this bbappend file

present:

Quoted 4 lines

ERROR: No recipes available for:
/home/markus/yocto/genericx86-64-dora-10.0.0/meta-markus/recipes-kernel/li nux-firmware/linux-firmware.bbappend ERROR: Command execution failed:
Exited with 1

Other bbappend files, such as for custom kernel config for linux-yocto, worked without complaints.

So far, I was following the instructions for using bbappend files here:
http://www.yoctoproject.org/docs/1.5/dev-manual/dev-manual.html#using-bbappe
nd-files http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html

From what I can see, I am setting up my linux-firmware.bbappend file
consistently with the instructions.

What am I doing wrong here?

Thanks very much
Markus

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto