diff options
author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2024-12-03 20:55:43 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2025-03-30 14:16:06 -0600 |
commit | f88e0385addaf53cb478e628d1ce729ab5c7f964 (patch) | |
tree | 11db894f4c34e04efecb0a1b1246b3ec0da4f88e | |
parent | 5423d285c4c9ad8f78776a226f9927b4168d146d (diff) | |
download | meta-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.bbclass | 3 |
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" | |||
63 | XLNX_CMAKE_MACHINE:versal = "Versal" | 63 | XLNX_CMAKE_MACHINE:versal = "Versal" |
64 | XLNX_CMAKE_MACHINE:versal-net = "VersalNet" | 64 | XLNX_CMAKE_MACHINE:versal-net = "VersalNet" |
65 | 65 | ||
66 | XLNX_CMAKE_SUBMACHINE = "undefined" | ||
67 | |||
66 | XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('DEFAULTTUNE'), d.getVar('ESW_MACHINE'), d)}" | 68 | XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('DEFAULTTUNE'), d.getVar('ESW_MACHINE'), d)}" |
67 | XLNX_CMAKE_SYSTEM_NAME ?= "Generic" | 69 | XLNX_CMAKE_SYSTEM_NAME ?= "Generic" |
68 | XLNX_CMAKE_BSP_VARS ?= "" | 70 | XLNX_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}" ) |