aboutsummaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/classes/gen-machine-conf.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-core/classes/gen-machine-conf.bbclass')
-rw-r--r--meta-xilinx-core/classes/gen-machine-conf.bbclass6
1 files changed, 6 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..25960cd1
--- /dev/null
+++ b/meta-xilinx-core/classes/gen-machine-conf.bbclass
@@ -0,0 +1,6 @@
+#Add scripts path with the tools to PATH to be able to use from eSDK
+sdk_ext_postinst:append() {
+ if [ -d $target_sdk_dir/layers/meta-xilinx/meta-xilinx-core/gen-machine-conf ]; then
+ echo "export PATH=$target_sdk_dir/layers/meta-xilinx/meta-xilinx-core/gen-machine-conf:\$PATH" >> $env_setup_script
+ fi
+}