diff options
author | Cástor Muñoz <cmvidal@gmail.com> | 2016-02-04 23:05:17 +0100 |
---|---|---|
committer | Cástor Muñoz <cmvidal@gmail.com> | 2017-04-14 00:03:42 +0200 |
commit | 346423c040fe4ac31dae7c1afcb1d853cc80635c (patch) | |
tree | bd8dd4c55f083a1162f7019188977213a20dc41c /rbutil/mks5lboot/Makefile | |
parent | eefc7c73e2495decdc6f242515696fe0e3f85609 (diff) | |
download | rockbox-346423c040fe4ac31dae7c1afcb1d853cc80635c.tar.gz rockbox-346423c040fe4ac31dae7c1afcb1d853cc80635c.zip |
mks5lboot v1.0 - dualboot installer for s5l8702 targetsmks5lboot_1.0
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
Diffstat (limited to 'rbutil/mks5lboot/Makefile')
-rw-r--r-- | rbutil/mks5lboot/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/rbutil/mks5lboot/Makefile b/rbutil/mks5lboot/Makefile new file mode 100644 index 0000000000..ba118eefd0 --- /dev/null +++ b/rbutil/mks5lboot/Makefile | |||
@@ -0,0 +1,35 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | CFLAGS += -Wall -Wextra | ||
8 | |||
9 | OUTPUT = mks5lboot | ||
10 | |||
11 | # inputs for lib | ||
12 | LIBSOURCES := dualboot.c mkdfu.c ipoddfu.c | ||
13 | # inputs for binary only | ||
14 | SOURCES := $(LIBSOURCES) main.c | ||
15 | # dependencies for binary | ||
16 | EXTRADEPS := | ||
17 | |||
18 | ifeq ($(findstring MINGW,$(shell uname)),MINGW) | ||
19 | LDOPTS += -lsetupapi | ||
20 | # optional libusb support on Windows | ||
21 | ifdef DISABLE_LIBUSBAPI | ||
22 | CFLAGS += -DNO_LIBUSBAPI | ||
23 | else | ||
24 | LDOPTS += -Wl,-Bstatic -lusb-1.0 | ||
25 | endif | ||
26 | else | ||
27 | # Linux, OS X | ||
28 | LDOPTS += -lusb-1.0 | ||
29 | endif | ||
30 | |||
31 | include ../libtools.make | ||
32 | |||
33 | # explicit dependencies on dualboot.{c,h} and mks5lboot.h | ||
34 | $(OBJDIR)mks5lboot.o: dualboot.h dualboot.c mks5lboot.h | ||
35 | $(OBJDIR)main.o: dualboot.h dualboot.c main.c mks5lboot.h | ||