Welcome to mirror list, hosted at ThFree Co, Russian Federation.

configBoot.cmake « DSP « CMSIS « Drivers - github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 68a364c3126573c45a5cf64610185570225cc464 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
include(CMakePrintHelpers)
include(configUtils)

enable_language(C ASM)

option(FILEIO "Test trace using printf" ON)

# Otherwise there is a .obj on windows and it creates problems
# with armlink. 
SET(CMAKE_C_OUTPUT_EXTENSION .o)
SET(CMAKE_CXX_OUTPUT_EXTENSION .o)
SET(CMAKE_ASM_OUTPUT_EXTENSION .o)


get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)

cmake_print_variables(PROJECT_NAME)

#set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..)

if (ARMAC6)

  ###################
  #
  # Cortex cortex-m7
  #
  if (ARM_CPU STREQUAL "cortex-m7")
    cortexm(ARMCM7)

    target_compile_definitions(${PROJECT_NAME} PRIVATE ARMCM7_DP)
    
    
  endif()
  
  ###################
  #
  # Cortex cortex-m4
  #
  if (ARM_CPU STREQUAL "cortex-m4")
      cortexm(ARMCM4)
      target_compile_definitions(${PROJECT_NAME} PRIVATE ARMCM4_FP)
  endif()
  
  ###################
  #
  # Cortex cortex-m35p
  #
  if (ARM_CPU STREQUAL "cortex-m35")
      cortexm(ARMCM35P)
      target_compile_definitions(${PROJECT_NAME} PRIVATE ARMCM35P)
  endif()
  
  ###################
  #
  # Cortex cortex-m33
  #
  if (ARM_CPU STREQUAL "cortex-m33")
      cortexm(ARMCM33)
      target_compile_definitions(${PROJECT_NAME} PRIVATE ARMCM33)
  endif()
  
  ###################
  #
  # Cortex cortex-m23
  #
  if (ARM_CPU STREQUAL "cortex-m23")
      cortexm(ARMCM23)
      target_compile_definitions(${PROJECT_NAME} PRIVATE ARMCM23)
  endif()

  ###################
  #
  # Cortex cortex-m0+
  #
  if (ARM_CPU STREQUAL "cortex-m0p")
      cortexm(ARMCM0plus)
  endif()

  ###################
  #
  # Cortex cortex-m0
  #
  if (ARM_CPU STREQUAL "cortex-m0")
      cortexm(ARMCM0)
  endif()
  
  ###################
  #
  # Cortex cortex-a5
  #
  if (ARM_CPU STREQUAL "cortex-a5")
    cortexa(ARMCA5)
    target_compile_definitions(${PROJECT_NAME} PRIVATE ARMv7A) 
  endif()

  ###################
  #
  # Cortex cortex-a7
  #
  if (ARM_CPU STREQUAL "cortex-a7")
    cortexa(ARMCA7)
    target_compile_definitions(${PROJECT_NAME} PRIVATE ARMv7A) 
  endif()

  ###################
  #
  # Cortex cortex-a9
  #
  if (ARM_CPU STREQUAL "cortex-a9")
    cortexa(ARMCA9)
    target_compile_definitions(${PROJECT_NAME} PRIVATE ARMv7A) 
  endif()
  
endif()

if (FILEIO)
  target_compile_definitions(${PROJECT_NAME} PRIVATE FILEIO)
endif()