diff options
-rw-r--r-- | meta-xilinx-core/classes/gen-machine-conf.bbclass | 6 | ||||
-rw-r--r-- | meta-xilinx-core/conf/layer.conf | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/meta-xilinx-core/classes/gen-machine-conf.bbclass b/meta-xilinx-core/classes/gen-machine-conf.bbclass new file mode 100644 index 00000000..d1b46f48 --- /dev/null +++ b/meta-xilinx-core/classes/gen-machine-conf.bbclass | |||
@@ -0,0 +1,6 @@ | |||
1 | #Add scripts path with the tools to PATH to be able to use from eSDK | ||
2 | sdk_ext_postinst:append() { | ||
3 | if [ -d $target_sdk_dir/layers/meta-xilinx/gen-machine-conf ]; then | ||
4 | echo "export PATH=$target_sdk_dir/layers/meta-xilinx/gen-machine-conf:\$PATH" >> $env_setup_script | ||
5 | fi | ||
6 | } | ||
diff --git a/meta-xilinx-core/conf/layer.conf b/meta-xilinx-core/conf/layer.conf index bd5848cd..c90b19da 100644 --- a/meta-xilinx-core/conf/layer.conf +++ b/meta-xilinx-core/conf/layer.conf | |||
@@ -73,3 +73,7 @@ XILINX_LINUX_VERSION[v2022.1] = "5.15.19-xilinx-v2022.1%" | |||
73 | XILINX_LINUX_VERSION[v2022.2] = "5.15.36-xilinx-v2022.2%" | 73 | XILINX_LINUX_VERSION[v2022.2] = "5.15.36-xilinx-v2022.2%" |
74 | XILINX_LINUX_VERSION[v2023.1] = "5.15.0-xilinx-v2023.1%" | 74 | XILINX_LINUX_VERSION[v2023.1] = "5.15.0-xilinx-v2023.1%" |
75 | PREFERRED_VERSION_linux-xlnx ?= "${@d.getVarFlag('XILINX_LINUX_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" | 75 | PREFERRED_VERSION_linux-xlnx ?= "${@d.getVarFlag('XILINX_LINUX_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}" |
76 | |||
77 | # Add support to eSDK for gen-machine-conf if it exists | ||
78 | PLNX_SCRIPTS_PATH = "${LAYERDIR}/../gen-machine-conf/gen-machine-scripts" | ||
79 | IMAGE_CLASSES += "gen-machine-conf" | ||