From f88e0385addaf53cb478e628d1ce729ab5c7f964 Mon Sep 17 00:00:00 2001 From: Sandeep Gundlupet Raju Date: Tue, 3 Dec 2024 20:55:43 -0700 Subject: 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 Signed-off-by: Mark Hatle --- meta-xilinx-standalone-sdt/classes-recipe/esw.bbclass | 3 +++ 1 file changed, 3 insertions(+) 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" XLNX_CMAKE_MACHINE:versal = "Versal" XLNX_CMAKE_MACHINE:versal-net = "VersalNet" +XLNX_CMAKE_SUBMACHINE = "undefined" + XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('DEFAULTTUNE'), d.getVar('ESW_MACHINE'), d)}" XLNX_CMAKE_SYSTEM_NAME ?= "Generic" XLNX_CMAKE_BSP_VARS ?= "" @@ -74,6 +76,7 @@ cmake_do_generate_toolchain_file:append() { CMAKE_FORCE_CXX_COMPILER("${OECMAKE_CXX_COMPILER}" GNU) set( CMAKE_SYSTEM_PROCESSOR "${XLNX_CMAKE_PROCESSOR}" ) set( CMAKE_MACHINE "${XLNX_CMAKE_MACHINE}" ) + set( CMAKE_SUBMACHINE "${XLNX_CMAKE_SUBMACHINE}" ) # Will need this in the future to make cmake understand esw variables # set( CMAKE_SYSTEM_NAME `echo elf | sed -e 's/^./\u&/' -e 's/^\(Linux\).*/\1/'` ) set( CMAKE_SYSTEM_NAME "${XLNX_CMAKE_SYSTEM_NAME}" ) -- cgit v1.2.3-54-g00ecf