kraj / meta-openwrt

OE/Yocto metadata layer for OpenWRT
MIT License
103 stars 78 forks source link

Added mainline linux support #111

Closed katyo closed 3 years ago

katyo commented 3 years ago

I have the following error with this fix when no any layers with mainline linux kernel in tree:

ERROR: No recipes in default available for:
  /home/builder/workspace/yocto/build-raspberrypi1/../meta-openwrt/recipes-kernel/linux/linux-mainline%.bbappend

I'm not so familiar with bitbake and oe but I would like to avoid similar issues in the future. Is where any way to fix config for any linux kernel variant?

kraj commented 3 years ago

Ideallly these bbappends should be perhaps applied in BSP layers itself, and we should perhaps add an override to identify openwrt here. I think we should revert this particularfix here.

You can use BB_DANGLINGAPPENDS_WARNONLY ="1" which turns this error into warning but it still it ugly.

katyo commented 3 years ago

Seems simple renaming linux-yocto%.bbappend to linux-%.bbappend should works. (No any other linux-%.bbappend required).

kraj commented 3 years ago

linux-% is too loose to match, there are non kernel recipes which start with linux- e.g. ./meta-openembedded/meta-networking/recipes-support/linux-atm/linux-atm_2.5.2.bb ./openembedded-core/meta/recipes-kernel/linux-firmware/linux-firmware_20210208.bb etc.

katyo commented 3 years ago

Hmm, really. But I wouldn't like to apply such fixes via configuration.