Created
March 8, 2021 18:48
-
-
Save jepler/4d3687a746aa979a72984afc29852ee4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 17297374287daeaab37b4d8d4d6f8acc77300b75 Mon Sep 17 00:00:00 2001 | |
From: Jeff Epler <jepler@gmail.com> | |
Date: Mon, 8 Mar 2021 12:47:38 -0600 | |
Subject: [PATCH] raspberrypi: Reduce linker command length | |
--- | |
ports/raspberrypi/Makefile | 4 +++- | |
1 file changed, 3 insertions(+), 1 deletion(-) | |
diff --git a/ports/raspberrypi/Makefile b/ports/raspberrypi/Makefile | |
index ffd50299f..9c796dbcf 100644 | |
--- a/ports/raspberrypi/Makefile | |
+++ b/ports/raspberrypi/Makefile | |
@@ -278,8 +278,10 @@ SRC_QSTR += $(SRC_C) $(SRC_SUPERVISOR) $(SRC_COMMON_HAL_EXPANDED) $(SRC_SHARED_M | |
all: $(BUILD)/firmware.uf2 | |
$(BUILD)/firmware.elf: $(OBJ) link.ld | |
+ $(STEPECHO) "OBJS $@" | |
+ $(Q)echo $(OBJ) > $(BUILD)/firmware.objs | |
$(STEPECHO) "LINK $@" | |
- $(Q)$(CC) -o $@ $(LDFLAGS) $(OBJ) | |
+ $(Q)$(CC) -o $@ $(LDFLAGS) @$(BUILD)/firmware.objs | |
$(Q)$(SIZE) $@ | $(PYTHON3) $(TOP)/tools/build_memory_info.py link.ld | |
$(BUILD)/firmware.bin: $(BUILD)/firmware.elf | |
-- | |
2.20.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment