agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
520 stars 407 forks source link

linux-raspberrypi.inc: Weakly assign COMPATIBLE_MACHINE #1134

Closed kraj closed 1 year ago

kraj commented 1 year ago

COMPATIBLE_MACHINE is expected to be overridden by linux-raspberrypi-v7.inc for linux-raspberrypi-v7 machine this however does not work because linux-raspberrypi-v7_5.15.bb includes linux-raspberrypi-v7.inc and linux-raspberrypi.inc ( via linux-raspberrypi_5.15.bb) and setting from linux-raspberrypi.inc takes precedence over one coming from linux-raspberrypi-v7.inc as a result linux-raspberrypi-v7 kernel recipe becomes available for raspberrypi4 machine as well, this recipe however needs certain defines e.g.RASPBERRYPI_v7_KERNEL which are only available in raspberrypi-armv7.conf

Signed-off-by: Khem Raj raj.khem@gmail.com