Skip to contentSkip to conversation

Skipping recipes depending on MACHINE

DISCUSSION Mauro Ziliani 2 participants 2 messages Mar 9, 2023

lore
Share & tools
lore
#0 lore raw

Good morning.

I made a project for IMX6 platform.

Now I ported it to x86.

I made a layer for IMX6, but some recipe.bb cannot be compiled fo x86, or some recipe.bbappend has not a mother, so the bibtake stops.

I to adapt the layer to x86 architecture I put some BBMASK += "" in my conf/bblayers.conf for x86 build environment and I excluded every unneeeded file for x86.

Can I put the BBMASK in some conf file inside the layer to do the same, dependig on MACHINE, using OVERRIDE?

The first idea was put BBMASK in layer.conf, like this

BBMASK_intel-corei7-64 = " \
.... \
"

I'd like to became my layer "auto-configurable" about MACHINE value

Any idea?

Best regards,

  MZ

#1 lore raw

Hi,

Quoted 18 lines · Mauro Ziliani

Good morning.

I made a project for IMX6 platform.

Now I ported it to x86.

I made a layer for IMX6, but some recipe.bb cannot be compiled fo x86, or some recipe.bbappend has not a mother, so the bibtake stops.

I to adapt the layer to x86 architecture I put some BBMASK += "" in my conf/bblayers.conf for x86 build environment and I excluded every unneeeded file for x86.

Can I put the BBMASK in some conf file inside the layer to do the same, dependig on MACHINE, using OVERRIDE?

The first idea was put BBMASK in layer.conf, like this

Quoted 9 lines

BBMASK_intel-corei7-64 = " \
.... \
"

I'd like to became my layer "auto-configurable" about MACHINE value

Any idea?

Have you looked into COMPATIBLE_MACHINE?
=>
https://docs.yoctoproject.org/ref-manual/variables.html#term-COMPATIBLE_MACHINE

Looks like a perfect match for what you are trying to do!

Regards,

--
Yoann Congal