-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathesp32_toolchain.cmake.in
142 lines (132 loc) · 6.51 KB
/
esp32_toolchain.cmake.in
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
include(CMakeForceCompiler)
set(CMAKE_SYSTEM_NAME Generic)
set(idf_target "@IDF_TARGET@")
set(idf_path "@IDF_PATH@")
if("${idf_target}" STREQUAL "esp32c3")
set(CMAKE_SYSTEM_PROCESSOR riscv)
else()
set(CMAKE_SYSTEM_PROCESSOR xtensa)
endif()
set(CMAKE_CROSSCOMPILING 1)
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
set(PLATFORM_NAME "LwIP")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_C_COMPILER @CMAKE_C_COMPILER@)
set(CMAKE_CXX_COMPILER @CMAKE_CXX_COMPILER@)
set(CMAKE_C_FLAGS_INIT "@CFLAGS@" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_INIT "@CXXFLAGS@" CACHE STRING "" FORCE)
add_definitions(-DESP_PLATFORM -DLWIP_IPV4 -DLWIP_IPV6 -DPLATFORM_NAME_FREERTOS)
include_directories(
"@BUILD_CONFIG_DIR@"
${idf_path}/components/newlib/platform_include
${idf_path}/components/freertos/include
${idf_path}/components/freertos/${CMAKE_SYSTEM_PROCESSOR}/include
${idf_path}/components/freertos/port/${CMAKE_SYSTEM_PROCESSOR}/include
${idf_path}/components/esp_hw_support/include
${idf_path}/components/hal/include
${idf_path}/components/hal/${idf_target}/include
${idf_path}/components/heap/include
${idf_path}/components/log/include
${idf_path}/components/lwip/include/apps
${idf_path}/components/lwip/include/apps/sntp
${idf_path}/components/lwip/lwip/src/include
${idf_path}/components/lwip/port/esp32/include
${idf_path}/components/lwip/port/esp32/include/arch
${idf_path}/components/lwip/port/esp32/tcp_isn
${idf_path}/components/soc/src/${idf_target}/.
${idf_path}/components/soc/src/${idf_target}/include
${idf_path}/components/soc/include
${idf_path}/components/soc/${idf_target}/include
${idf_path}/components/esp_rom/include
${idf_path}/components/esp_common/include
${idf_path}/components/esp_system/include
${idf_path}/components/${CMAKE_SYSTEM_PROCESSOR}/include
${idf_path}/components/${CMAKE_SYSTEM_PROCESSOR}/${idf_target}/include
${idf_path}/components/${idf_target}/include
${idf_path}/components/driver/include
${idf_path}/components/driver/${idf_target}/include
${idf_path}/components/esp_ringbuf/include
${idf_path}/components/efuse/include
${idf_path}/components/efuse/${idf_target}/include
${idf_path}/components/espcoredump/include
${idf_path}/components/esp_timer/include
${idf_path}/components/esp_ipc/include
${idf_path}/components/soc/soc/${idf_target}/include
${idf_path}/components/soc/soc/${idf_target}/../include
${idf_path}/components/soc/soc/${idf_target}/private_include
${idf_path}/components/vfs/include
${idf_path}/components/esp_wifi/include
${idf_path}/components/esp_wifi/${idf_target}/include
${idf_path}/components/esp_event/include
${idf_path}/components/esp_netif/include
${idf_path}/components/esp_eth/include
${idf_path}/components/tcpip_adapter/include
${idf_path}/components/app_trace/include
${idf_path}/components/mbedtls/port/include
${idf_path}/components/mbedtls/mbedtls/include
${idf_path}/components/mbedtls/esp_crt_bundle/include
${idf_path}/components/bootloader_support/include
${idf_path}/components/app_update/include
${idf_path}/components/spi_flash/include
${idf_path}/components/wpa_supplicant/include
${idf_path}/components/wpa_supplicant/port/include
${idf_path}/components/wpa_supplicant/include/esp_supplicant
${idf_path}/components/nvs_flash/include
${idf_path}/components/pthread/include
${idf_path}/components/perfmon/include
${idf_path}/components/asio/asio/asio/include
${idf_path}/components/asio/port/include
${idf_path}/components/cbor/port/include
${idf_path}/components/coap/port/include
${idf_path}/components/coap/port/include/coap
${idf_path}/components/coap/libcoap/include
${idf_path}/components/coap/libcoap/include/coap2
${idf_path}/components/console
${idf_path}/components/nghttp/port/include
${idf_path}/components/nghttp/nghttp2/lib/includes
${idf_path}/components/esp-tls
${idf_path}/components/esp_adc_cal/include
${idf_path}/components/esp_gdbstub/include
${idf_path}/components/esp_hid/include
${idf_path}/components/tcp_transport/include
${idf_path}/components/esp_http_client/include
${idf_path}/components/esp_http_server/include
${idf_path}/components/esp_https_ota/include
${idf_path}/components/protobuf-c/protobuf-c
${idf_path}/components/protocomm/include/common
${idf_path}/components/protocomm/include/security
${idf_path}/components/protocomm/include/transports
${idf_path}/components/mdns/include
${idf_path}/components/esp_local_ctrl/include
${idf_path}/components/sdmmc/include
${idf_path}/components/esp_serial_slave_link/include
${idf_path}/components/esp_websocket_client/include
${idf_path}/components/expat/expat/expat/lib
${idf_path}/components/expat/port/include
${idf_path}/components/wear_levelling/include
${idf_path}/components/fatfs/diskio
${idf_path}/components/fatfs/vfs
${idf_path}/components/fatfs/src
${idf_path}/components/freemodbus/common/include
${idf_path}/components/idf_test/include
${idf_path}/components/idf_test/include/${idf_target}
${idf_path}/components/jsmn/include
${idf_path}/components/json/cJSON
${idf_path}/components/libsodium/libsodium/src/libsodium/include
${idf_path}/components/libsodium/port_include
${idf_path}/components/mqtt/esp-mqtt/include
${idf_path}/components/openssl/include
${idf_path}/components/spiffs/include
${idf_path}/components/ulp/include
${idf_path}/components/unity/include
${idf_path}/components/unity/unity/src
${idf_path}/components/wifi_provisioning/include
${idf_path}/components/freertos/include/esp_additions/freertos
${idf_path}/components/freertos/include/esp_additions
${idf_path}/components/esp_hw_support/include
${idf_path}/components/esp_hw_support/include/soc
${idf_path}/components/esp_hw_support/include/soc/${idf_target}
${idf_path}/components/esp_hw_support/port/${idf_target}/.
)