diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2020-02-24 12:14:48 -0800 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-02-27 08:36:00 -0800 |
commit | 4f3edb6da405ffff957d6f194bc7db7bdd9f1463 (patch) | |
tree | 50895bd7e0126620749adff252f5eb6b9da84540 /meta-xilinx-standalone/recipes-devtools/qemu | |
parent | c6fc0f9a034a3a3c8748e0a650f8728f8c044065 (diff) | |
download | meta-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/recipes-devtools/qemu')
-rw-r--r-- | meta-xilinx-standalone/recipes-devtools/qemu/qemuwrapper-cross_1.0.bbappend | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/recipes-devtools/qemu/qemuwrapper-cross_1.0.bbappend b/meta-xilinx-standalone/recipes-devtools/qemu/qemuwrapper-cross_1.0.bbappend new file mode 100644 index 00000000..0efa796c --- /dev/null +++ b/meta-xilinx-standalone/recipes-devtools/qemu/qemuwrapper-cross_1.0.bbappend | |||
@@ -0,0 +1 @@ | |||
COMPATIBLE_OS_xilinx-standalone = "${TARGET_OS}" | |||