[oe] [PATCH v2] base.bbclass: introduce COMPATIBLE_TARGET_SYS and COMPATIBLE_TARGET_ARCH
Phil Blundell
philb at gnu.org
Sun Jul 11 09:10:34 UTC 2010
On Sun, 2010-07-11 at 09:48 +0200, Frans Meulenbroeks wrote:
> This patch introduces COMPATIBLE_TARGET_SYS and COMPATIBLE_TARGET_ARCH
> They are similar to COMPATIBLE_MACHINE but where COMPATIBLE_MACHINE
> is used to specify that a certain recipe is for a certain machine
> COMPATIBLE_TARGET_SYS can be used to specify that a certain recipe
> is for a certain target system (e.g. mips-oe-linux),
> COMPATIBLE_TARGET_ARCH can be used that a certain recipe is for a certain
> architecture (e.g. mips)
Why do you need both? Surely COMPATIBLE_TARGET_ARCH can be implemented
by testing against COMPATIBLE_TARGET_SYS with a suitable wildcard.
> as restrictions may apply for both native and cross recipes, the patch
> is in base.bbclass, not cross.bbclass.
TARGET_SYS only has real meaning for cross recipes. For standard host
recipes, the variable to check would be HOST_SYS (via COMPATIBLE_HOST).
I'm not sure that putting cross-specific stuff in base.bbclass is a
wholesome plan.
p.
More information about the Openembedded-devel
mailing list