Skip to content

Commit

Permalink
cmake: platforms: xlnx: Update machine from 'zynqmp_' to 'xlnx_'
Browse files Browse the repository at this point in the history
Match update so that the cmake platform files are coupled to vendor and not
SOC which is previously 'zynqmp_'.

Signed-off-by: Ben Levinsky <[email protected]>
  • Loading branch information
bentheredonethat committed Nov 13, 2024
1 parent 5c36d6b commit c97dab1
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 27 deletions.
8 changes: 8 additions & 0 deletions cmake/platforms/xlnx-a53-freertos.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set (CMAKE_SYSTEM_PROCESSOR "aarch64" CACHE STRING "")
set (MACHINE "xlnx_a53" CACHE STRING "")
set (PROJECT_VENDOR "xlnx" CACHE STRING "")
set (CROSS_PREFIX "aarch64-none-elf-" CACHE STRING "")
set (CMAKE_C_FLAGS "" CACHE STRING "")

include (cross-freertos-gcc)

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set (CMAKE_SYSTEM_PROCESSOR "aarch64" CACHE STRING "")
set (MACHINE "zynqmp_a53" CACHE STRING "")
set (MACHINE "xlnx_a53" CACHE STRING "")
set (PROJECT_VENDOR "xlnx" CACHE STRING "")
set (CROSS_PREFIX "aarch64-none-elf-" CACHE STRING "")
set (CMAKE_C_FLAGS "" CACHE STRING "")
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions cmake/platforms/xlnx-r5-freertos.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set (CMAKE_SYSTEM_PROCESSOR "arm" CACHE STRING "")
set (MACHINE "xlnx_r5" CACHE STRING "")
set (PROJECT_VENDOR "xlnx" CACHE STRING "")
set (CROSS_PREFIX "armr5-none-eabi-" CACHE STRING "")
set (CMAKE_C_FLAGS "-mfloat-abi=soft -mcpu=cortex-r5" CACHE STRING "")

include (cross-freertos-gcc)

10 changes: 10 additions & 0 deletions cmake/platforms/xlnx-r5-generic.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
set (CMAKE_SYSTEM_PROCESSOR "arm" CACHE STRING "")
set (MACHINE "xlnx_r5" CACHE STRING "")
set (CROSS_PREFIX "armr5-none-eabi-" CACHE STRING "")
set (PROJECT_VENDOR "xlnx" CACHE STRING "")

# Xilinx SDK version earlier than 2017.2 use mfloat-abi=soft by default to generate libxil
set (CMAKE_C_FLAGS "-mfloat-abi=hard -mfpu=vfpv3-d16 -mcpu=cortex-r5" CACHE STRING "")

include (cross-generic-gcc)

8 changes: 0 additions & 8 deletions cmake/platforms/zynqmp-a53-freertos.cmake

This file was deleted.

8 changes: 0 additions & 8 deletions cmake/platforms/zynqmp-r5-freertos.cmake

This file was deleted.

10 changes: 0 additions & 10 deletions cmake/platforms/zynqmp-r5-generic.cmake

This file was deleted.

0 comments on commit c97dab1

Please sign in to comment.