diff options
author | Thomas Martitz <kugel@rockbox.org> | 2012-03-26 23:55:02 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2012-03-26 23:55:02 +0200 |
commit | 045c69c51d541c90f133abcb94f32f9323ed8c6e (patch) | |
tree | 43d4a9c3c5e487945bd98581a5c5199fc0d6e211 | |
parent | d26bbb9cfb4dc9b11b790ba428d3a8787bce61bb (diff) |
Fix bootloaders.
Change-Id: I7e1666d604c554509375a4ae858ff3cd7be96b3a
-rw-r--r-- | bootloader/bootloader.make | 13 | ||||
-rw-r--r-- | tools/root.make | 4 |
2 files changed, 7 insertions, 10 deletions
diff --git a/bootloader/bootloader.make b/bootloader/bootloader.make index f57fac0e42..88305f3c89 100644 --- a/bootloader/bootloader.make +++ b/bootloader/bootloader.make @@ -18,20 +18,15 @@ CLEANOBJS += $(BUILDDIR)/bootloader.* .SECONDEXPANSION: -ifeq (arm,$(ARCH)) - UNWARMINDER_LINK := -lunwarminder -L$(BUILDDIR)/lib -else - UNWARMINDER_LINK := -endif - $(BOOTLINK): $(BOOTLDS) $(CONFIGFILE) $(call PRINTS,PP $(@F)) $(call preprocess2file,$<,$@,-DLOADADDRESS=$(LOADADDRESS)) -$(BUILDDIR)/bootloader.elf: $$(OBJ) $$(FIRMLIB) $$(UNWARMINDER) $$(BOOTLINK) +$(BUILDDIR)/bootloader.elf: $$(OBJ) $(FIRMLIB) $(CORE_LIBS) $$(BOOTLINK) $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -Os -nostdlib -o $@ $(OBJ) \ - $(FIRMLIB) $(UNWARMINDER_LINK) -lgcc -L$(BUILDDIR)/firmware \ - -T$(BOOTLINK) $(GLOBAL_LDOPTS) \ + -L$(BUILDDIR)/firmware -lfirmware \ + -L$(BUILDDIR)/lib $(call a2lnk, $(CORE_LIBS)) \ + -lgcc -T$(BOOTLINK) $(GLOBAL_LDOPTS) \ -Wl,--gc-sections -Wl,-Map,$(BUILDDIR)/bootloader.map $(BUILDDIR)/bootloader.bin : $(BUILDDIR)/bootloader.elf diff --git a/tools/root.make b/tools/root.make index 861f017a82..4a8d2adf16 100644 --- a/tools/root.make +++ b/tools/root.make @@ -66,8 +66,10 @@ include $(TOOLSDIR)/tools.make ifeq (,$(findstring checkwps,$(APPSDIR))) ifeq (,$(findstring database,$(APPSDIR))) include $(FIRMDIR)/firmware.make - include $(ROOTDIR)/lib/skin_parser/skin_parser.make include $(ROOTDIR)/apps/bitmaps/bitmaps.make + ifeq (,$(findstring bootloader,$(APPSDIR))) + include $(ROOTDIR)/lib/skin_parser/skin_parser.make + endif endif endif |