mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
sansapatcher: allow building without bootloaders.
There is no need to always build sansapatcher with embedded bootloaders. Allow building without similar to ipodpatcher. Interactive mode will obviously not be available if built without bootloaders. Fix rules for creating the source files for the embedded bootloaders. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31328 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
472c02d0f7
commit
1828bb8ea3
2 changed files with 13 additions and 1 deletions
|
|
@ -11,7 +11,6 @@ CFLAGS += -Wall -W -D_LARGEFILE64_SOURCE
|
|||
OUTPUT = sansapatcher
|
||||
|
||||
# inputs
|
||||
BOOTSRC = bootimg_c200.c bootimg_e200.c
|
||||
LIBSOURCES := sansapatcher.c sansaio-posix.c sansaio-win32.c
|
||||
SOURCES := $(LIBSOURCES) main.c
|
||||
# additional link dependencies for the standalone executable
|
||||
|
|
@ -25,6 +24,7 @@ BOOTOBJS=1
|
|||
endif
|
||||
|
||||
ifdef WITH_BOOTOBJS
|
||||
BOOTSRC = bootimg_c200.c bootimg_e200.c
|
||||
SOURCES += $(BOOTSRC)
|
||||
CFLAGS += -DWITH_BOOTOBJS
|
||||
endif
|
||||
|
|
@ -37,6 +37,7 @@ ifeq ($(findstring exe,$(BINARY)),exe)
|
|||
$(BINARY): $(OBJDIR)sansapatcher-rc.o
|
||||
endif
|
||||
|
||||
$(OBJDIR)main.o: $(BOOTSRC)
|
||||
$(OBJDIR)sansapatcher-rc.o: sansapatcher.rc sansapatcher.manifest
|
||||
$(WINDRES) -i sansapatcher.rc -o sansapatcher-rc.o
|
||||
|
||||
|
|
@ -47,5 +48,6 @@ bootimg_c200.c: firmware.mi4 ../tools/bin2c
|
|||
bootimg_e200.c: PP5022.mi4 ../tools/bin2c
|
||||
@echo BIN2C $<
|
||||
$(SILENT)../tools/bin2c PP5022.mi4 bootimg_e200
|
||||
|
||||
../tools/bin2c:
|
||||
$(SILENT)make -C ../tools bin2c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue