diff options
author | Raju Kumar Pothuraju <rajukumar.pothuraju@amd.com> | 2022-11-16 17:04:36 +0530 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2022-11-21 11:03:24 -0600 |
commit | 664913cec261af758ae6c44dd046b87d11d049bf (patch) | |
tree | c16c6983b1ec4c8fdabb41f2cd603c5c5b4db334 /meta-xilinx-core | |
parent | c2d8d5e195c441919d1b8ac299b2123560de4d77 (diff) | |
download | meta-xilinx-664913cec261af758ae6c44dd046b87d11d049bf.tar.gz |
layer.conf: Gen-machine-conf support
Update layer.conf file to export the gen-machine-conf PATH.
gen-machine-conf bbclass is to update the PATH in esdk.
Signed-off-by: Raju Kumar Pothuraju <rajukumar.pothuraju@amd.com>
Change from INHERIT to IMAGE_CLASSES
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core')
-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" | ||