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:
Ha Thach
2023-08-07 11:14:04 +07:00
committed by GitHub
7 changed files with 20 additions and 34 deletions

View File

@@ -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