From 0aa7854d5b3f6a7a3756f8e4c8243d38e301c95b Mon Sep 17 00:00:00 2001 From: Bill Sideris Date: Mon, 19 Jun 2023 18:00:49 +0300 Subject: [PATCH 1/4] Update pico-sdk to 1.5.1 --- ports/raspberrypi/sdk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/raspberrypi/sdk b/ports/raspberrypi/sdk index 2ccab115de..6a7db34ff6 160000 --- a/ports/raspberrypi/sdk +++ b/ports/raspberrypi/sdk @@ -1 +1 @@ -Subproject commit 2ccab115de0d42d31d6611cca19ef0cd0d2ccaa7 +Subproject commit 6a7db34ff63345a7badec79ebea3aaef1712f374 From e139cd9ec06bdb3dd0520d6774809d33c1b9275a Mon Sep 17 00:00:00 2001 From: Bill Sideris Date: Wed, 21 Jun 2023 01:35:52 +0300 Subject: [PATCH 2/4] Update cyw43 to 1.0.1 --- ports/raspberrypi/lib/cyw43-driver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/raspberrypi/lib/cyw43-driver b/ports/raspberrypi/lib/cyw43-driver index e52dd14a15..8ef38a6d32 160000 --- a/ports/raspberrypi/lib/cyw43-driver +++ b/ports/raspberrypi/lib/cyw43-driver @@ -1 +1 @@ -Subproject commit e52dd14a15e6a53e6263840704470246aa77c5ce +Subproject commit 8ef38a6d32c54f850bff8f189bdca19ded33792a From 112f0fd7675960f7cbf403882364e67e5ee39309 Mon Sep 17 00:00:00 2001 From: Bill Sideris Date: Wed, 21 Jun 2023 01:43:10 +0300 Subject: [PATCH 3/4] Add `-Wno-undef` to rp2 makefile for sdk --- ports/raspberrypi/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/raspberrypi/Makefile b/ports/raspberrypi/Makefile index 7eb67b77ba..9c7c8549ca 100644 --- a/ports/raspberrypi/Makefile +++ b/ports/raspberrypi/Makefile @@ -142,6 +142,7 @@ INC += \ -Isdk_config \ -I../../lib/tinyusb/src \ -I../../supervisor/shared/usb \ + -I../bindings/cyw43/__init__.h \ -I$(BUILD) # Pico specific configuration @@ -171,7 +172,7 @@ else endif # Remove -Wno-stringop-overflow after we can test with CI's GCC 10. Mac's looks weird. -DISABLE_WARNINGS = -Wno-stringop-overflow -Wno-cast-align +DISABLE_WARNINGS = -Wno-stringop-overflow -Wno-cast-align -Wno-undef CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) $(DISABLE_WARNINGS) -Werror=missing-prototypes From 67c5563eec5b34dd66d64685feedb058666fc0cb Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Thu, 3 Aug 2023 10:18:19 -0500 Subject: [PATCH 4/4] Apply -Wno-undef to just the needed file & remove incorrect -I arg --- ports/raspberrypi/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/raspberrypi/Makefile b/ports/raspberrypi/Makefile index 9c7c8549ca..81af77706c 100644 --- a/ports/raspberrypi/Makefile +++ b/ports/raspberrypi/Makefile @@ -142,7 +142,6 @@ INC += \ -Isdk_config \ -I../../lib/tinyusb/src \ -I../../supervisor/shared/usb \ - -I../bindings/cyw43/__init__.h \ -I$(BUILD) # Pico specific configuration @@ -172,7 +171,7 @@ else endif # Remove -Wno-stringop-overflow after we can test with CI's GCC 10. Mac's looks weird. -DISABLE_WARNINGS = -Wno-stringop-overflow -Wno-cast-align -Wno-undef +DISABLE_WARNINGS = -Wno-stringop-overflow -Wno-cast-align CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) $(DISABLE_WARNINGS) -Werror=missing-prototypes @@ -237,6 +236,7 @@ SRC_SDK := \ SRC_SDK := $(addprefix sdk/, $(SRC_SDK)) $(patsubst %.c,$(BUILD)/%.o,$(SRC_SDK) $(SRC_CYW43)): CFLAGS += -Wno-missing-prototypes -Wno-undef -Wno-unused-function -Wno-nested-externs -Wno-strict-prototypes -Wno-double-promotion -Wno-sign-compare -Wno-unused-variable -Wno-strict-overflow -Ilib/cyw43-driver +$(BUILD)/sdk/src/rp2_common/pico_standard_link/crt0.o: CFLAGS += -Wno-undef SRC_C += \ boards/$(BOARD)/board.c \