diff options
author | Joel Stanley <joel@jms.id.au> | 2020-05-26 13:08:35 +0930 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-05-27 17:00:44 +1000 |
commit | 25bc42e754e76f7dd45048bcfb139fdba22e3e29 (patch) | |
tree | 80a1e25ab8cca6aba78e586d2256c532175feea4 | |
parent | b3bc9808f2d1396a946ae899b7d81d043eac1ddd (diff) |
powerpc: Fix Makefile rule when linking.
The linker script was included in the "$^" inputs, causing the build to
fail:
LINK build/firmware.elf
powerpc64le-linux-gnu-ld: error: linker script file 'powerpc.lds' appears multiple times
As a fix the linker script is left as a dependency of the elf, but only the
object files are linked.
-rw-r--r-- | ports/powerpc/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/powerpc/Makefile b/ports/powerpc/Makefile index 7aa4f1449..2e4dd0fd0 100644 --- a/ports/powerpc/Makefile +++ b/ports/powerpc/Makefile @@ -52,7 +52,7 @@ $(BUILD)/_frozen_mpy.c: frozentest.mpy $(BUILD)/genhdr/qstrdefs.generated.h $(BUILD)/firmware.elf: $(OBJ) powerpc.lds $(ECHO) "LINK $@" - $(Q)$(LD) $(LDFLAGS) -o $@ $^ $(LIBS) + $(Q)$(LD) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $(Q)$(SIZE) $@ $(BUILD)/firmware.bin: $(BUILD)/firmware.elf |