summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone/conf/distro
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2020-02-24 12:14:48 -0800
committerMark Hatle <mark.hatle@xilinx.com>2020-02-27 08:36:00 -0800
commit4f3edb6da405ffff957d6f194bc7db7bdd9f1463 (patch)
tree50895bd7e0126620749adff252f5eb6b9da84540 /meta-xilinx-standalone/conf/distro
parentc6fc0f9a034a3a3c8748e0a650f8728f8c044065 (diff)
downloadmeta-xilinx-4f3edb6da405ffff957d6f194bc7db7bdd9f1463.tar.gz
xlnx-compatible-os.bbclass: Class to allow recipes to list OS compatibility
Following the example of base.bbclass in OE-Core, a new COMPATIBLE_OS variable is defined. Similar to COMPATIBLE_MACHINE, it is a regex that can be used to declare TARGET_OS string compatibility on a per-recipe basis. Either the distro configuration or the recipes themselves will need to inherit this class. By default the class assumes we're building a Linux based system, and thus any recipe who has not declared compatibility is compatible with Linux. The default compatible field was copied from bitbake.conf to ensure there are no surprised. Additionally, enable the usage of this class throughout meta-xilinx-standalone layer. 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.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc b/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc
index 4202bf6f..1be2b647 100644
--- a/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc
+++ b/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc
@@ -23,3 +23,11 @@ INHERIT += "buildhistory"
23 23
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
27INHERIT += "xlnx-compatible-os"
28
29# Clear defaults
30DISTRO_FEATURES_BACKFILL_xilinx-standalone = ""
31VIRTUAL-RUNTIME_init_manager_xilinx-standalone = ""
32
33PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"