summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2024-12-03 20:55:43 -0700
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:06 -0600
commitf88e0385addaf53cb478e628d1ce729ab5c7f964 (patch)
tree11db894f4c34e04efecb0a1b1246b3ec0da4f88e
parent5423d285c4c9ad8f78776a226f9927b4168d146d (diff)
downloadmeta-xilinx-f88e0385addaf53cb478e628d1ce729ab5c7f964.tar.gz
esw: Add CMAKE_SUBMACHINE support
For some platforms we need to set both CMAKE_MACHINE and CMAKE_SUBMACHINE for esw component to build. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-standalone-sdt/classes-recipe/esw.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-sdt/classes-recipe/esw.bbclass b/meta-xilinx-standalone-sdt/classes-recipe/esw.bbclass
index 127b0868..8b4f44d3 100644
--- a/meta-xilinx-standalone-sdt/classes-recipe/esw.bbclass
+++ b/meta-xilinx-standalone-sdt/classes-recipe/esw.bbclass
@@ -63,6 +63,8 @@ XLNX_CMAKE_MACHINE:zynqmp = "ZynqMP"
63XLNX_CMAKE_MACHINE:versal = "Versal" 63XLNX_CMAKE_MACHINE:versal = "Versal"
64XLNX_CMAKE_MACHINE:versal-net = "VersalNet" 64XLNX_CMAKE_MACHINE:versal-net = "VersalNet"
65 65
66XLNX_CMAKE_SUBMACHINE = "undefined"
67
66XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('DEFAULTTUNE'), d.getVar('ESW_MACHINE'), d)}" 68XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('DEFAULTTUNE'), d.getVar('ESW_MACHINE'), d)}"
67XLNX_CMAKE_SYSTEM_NAME ?= "Generic" 69XLNX_CMAKE_SYSTEM_NAME ?= "Generic"
68XLNX_CMAKE_BSP_VARS ?= "" 70XLNX_CMAKE_BSP_VARS ?= ""
@@ -74,6 +76,7 @@ cmake_do_generate_toolchain_file:append() {
74 CMAKE_FORCE_CXX_COMPILER("${OECMAKE_CXX_COMPILER}" GNU) 76 CMAKE_FORCE_CXX_COMPILER("${OECMAKE_CXX_COMPILER}" GNU)
75 set( CMAKE_SYSTEM_PROCESSOR "${XLNX_CMAKE_PROCESSOR}" ) 77 set( CMAKE_SYSTEM_PROCESSOR "${XLNX_CMAKE_PROCESSOR}" )
76 set( CMAKE_MACHINE "${XLNX_CMAKE_MACHINE}" ) 78 set( CMAKE_MACHINE "${XLNX_CMAKE_MACHINE}" )
79 set( CMAKE_SUBMACHINE "${XLNX_CMAKE_SUBMACHINE}" )
77 # Will need this in the future to make cmake understand esw variables 80 # Will need this in the future to make cmake understand esw variables
78 # set( CMAKE_SYSTEM_NAME `echo elf | sed -e 's/^./\u&/' -e 's/^\(Linux\).*/\1/'` ) 81 # set( CMAKE_SYSTEM_NAME `echo elf | sed -e 's/^./\u&/' -e 's/^\(Linux\).*/\1/'` )
79 set( CMAKE_SYSTEM_NAME "${XLNX_CMAKE_SYSTEM_NAME}" ) 82 set( CMAKE_SYSTEM_NAME "${XLNX_CMAKE_SYSTEM_NAME}" )