diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2020-03-26 10:45:33 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-03-26 13:26:24 -0700 |
commit | c0128c6d67f1519399f32b7066044c9794b349d6 (patch) | |
tree | 7abf922de8f66df379ddad8ce296750a1ecaf9b5 /meta-xilinx-standalone/conf/distro | |
parent | 11c95d31edde0f261975a403272f9f9d69589921 (diff) | |
download | meta-xilinx-c0128c6d67f1519399f32b7066044c9794b349d6.tar.gz |
Define COMPATIBLE_HOST to prevent mix of Linux and Baremetal recipes
The key is using COMPATIBLE_HOST to declare, for each recipe, which
OS they are compatible with. This is a regex, so we need to
carefully specify the arch/vendor wild cardscomponents so that we match
only the OS parts.
In the distro configuration, default to the standard Linux HOST_SYS
setting.
In the various baremetal recipes (or esw class) set the specific
compatibility to allow baremetal recipes to build.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-standalone/conf/distro')
-rw-r--r-- | meta-xilinx-standalone/conf/distro/xilinx-standalone.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc b/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc index 18ce4da6..5c8ae67a 100644 --- a/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc +++ b/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc | |||
@@ -24,6 +24,13 @@ INHERIT += "buildhistory" | |||
24 | # Cortex R5 requires an additional cflag to be passed for compatibility with the embeddedsw | 24 | # Cortex R5 requires an additional cflag to be passed for compatibility with the embeddedsw |
25 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexr5', ' -DARMR5', '', d)}" | 25 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexr5', ' -DARMR5', '', d)}" |
26 | 26 | ||
27 | # Make sure all regular recipes are excluded from compatibility | ||
28 | # Avoid using this for native, nativesdk or cross recipes | ||
29 | COMPATOS = "" | ||
30 | # Set the regex for target recipes only, follow TARGET_OS default | ||
31 | COMPATOS_class-target = ".*-linux${LIBCEXTENSION}${ABIEXTENSION}" | ||
32 | COMPATIBLE_HOST ?= "${COMPATOS}" | ||
33 | |||
27 | # Clear defaults | 34 | # Clear defaults |
28 | DISTRO_FEATURES_BACKFILL_xilinx-standalone = "" | 35 | DISTRO_FEATURES_BACKFILL_xilinx-standalone = "" |
29 | VIRTUAL-RUNTIME_init_manager_xilinx-standalone = "" | 36 | VIRTUAL-RUNTIME_init_manager_xilinx-standalone = "" |