File tree Expand file tree Collapse file tree 7 files changed +18
-32
lines changed
device/net_lwip_webserver Expand file tree Collapse file tree 7 files changed +18
-32
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 @@ -25,8 +25,3 @@ target_include_directories(${PROJECT} PUBLIC
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
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 ()
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 FAMILY STREQUAL rp2040 )
40
+ # enable LTO if supported skip rp2040
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
@@ -288,6 +290,10 @@ function(family_configure_dual_usb_example TARGET RTOS)
288
290
family_configure_example (${TARGET} ${RTOS} )
289
291
endfunction ()
290
292
293
+ function (family_example_missing_dependency TARGET DEPENDENCY )
294
+ message (WARNING "${DEPENDENCY} submodule needed by ${TARGET} not found, please run 'python tools/get_deps.py ${DEPENDENCY} ' to fetch it" )
295
+ endfunction ()
296
+
291
297
#----------------------------------
292
298
# RPI specific: refactor later
293
299
#----------------------------------
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