From be4ee003469b2f9d9d2afb95ca0e5d8e00f4d9e8 Mon Sep 17 00:00:00 2001 From: Appana Durga Kedareswara rao Date: Thu, 2 Mar 2023 12:56:23 +0530 Subject: meta-xilinx-standalone-experimental: classes: esw: Compile PLM by default on release mode FIXME: By default CMAKE_BUILD_TYPE is Debug with the latest esw source repo changes if we try to compile plm getting linker overflow error to workaround the issue switch the default build type to Release mode. Signed-off-by: Appana Durga Kedareswara rao Signed-off-by: Mark Hatle --- meta-xilinx-standalone-experimental/classes/esw.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta-xilinx-standalone-experimental') diff --git a/meta-xilinx-standalone-experimental/classes/esw.bbclass b/meta-xilinx-standalone-experimental/classes/esw.bbclass index 653e7e0f..febdebad 100644 --- a/meta-xilinx-standalone-experimental/classes/esw.bbclass +++ b/meta-xilinx-standalone-experimental/classes/esw.bbclass @@ -81,6 +81,9 @@ cmake_do_generate_toolchain_file:append() { set( CMAKE_SYSTEM_NAME "${XLNX_CMAKE_SYSTEM_NAME}" ) set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${S}/cmake) set( CMAKE_LIBRARY_PATH ${CMAKE_INSTALL_LIBDIR}) + if ("${XLNX_CMAKE_PROCESSOR}" STREQUAL "plm_microblaze") + set( CMAKE_BUILD_TYPE Release) + endif() add_definitions( "${XLNX_CMAKE_BSP_VARS}" ) EOF } -- cgit v1.2.3-54-g00ecf