Skip to content

Commit

Permalink
Move gen-machine-conf to meta-xilinx-core
Browse files Browse the repository at this point in the history
meta-xilinx/gen-machine-conf will not packed into eSDK as its not a
layer moving to meta-xilinx-core.

Signed-off-by: Raju Kumar Pothuraju <[email protected]>

Added a symlink for the gen-machine-conf directory

Signed-off-by: Mark Hatle <[email protected]>
  • Loading branch information
Rajukumar45 authored and mhatle committed Nov 21, 2022
1 parent ae7c8cf commit 072981c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "gen-machine-conf"]
path = gen-machine-conf
path = meta-xilinx-core/gen-machine-conf
url = https://gitenterprise.xilinx.com/Petalinux/gen-machine-conf.git
branch = master
1 change: 0 additions & 1 deletion gen-machine-conf
Submodule gen-machine-conf deleted from 9d5887
1 change: 1 addition & 0 deletions gen-machine-conf
4 changes: 2 additions & 2 deletions meta-xilinx-core/classes/gen-machine-conf.bbclass
Original file line number Diff line number Diff line change
@@ -1,6 +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/gen-machine-conf ]; then
echo "export PATH=$target_sdk_dir/layers/meta-xilinx/gen-machine-conf:\$PATH" >> $env_setup_script
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
}
2 changes: 1 addition & 1 deletion meta-xilinx-core/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ XILINX_LINUX_VERSION[v2023.1] = "5.15.0-xilinx-v2023.1%"
PREFERRED_VERSION_linux-xlnx ?= "${@d.getVarFlag('XILINX_LINUX_VERSION', d.getVar('XILINX_RELEASE_VERSION')) or 'undefined'}"

# Add support to eSDK for gen-machine-conf if it exists
PLNX_SCRIPTS_PATH = "${LAYERDIR}/../gen-machine-conf/gen-machine-scripts"
PLNX_SCRIPTS_PATH = "${LAYERDIR}/gen-machine-conf/gen-machine-scripts"
IMAGE_CLASSES += "gen-machine-conf"
1 change: 1 addition & 0 deletions meta-xilinx-core/gen-machine-conf
Submodule gen-machine-conf added at 9d5887

0 comments on commit 072981c

Please sign in to comment.