Skip to content

Commit a61bc35

Browse files
committed
lib/cyw43-driver: Pass STATIC macro value for external library build.
As noted in comments, this can be removed once the library is updated to not use STATIC macro. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent 2465c82 commit a61bc35

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

extmod/extmod.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ ifeq ($(MICROPY_PY_NETWORK_CYW43),1)
409409
CYW43_DIR = lib/cyw43-driver
410410
GIT_SUBMODULES += $(CYW43_DIR)
411411
CFLAGS_EXTMOD += -DMICROPY_PY_NETWORK_CYW43=1
412+
CFLAGS_THIRDPARTY += -DSTATIC=static # Remove once lib/cyw43-driver no longer uses STATIC macro
412413
SRC_THIRDPARTY_C += $(addprefix $(CYW43_DIR)/src/,\
413414
cyw43_ctrl.c \
414415
cyw43_lwip.c \

ports/rp2/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,12 @@ if (MICROPY_PY_NETWORK_CYW43)
348348
${MICROPY_DIR}/lib/cyw43-driver/
349349
)
350350

351+
# Can be removed once lib/cyw43-driver submodule no longer uses STATIC
352+
set_source_files_properties(
353+
${PICO_CYW43_DRIVER_PATH}/src/cyw43_lwip.c
354+
PROPERTIES
355+
COMPILE_OPTIONS
356+
-DSTATIC=static)
351357
endif()
352358

353359
if (MICROPY_PY_NETWORK_NINAW10)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy