-
-
Notifications
You must be signed in to change notification settings - Fork 177
/
CMakeLists.txt
43 lines (31 loc) · 1.21 KB
/
CMakeLists.txt
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#
# Copyright (c) .NET Foundation and Contributors
# See LICENSE file in the project root for full license information.
#
include(binutils.common)
include(binutils.FreeRTOS)
nf_setup_target_build(
HAS_NANOBOOTER
BOOTER_LINKER_FILE
MIMXRT10xx
CLR_LINKER_FILE
MIMXRT10xx
BOOTER_EXTRA_COMPILE_DEFINITIONS
CPU_MIMXRT1062CVL5A
CPU_MIMXRT1062CVL5A_cm7
CLR_EXTRA_COMPILE_DEFINITIONS
CPU_MIMXRT1062CVL5A
CPU_MIMXRT1062CVL5A_cm7
BOOTER_EXTRA_LINKMAP_PROPERTIES
",--library-path=${CMAKE_SOURCE_DIR}/targets/TI_SimpleLink/common,--defsym=__crt_heap_size__=0x0"
CLR_EXTRA_LINKMAP_PROPERTIES
",--library-path=${CMAKE_SOURCE_DIR}/targets/TI_SimpleLink/common,--defsym=__crt_heap_size__=0x0"
)
target_compile_definitions(NF_Network PUBLIC -DCPU_MIMXRT1062CVL5A -DCPU_MIMXRT1062CVL5A_cm7)
target_compile_definitions(NF_NativeAssemblies PUBLIC -DCPU_MIMXRT1062CVL5A -DCPU_MIMXRT1062CVL5A_cm7)
if(SRECORD_TOOL_AVAILABLE)
nf_generate_hex_package(
${CMAKE_SOURCE_DIR}/build/${NANOBOOTER_PROJECT_NAME}.hex
${CMAKE_SOURCE_DIR}/build/${NANOCLR_PROJECT_NAME}.hex
${CMAKE_SOURCE_DIR}/build/nanobooter-nanoclr.hex)
endif()