summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone/conf/distro
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2020-03-26 10:45:33 -0700
committerMark Hatle <mark.hatle@xilinx.com>2020-03-26 13:26:24 -0700
commitc0128c6d67f1519399f32b7066044c9794b349d6 (patch)
tree7abf922de8f66df379ddad8ce296750a1ecaf9b5 /meta-xilinx-standalone/conf/distro
parent11c95d31edde0f261975a403272f9f9d69589921 (diff)
downloadmeta-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.inc7
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
25TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexr5', ' -DARMR5', '', d)}" 25TUNE_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
29COMPATOS = ""
30# Set the regex for target recipes only, follow TARGET_OS default
31COMPATOS_class-target = ".*-linux${LIBCEXTENSION}${ABIEXTENSION}"
32COMPATIBLE_HOST ?= "${COMPATOS}"
33
27# Clear defaults 34# Clear defaults
28DISTRO_FEATURES_BACKFILL_xilinx-standalone = "" 35DISTRO_FEATURES_BACKFILL_xilinx-standalone = ""
29VIRTUAL-RUNTIME_init_manager_xilinx-standalone = "" 36VIRTUAL-RUNTIME_init_manager_xilinx-standalone = ""