You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/07/23 06:36:56 UTC

[incubator-nuttx] branch master updated: Ability to use newer pico-sdk with RP2040 builds (Issue #4919)

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 421b8ae3e7 Ability to use newer pico-sdk with RP2040 builds (Issue #4919)
421b8ae3e7 is described below

commit 421b8ae3e72d8d0a1664351dfddd45edaaacebc1
Author: curuvar <58...@users.noreply.github.com>
AuthorDate: Fri Jul 22 19:18:33 2022 -0400

    Ability to use newer pico-sdk with RP2040 builds (Issue #4919)
---
 arch/arm/src/rp2040/boot2/Make.defs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/src/rp2040/boot2/Make.defs b/arch/arm/src/rp2040/boot2/Make.defs
index afbbbc3ef7..4cd3d5c39b 100644
--- a/arch/arm/src/rp2040/boot2/Make.defs
+++ b/arch/arm/src/rp2040/boot2/Make.defs
@@ -46,6 +46,10 @@ $(BOOT_STAGE2).bin: %.bin: %.elf
 	$(OBJCOPY) -Obinary $< $@
 
 $(BOOT_STAGE2).elf: $(BOOT2SRC)
+	$(Q) touch $(PICO_SDK_PATH)/src/common/pico_base/include/pico/version.h
+	$(Q) touch $(PICO_SDK_PATH)/src/common/pico_base/include/pico/config_autogen.h
 	$(CC) -nostdlib $(ARCHSCRIPT) $(BOOT2CFLAGS) -o $@ $<
+	$(DELFILE) $(PICO_SDK_PATH)/src/common/pico_base/include/pico/version.h
+	$(DELFILE) $(PICO_SDK_PATH)/src/common/pico_base/include/pico/config_autogen.h
 
 EXTRADELFILE = $(BOOT_STAGE2).*