summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2019-07-19 15:16:37 +0200
committerFrank Gevaerts <frank@gevaerts.be>2019-07-19 15:16:37 +0200
commitb0de98ad3b1391ec0dfe4f8eced0a6833490cd8f (patch)
treefd5f2b9ca3b0825bb180e18f4396f77d41bc6da7 /tools
parent8bd992c5035bfee6aedbcae7669be5b823537aad (diff)
downloadrockbox-b0de98ad3b1391ec0dfe4f8eced0a6833490cd8f.tar.gz
rockbox-b0de98ad3b1391ec0dfe4f8eced0a6833490cd8f.tar.bz2
rockbox-b0de98ad3b1391ec0dfe4f8eced0a6833490cd8f.zip
Put -lfirmware in CORE_LIBS, to fix -thumb builds
For unknown reasons, -thumb builds need -lfirmware after -lrbcodec (but still before -lunwarminder)i. Other builds are still happy if we do that. Including it via CORE_LIBS instead of explicitly achieves that. Change-Id: Id69e4a0c042f90f71cfd9a72202ce4d8ef6a4181
Diffstat (limited to 'tools')
-rw-r--r--tools/root.make4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/root.make b/tools/root.make
index 0075ed2137..ecab921c87 100644
--- a/tools/root.make
+++ b/tools/root.make
@@ -247,7 +247,7 @@ $(LINKROM): $(ROMLDS)
# Having the latter first caused crashes on (at least) mini2g.
$(BUILDDIR)/rockbox.elf : $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS) $$(LINKRAM)
$(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJ) \
- -L$(BUILDDIR)/firmware -lfirmware \
+ -L$(BUILDDIR)/firmware \
-L$(RBCODEC_BLD)/codecs $(call a2lnk, $(VOICESPEEXLIB)) \
-L$(BUILDDIR)/lib $(call a2lnk, $(CORE_LIBS)) \
-lgcc $(CORE_LDOPTS) -T$(LINKRAM) \
@@ -255,7 +255,7 @@ $(BUILDDIR)/rockbox.elf : $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS) $$(LI
$(BUILDDIR)/rombox.elf : $$(OBJ) $(FIRMLIB) $(VOICESPEEXLIB) $(CORE_LIBS) $$(LINKROM)
$(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJ) \
- -L$(BUILDDIR)/firmware -lfirmware \
+ -L$(BUILDDIR)/firmware \
-L$(RBCODEC_BLD)/codecs $(call a2lnk, $(VOICESPEEXLIB)) \
-L$(BUILDDIR)/lib $(call a2lnk, $(CORE_LIBS)) \
-lgcc $(CORE_LDOPTS) -T$(LINKROM) \