summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnirudha Sarangi <anirudha.sarangi@xilinx.com>2020-03-16 10:27:20 +0530
committerMark Hatle <mark.hatle@xilinx.com>2020-03-16 07:41:39 -0700
commitfce7af1bbaf8344e7a08b6010c033becf8027fdd (patch)
tree22127d8ad0aa1ead553df1cefb0361c3b4db84c1
parentd815fbda8905ce413b1519baa060576b4c0ad03c (diff)
downloadmeta-xilinx-fce7af1bbaf8344e7a08b6010c033becf8027fdd.tar.gz
meta-xilinx-standalone: classes: Update CMAKE_SYSTEM_NAME for Freertos
This patch updates the CMAKE_SYSTEM_NAME variable for freertos. Signed-off-by: Anirudha Sarangi <anirudha.sarangi@xilinx.com> Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
-rw-r--r--meta-xilinx-standalone/classes/esw.bbclass4
-rw-r--r--meta-xilinx-standalone/conf/distro/xilinx-freertos.conf1
2 files changed, 3 insertions, 2 deletions
diff --git a/meta-xilinx-standalone/classes/esw.bbclass b/meta-xilinx-standalone/classes/esw.bbclass
index 1a6f24c4..1db34bc6 100644
--- a/meta-xilinx-standalone/classes/esw.bbclass
+++ b/meta-xilinx-standalone/classes/esw.bbclass
@@ -70,7 +70,7 @@ def get_xlnx_cmake_processor(machine, d):
70 70
71XLNX_CMAKE_MACHINE = "${@get_xlnx_cmake_machine(d.getVar('SOC_FAMILY'), d)}" 71XLNX_CMAKE_MACHINE = "${@get_xlnx_cmake_machine(d.getVar('SOC_FAMILY'), d)}"
72XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('MACHINE'), d)}" 72XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('MACHINE'), d)}"
73 73XLNX_CMAKE_SYSTEM_NAME ?= "Generic"
74 74
75cmake_do_generate_toolchain_file_append() { 75cmake_do_generate_toolchain_file_append() {
76 cat >> ${WORKDIR}/toolchain.cmake <<EOF 76 cat >> ${WORKDIR}/toolchain.cmake <<EOF
@@ -81,7 +81,7 @@ cmake_do_generate_toolchain_file_append() {
81 set( CMAKE_MACHINE "${XLNX_CMAKE_MACHINE}" ) 81 set( CMAKE_MACHINE "${XLNX_CMAKE_MACHINE}" )
82 # Will need this in the future to make cmake understand esw variables 82 # Will need this in the future to make cmake understand esw variables
83 # set( CMAKE_SYSTEM_NAME `echo elf | sed -e 's/^./\u&/' -e 's/^\(Linux\).*/\1/'` ) 83 # set( CMAKE_SYSTEM_NAME `echo elf | sed -e 's/^./\u&/' -e 's/^\(Linux\).*/\1/'` )
84 set( CMAKE_SYSTEM_NAME "Generic" ) 84 set( CMAKE_SYSTEM_NAME "${XLNX_CMAKE_SYSTEM_NAME}" )
85EOF 85EOF
86} 86}
87 87
diff --git a/meta-xilinx-standalone/conf/distro/xilinx-freertos.conf b/meta-xilinx-standalone/conf/distro/xilinx-freertos.conf
index 7fb16975..cba5fd90 100644
--- a/meta-xilinx-standalone/conf/distro/xilinx-freertos.conf
+++ b/meta-xilinx-standalone/conf/distro/xilinx-freertos.conf
@@ -2,6 +2,7 @@ require conf/distro/xilinx-standalone.inc
2 2
3DISTRO_NAME_append = " (freertos)" 3DISTRO_NAME_append = " (freertos)"
4 4
5XLNX_CMAKE_SYSTEM_NAME = "FreeRTOS"
5 6
6# We need to pass FREERTOS_BSP compliler flag it is consumed 7# We need to pass FREERTOS_BSP compliler flag it is consumed
7# esw components. 8# esw components.