diff options
author | Ben Levinsky <ben.levinsky@xilinx.com> | 2022-07-27 14:45:04 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2022-07-28 06:56:48 -0700 |
commit | d928363b4b70f49c855a9348025f198d0b8f517d (patch) | |
tree | de17b5f7f26014366c47b9aa9c21e16d63a7fce2 /meta-xilinx-standalone-experimental/classes | |
parent | 6f235b5fdb7ddd60abf5cb9850b9f699a789760e (diff) | |
download | meta-xilinx-d928363b4b70f49c855a9348025f198d0b8f517d.tar.gz |
meta-xilinx-standalone-experimental: esw.bbclass: Add var XLNX_CMAKE_BSP_VARS
Add a variable that can be used to add BSP flags
Signed-off-by: Ben Levinsky <ben.levinsky@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental/classes')
-rw-r--r-- | meta-xilinx-standalone-experimental/classes/esw.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-experimental/classes/esw.bbclass b/meta-xilinx-standalone-experimental/classes/esw.bbclass index 78cb289c..0b179a61 100644 --- a/meta-xilinx-standalone-experimental/classes/esw.bbclass +++ b/meta-xilinx-standalone-experimental/classes/esw.bbclass | |||
@@ -64,6 +64,7 @@ def get_xlnx_cmake_processor(tune, machine, d): | |||
64 | XLNX_CMAKE_MACHINE = "${@get_xlnx_cmake_machine(d.getVar('SOC_FAMILY'), d)}" | 64 | XLNX_CMAKE_MACHINE = "${@get_xlnx_cmake_machine(d.getVar('SOC_FAMILY'), d)}" |
65 | XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('DEFAULTTUNE'), d.getVar('ESW_MACHINE'), d)}" | 65 | XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('DEFAULTTUNE'), d.getVar('ESW_MACHINE'), d)}" |
66 | XLNX_CMAKE_SYSTEM_NAME ?= "Generic" | 66 | XLNX_CMAKE_SYSTEM_NAME ?= "Generic" |
67 | XLNX_CMAKE_BSP_VARS ?= "" | ||
67 | 68 | ||
68 | cmake_do_generate_toolchain_file:append() { | 69 | cmake_do_generate_toolchain_file:append() { |
69 | cat >> ${WORKDIR}/toolchain.cmake <<EOF | 70 | cat >> ${WORKDIR}/toolchain.cmake <<EOF |
@@ -75,6 +76,7 @@ cmake_do_generate_toolchain_file:append() { | |||
75 | # Will need this in the future to make cmake understand esw variables | 76 | # Will need this in the future to make cmake understand esw variables |
76 | # set( CMAKE_SYSTEM_NAME `echo elf | sed -e 's/^./\u&/' -e 's/^\(Linux\).*/\1/'` ) | 77 | # set( CMAKE_SYSTEM_NAME `echo elf | sed -e 's/^./\u&/' -e 's/^\(Linux\).*/\1/'` ) |
77 | set( CMAKE_SYSTEM_NAME "${XLNX_CMAKE_SYSTEM_NAME}" ) | 78 | set( CMAKE_SYSTEM_NAME "${XLNX_CMAKE_SYSTEM_NAME}" ) |
79 | add_definitions( "${XLNX_CMAKE_BSP_VARS}" ) | ||
78 | EOF | 80 | EOF |
79 | } | 81 | } |
80 | 82 | ||