mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
mks5lboot v1.0 - dualboot installer for s5l8702 targets
A tool to install/uninstall a bootloader into a s5l8702 based device: - iPod Classic 6G - iPod Nano 3G (TODO) See mks5lboot/README for detailed info. Change-Id: I451d2aaff34509ebd356e4660647e5222c5d3409
This commit is contained in:
parent
eefc7c73e2
commit
346423c040
16 changed files with 3226 additions and 0 deletions
35
rbutil/mks5lboot/Makefile
Normal file
35
rbutil/mks5lboot/Makefile
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
# \/ \/ \/ \/ \/
|
||||
CFLAGS += -Wall -Wextra
|
||||
|
||||
OUTPUT = mks5lboot
|
||||
|
||||
# inputs for lib
|
||||
LIBSOURCES := dualboot.c mkdfu.c ipoddfu.c
|
||||
# inputs for binary only
|
||||
SOURCES := $(LIBSOURCES) main.c
|
||||
# dependencies for binary
|
||||
EXTRADEPS :=
|
||||
|
||||
ifeq ($(findstring MINGW,$(shell uname)),MINGW)
|
||||
LDOPTS += -lsetupapi
|
||||
# optional libusb support on Windows
|
||||
ifdef DISABLE_LIBUSBAPI
|
||||
CFLAGS += -DNO_LIBUSBAPI
|
||||
else
|
||||
LDOPTS += -Wl,-Bstatic -lusb-1.0
|
||||
endif
|
||||
else
|
||||
# Linux, OS X
|
||||
LDOPTS += -lusb-1.0
|
||||
endif
|
||||
|
||||
include ../libtools.make
|
||||
|
||||
# explicit dependencies on dualboot.{c,h} and mks5lboot.h
|
||||
$(OBJDIR)mks5lboot.o: dualboot.h dualboot.c mks5lboot.h
|
||||
$(OBJDIR)main.o: dualboot.h dualboot.c main.c mks5lboot.h
|
||||
Loading…
Add table
Add a link
Reference in a new issue