Skip to contentSkip to conversation

ffa-debugfs-mod: Do not build for rpi machines

PATCH In review Khem Raj 2 participants 9 messages Feb 2, 2022 – Feb 8, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 ffa-debugfs-mod: Do not build for rpi machines

The module can not be compiled without patching kernel and rpi machines use linux-raspberrypi and are either arm32 or arm64 machines, so this module tries to build in world envs

This helps meta-arm to live in multi-BSP envs

---
 meta-arm/recipes-kernel/ffa-debugfs/ffa-debugfs-mod_2.1.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-arm/recipes-kernel/ffa-debugfs/ffa-debugfs-mod_2.1.0.bb +1 -0
index 2db8afc..93f5f02 100644
@@ -29,3 +29,4 @@ do_install:append() {
 }
 
 COMPATIBLE_HOST = "(arm|aarch64).*-linux"
+COMPATIBLE_HOST:rpi = "null"
Signature · 1 line
2.35.1
#1 lore raw

If this needs kernel patches then the base recipe should set COMPATIBLE_HOST to invalid and then machines opt-in by enabling it with bbappends in meta-arm-bsp.

Ross

Quoted 33 lines · Khem Raj

The module can not be compiled without patching kernel and rpi machines use linux-raspberrypi and are either arm32 or arm64 machines, so this module tries to build in world envs

This helps meta-arm to live in multi-BSP envs

---
 meta-arm/recipes-kernel/ffa-debugfs/ffa-debugfs-mod_2.1.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-arm/recipes-kernel/ffa-debugfs/ffa-debugfs-mod_2.1.0.bb +1 -1
index 2db8afc..93f5f02 100644
@@ -29,3 +29,4 @@ do_install:append() {
 }
 
 COMPATIBLE_HOST = "(arm|aarch64).*-linux"
+COMPATIBLE_HOST:rpi = "null"
--

2.35.1

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

#2 lore raw
In reply to Khem Raj
Quoted 6 lines · Khem Raj

The module can not be compiled without patching kernel and rpi machines use linux-raspberrypi and are either arm32 or arm64 machines, so this module tries to build in world envs

This helps meta-arm to live in multi-BSP envs

What failure did you get when building for RPi? I can't make it break by building it for non-corstone machines.

Ross

author
#3 lore raw
Quoted 11 lines · Ross Burton
Quoted 6 lines · Khem Raj

The module can not be compiled without patching kernel and rpi machines use linux-raspberrypi and are either arm32 or arm64 machines, so this module tries to build in world envs

This helps meta-arm to live in multi-BSP envs

What failure did you get when building for RPi? I can't make it break by building it for non-corstone machines.

Build it for a BSP which does not use yocto reference kernel

Quoted 2 lines

Ross

#4 lore raw
Quoted 4 lines · Khem Raj
Quoted 2 lines

What failure did you get when building for RPi? I can't make it break by building it for non-corstone machines.

Build it for a BSP which does not use yocto reference kernel

Worked for our TC0 machine, which uses the Android Common Kernel.

What failure did you get when building for RPi?

Ross

author
#5 lore raw
Quoted 10 lines · Ross Burton
Quoted 4 lines · Khem Raj
Quoted 2 lines

What failure did you get when building for RPi? I can't make it break by building it for non-corstone machines.

Build it for a BSP which does not use yocto reference kernel

Worked for our TC0 machine, which uses the Android Common Kernel.

What failure did you get when building for RPi?

https://errors.yoctoproject.org/Errors/Details/623682/

Quoted 2 lines

Ross

author
#6 lore raw
Quoted 7 lines · Khem Raj
Quoted 5 lines · Ross Burton
Quoted 3 lines · Khem Raj
Quoted 2 lines

What failure did you get when building for RPi? I can't make it break by building it for non-corstone machines.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Build it for a BSP which does not use yocto reference kernel

Worked for our TC0 machine, which uses the Android Common Kernel.

What failure did you get when building for RPi?

https://errors.yoctoproject.org/Errors/Details/623682/

you are carrying meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0018-arm_ffa-introducing-Arm-FF-A-low-level-driver.patch which is not upstream I guess yet, RPI uses 5.10 kernel.

Quoted 3 lines
Quoted 3 lines

Ross

#7 lore raw
Quoted 3 lines · Khem Raj

you are carrying meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0018-arm_ffa-introducing-Arm-FF-A-low-level-driver.patch which is not upstream I guess yet, RPI uses 5.10 kernel.

That's a U-Boot patch. :)

But I did notice that the target I tested, the TC0 machine with 5.10 ACK, is also patched with the FFA driver backport (which is 5.14 onwards).

Not sure calling out rpi specifically is the right thing here as this isn't RPi specific, but I don't fancy listing every BSP which doesn't have 5.14 either. Neither is making the recipe EXCLUDE_FROM_WORLD a good solution. Hmm. I'll have a think.

Ross

author
#8 lore raw
Quoted 8 lines · Ross Burton
Quoted 3 lines · Khem Raj

you are carrying meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/0018-arm_ffa-introducing-Arm-FF-A-low-level-driver.patch which is not upstream I guess yet, RPI uses 5.10 kernel.

That's a U-Boot patch. :)

Quoted 8 lines

But I did notice that the target I tested, the TC0 machine with 5.10 ACK, is also patched with the FFA driver backport (which is 5.14 onwards).

Not sure calling out rpi specifically is the right thing here as this isn't RPi specific, but I don't fancy listing every BSP which doesn't have 5.14 either. Neither is making the recipe EXCLUDE_FROM_WORLD a good solution. Hmm. I'll have a think.

needs a kernel version check perhaps in some ways.

Quoted 2 lines

Ross