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 2023/02/06 20:40:51 UTC

[nuttx] 05/06: arm/rp2040: fix compile warning on boot2 build

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/nuttx.git

commit 1b245664ad665679fbee494994e0cf3ed0acea4b
Author: chao an <an...@xiaomi.com>
AuthorDate: Mon Feb 6 17:29:07 2023 +0800

    arm/rp2040: fix compile warning on boot2 build
    
    ld: warning: boards/arm/rp2040/raspberrypi-pico-w/scripts/raspberrypi-pico-flash.ld contains output sections; did you forget -T?
    Signed-off-by: chao an <an...@xiaomi.com>
---
 arch/arm/src/rp2040/boot2/Make.defs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/rp2040/boot2/Make.defs b/arch/arm/src/rp2040/boot2/Make.defs
index 4cd3d5c39b..9d5cd01e9d 100644
--- a/arch/arm/src/rp2040/boot2/Make.defs
+++ b/arch/arm/src/rp2040/boot2/Make.defs
@@ -48,7 +48,7 @@ $(BOOT_STAGE2).bin: %.bin: %.elf
 $(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 $@ $<
+	$(CC) -nostdlib -T$(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