Merge pull request #2151 from kilograham/rp2040_build_fixes
Fix build issues when building for RP2040 from pico-examples/pico-sdk.
This commit is contained in:
@@ -2,15 +2,15 @@ cmake_minimum_required(VERSION 3.17)
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/../../../hw/bsp/family_support.cmake)
|
||||
|
||||
set(LWIP ${TOP}/lib/lwip)
|
||||
if (NOT EXISTS ${LWIP}/src)
|
||||
MESSAGE(WARNING "lib/lwip submodule not found, please run 'python tools/get_deps.py lib/lwip' to fetch it")
|
||||
return()
|
||||
endif()
|
||||
|
||||
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
|
||||
family_get_project_name(PROJECT ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
set(LWIP ${TOP}/lib/lwip)
|
||||
if (NOT EXISTS ${LWIP}/src)
|
||||
family_example_missing_dependency(${PROJECT} "lib/lwip")
|
||||
return()
|
||||
endif()
|
||||
|
||||
project(${PROJECT} C CXX ASM)
|
||||
|
||||
# Checks this example is valid for the family and initializes the project
|
||||
|
@@ -25,8 +25,3 @@ target_include_directories(${PROJECT} PUBLIC
|
||||
# Configure compilation flags and libraries for the example without RTOS.
|
||||
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
|
||||
family_configure_host_example(${PROJECT} noos)
|
||||
|
||||
# Add pico-pio-usb for rp2040 since user can choose to run on bit-banging host
|
||||
if(FAMILY STREQUAL "rp2040")
|
||||
family_add_pico_pio_usb(${PROJECT})
|
||||
endif()
|
||||
|
@@ -28,8 +28,3 @@ target_include_directories(${PROJECT} PUBLIC
|
||||
# Configure compilation flags and libraries for the example without RTOS.
|
||||
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
|
||||
family_configure_host_example(${PROJECT} noos)
|
||||
|
||||
# Add pico-pio-usb for rp2040 since user can choose to run on bit-banging host
|
||||
if(FAMILY STREQUAL "rp2040")
|
||||
family_add_pico_pio_usb(${PROJECT})
|
||||
endif()
|
||||
|
@@ -26,8 +26,3 @@ target_include_directories(${PROJECT} PUBLIC
|
||||
# Configure compilation flags and libraries for the example without RTOS.
|
||||
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
|
||||
family_configure_host_example(${PROJECT} noos)
|
||||
|
||||
# Add pico-pio-usb for rp2040 since user can choose to run on bit-banging host
|
||||
if(FAMILY STREQUAL "rp2040")
|
||||
family_add_pico_pio_usb(${PROJECT})
|
||||
endif()
|
||||
|
@@ -38,8 +38,3 @@ target_include_directories(${PROJECT} PUBLIC
|
||||
# Configure compilation flags and libraries for the example without RTOS.
|
||||
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
|
||||
family_configure_host_example(${PROJECT} noos)
|
||||
|
||||
# Add pico-pio-usb for rp2040 since user can choose to run on bit-banging host
|
||||
if(FAMILY STREQUAL "rp2040")
|
||||
family_add_pico_pio_usb(${PROJECT})
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user