File: TC-rx.cmake

package info (click to toggle)
picolibc 1.8.10-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 35,180 kB
  • sloc: ansic: 281,743; asm: 24,646; python: 2,282; sh: 2,237; perl: 680; pascal: 329; exp: 287; makefile: 209; cpp: 72; xml: 40
file content (26 lines) | stat: -rw-r--r-- 805 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# the name of the target operating system
set(CMAKE_SYSTEM_NAME Generic)

set(CMAKE_SYSTEM_PROCESSOR rx)

# which compilers to use for C
set(TARGET_COMPILE_OPTIONS -ffinite-math-only)
set(CMAKE_C_COMPILER rx-zephyr-elf-gcc -nostdlib)

# where is the target environment located
set(CMAKE_FIND_ROOT_PATH  /opt/rx-zephyr-elf)

# adjust the default behavior of the FIND_XXX() commands:
# search programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)

# search headers and libraries in the target environment
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

set(__THREAD_LOCAL_STORAGE_API FALSE)
set(__THREAD_LOCAL_STORAGE FALSE)

set(TEST_RUNNER run-rx)

set(PICOLIBC_LINK_FLAGS -nostartfiles -T ${CMAKE_CURRENT_SOURCE_DIR}/cmake/TC-rx.ld -lgcc)