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-bsp | |
| 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-bsp')
| -rw-r--r-- | meta-xilinx-standalone/recipes-bsp/device-tree/device-tree.bbappend | 2 | ||||
| -rw-r--r-- | meta-xilinx-standalone/recipes-bsp/hdf/external-hdf.bbappend | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/recipes-bsp/device-tree/device-tree.bbappend b/meta-xilinx-standalone/recipes-bsp/device-tree/device-tree.bbappend index 69b1ff5f..970f97fc 100644 --- a/meta-xilinx-standalone/recipes-bsp/device-tree/device-tree.bbappend +++ b/meta-xilinx-standalone/recipes-bsp/device-tree/device-tree.bbappend | |||
| @@ -4,6 +4,8 @@ COMPATIBLE_MACHINE_microblaze-pmu = ".*" | |||
| 4 | COMPATIBLE_MACHINE_microblaze-plm = ".*" | 4 | COMPATIBLE_MACHINE_microblaze-plm = ".*" |
| 5 | COMPATIBLE_MACHINE_cortexa72-versal = ".*" | 5 | COMPATIBLE_MACHINE_cortexa72-versal = ".*" |
| 6 | 6 | ||
| 7 | COMPATIBLE_OS_xilinx-standalone = "${TARGET_OS}" | ||
| 8 | |||
| 7 | REPO_cortexa53-zynqmp = "git://gitenterprise.xilinx.com/decoupling/device-tree-xlnx;protocol=https" | 9 | REPO_cortexa53-zynqmp = "git://gitenterprise.xilinx.com/decoupling/device-tree-xlnx;protocol=https" |
| 8 | REPO_cortexr5-zynqmp = "git://gitenterprise.xilinx.com/decoupling/device-tree-xlnx;protocol=https" | 10 | REPO_cortexr5-zynqmp = "git://gitenterprise.xilinx.com/decoupling/device-tree-xlnx;protocol=https" |
| 9 | REPO_microblaze-pmu = "git://gitenterprise.xilinx.com/decoupling/device-tree-xlnx;protocol=https" | 11 | REPO_microblaze-pmu = "git://gitenterprise.xilinx.com/decoupling/device-tree-xlnx;protocol=https" |
diff --git a/meta-xilinx-standalone/recipes-bsp/hdf/external-hdf.bbappend b/meta-xilinx-standalone/recipes-bsp/hdf/external-hdf.bbappend new file mode 100644 index 00000000..0efa796c --- /dev/null +++ b/meta-xilinx-standalone/recipes-bsp/hdf/external-hdf.bbappend | |||
| @@ -0,0 +1 @@ | |||
| COMPATIBLE_OS_xilinx-standalone = "${TARGET_OS}" | |||
