File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,26 +31,14 @@ message ("-- Host: ${_host}")
3131set (_target "${CMAKE_SYSTEM_NAME} /${CMAKE_SYSTEM_PROCESSOR} " )
3232message ("-- Target: ${_target} " )
3333
34- if (NOT DEFINED MACHINE)
35- set (MACHINE "Generic" )
36- endif (NOT DEFINED MACHINE )
37- message ("-- Machine: ${MACHINE} " )
38-
3934string (TOLOWER ${CMAKE_SYSTEM_NAME} PROJECT_SYSTEM)
4035string (TOUPPER ${CMAKE_SYSTEM_NAME} PROJECT_SYSTEM_UPPER)
4136string (TOLOWER ${CMAKE_SYSTEM_PROCESSOR} PROJECT_PROCESSOR)
4237string (TOUPPER ${CMAKE_SYSTEM_PROCESSOR} PROJECT_PROCESSOR_UPPER)
43- string (TOLOWER ${MACHINE} PROJECT_MACHINE)
44- string (TOUPPER ${MACHINE} PROJECT_MACHINE_UPPER)
4538
4639# Select which components are in the openamp lib
4740option (WITH_PROXY "Build with proxy(access device controlled by other processor)" ON )
4841
49- # LOAD_FW only allowed for R5, otherwise turn off
50- if (NOT ${MACHINE} STREQUAL "zynqmp_r5" )
51- set (WITH_LOAD_FW OFF )
52- endif (NOT ${MACHINE} STREQUAL "zynqmp_r5" )
53-
5442option (WITH_VIRTIO_DRIVER "Build with virtio driver (front end) enabled" ON )
5543option (WITH_VIRTIO_DEVICE "Build with virtio device (back end) enabled" ON )
5644
Original file line number Diff line number Diff line change 11set (CMAKE_SYSTEM_PROCESSOR "arm64" )
22set (CROSS_PREFIX "aarch64-linux-gnu-" )
3- set (MACHINE "zynqmp" CACHE STRING "" )
43
54include (cross_linux_gcc )
Original file line number Diff line number Diff line change 11set (CMAKE_SYSTEM_PROCESSOR "arm" CACHE STRING "" )
2- set (MACHINE "zynqmp_r5" CACHE STRING "" )
32set (CROSS_PREFIX "armr5-none-eabi-" CACHE STRING "" )
43
54# Xilinx SDK version earlier than 2017.2 use mfloat-abi=soft by default to generate libxil
Original file line number Diff line number Diff line change @@ -7,7 +7,4 @@ if (WITH_ZEPHYR)
77 if (NOT WITH_ZEPHYR_LIB)
88 include ($ENV{ZEPHYR_BASE} /cmake/app/boilerplate.cmake NO_POLICY_SCOPE )
99 endif ()
10- if (CONFIG_CPU_CORTEX_M)
11- set (MACHINE "cortexm" CACHE STRING "" )
12- endif (CONFIG_CPU_CORTEX_M )
1310endif (WITH_ZEPHYR )
You can’t perform that action at this time.
0 commit comments