File tree 7 files changed +19
-33
lines changed
device/net_lwip_webserver
7 files changed +19
-33
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ cmake_minimum_required(VERSION 3.17)
2
2
3
3
include (${CMAKE_CURRENT_LIST_DIR} /../../../hw/bsp/family_support.cmake)
4
4
5
+ # gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
6
+ family_get_project_name(PROJECT ${CMAKE_CURRENT_LIST_DIR} )
7
+
5
8
set (LWIP ${TOP} /lib/lwip)
6
9
if (NOT EXISTS ${LWIP} /src)
7
- MESSAGE (WARNING "lib/lwip submodule not found, please run 'python tools/get_deps.py lib/lwip' to fetch it " )
10
+ family_example_missing_dependency( ${PROJECT} "lib/lwip" )
8
11
return ()
9
12
endif ()
10
13
11
- # gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
12
- family_get_project_name(PROJECT ${CMAKE_CURRENT_LIST_DIR} )
13
-
14
14
project (${PROJECT} C CXX ASM)
15
15
16
16
# Checks this example is valid for the family and initializes the project
Original file line number Diff line number Diff line change @@ -24,9 +24,4 @@ target_include_directories(${PROJECT} PUBLIC
24
24
25
25
# Configure compilation flags and libraries for the example without RTOS.
26
26
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
27
- family_configure_host_example(${PROJECT} noos)
28
-
29
- # Add pico-pio-usb for rp2040 since user can choose to run on bit-banging host
30
- if (FAMILY STREQUAL "rp2040" )
31
- family_add_pico_pio_usb(${PROJECT} )
32
- endif ()
27
+ family_configure_host_example(${PROJECT} noos)
Original file line number Diff line number Diff line change @@ -28,8 +28,3 @@ target_include_directories(${PROJECT} PUBLIC
28
28
# Configure compilation flags and libraries for the example without RTOS.
29
29
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
30
30
family_configure_host_example(${PROJECT} noos)
31
-
32
- # Add pico-pio-usb for rp2040 since user can choose to run on bit-banging host
33
- if (FAMILY STREQUAL "rp2040" )
34
- family_add_pico_pio_usb(${PROJECT} )
35
- endif ()
Original file line number Diff line number Diff line change @@ -26,8 +26,3 @@ target_include_directories(${PROJECT} PUBLIC
26
26
# Configure compilation flags and libraries for the example without RTOS.
27
27
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
28
28
family_configure_host_example(${PROJECT} noos)
29
-
30
- # Add pico-pio-usb for rp2040 since user can choose to run on bit-banging host
31
- if (FAMILY STREQUAL "rp2040" )
32
- family_add_pico_pio_usb(${PROJECT} )
33
- endif ()
Original file line number Diff line number Diff line change @@ -38,8 +38,3 @@ target_include_directories(${PROJECT} PUBLIC
38
38
# Configure compilation flags and libraries for the example without RTOS.
39
39
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
40
40
family_configure_host_example(${PROJECT} noos)
41
-
42
- # Add pico-pio-usb for rp2040 since user can choose to run on bit-banging host
43
- if (FAMILY STREQUAL "rp2040" )
44
- family_add_pico_pio_usb(${PROJECT} )
45
- endif ()
Original file line number Diff line number Diff line change 1
- include_guard ()
1
+ include_guard (GLOBAL )
2
2
3
3
include (CMakePrintHelpers)
4
4
@@ -36,12 +36,14 @@ if (NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/${FAMILY}/family.cmake)
36
36
message (FATAL_ERROR "Family '${FAMILY} ' is not known/supported" )
37
37
endif ()
38
38
39
- # enable LTO if supported
40
- include (CheckIPOSupported)
41
- check_ipo_supported(RESULT IPO_SUPPORTED)
42
- if (IPO_SUPPORTED)
43
- set (CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE )
44
- endif ()
39
+ if (NOT TINYUSB_OPT_SKIP_CHECK_IPO_SUPPORTED)
40
+ # enable LTO if supported
41
+ include (CheckIPOSupported)
42
+ check_ipo_supported(RESULT IPO_SUPPORTED)
43
+ if (IPO_SUPPORTED)
44
+ set (CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE )
45
+ endif ()
46
+ endif ()
45
47
46
48
set (WARNING_FLAGS_GNU
47
49
-Wall
@@ -278,6 +280,10 @@ function(family_configure_dual_usb_example TARGET RTOS)
278
280
family_configure_example(${TARGET} ${RTOS} )
279
281
endfunction ()
280
282
283
+ function (family_example_missing_dependency TARGET DEPENDENCY)
284
+ message (WARNING "${DEPENDENCY} submodule needed by ${TARGET} not found, please run 'python tools/get_deps.py ${DEPENDENCY} ' to fetch it" )
285
+ endfunction ()
286
+
281
287
#----------------------------------
282
288
# RPI specific: refactor later
283
289
#----------------------------------
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.13)
2
- include_guard ()
2
+ include_guard (GLOBAL )
3
3
4
4
if (NOT BOARD)
5
5
message ("BOARD not specified, defaulting to pico_sdk" )
You can’t perform that action at this time.
0 commit comments