diff options
Diffstat (limited to 'utils/ipod')
-rw-r--r-- | utils/ipod/bin2note/Makefile | 14 | ||||
-rw-r--r-- | utils/ipod/bin2note/README | 5 |
2 files changed, 18 insertions, 1 deletions
diff --git a/utils/ipod/bin2note/Makefile b/utils/ipod/bin2note/Makefile index b5fd564d0a..985ed00da7 100644 --- a/utils/ipod/bin2note/Makefile +++ b/utils/ipod/bin2note/Makefile | |||
@@ -12,5 +12,17 @@ all: bin2note | |||
12 | bin2note: bin2note.c | 12 | bin2note: bin2note.c |
13 | gcc -W -Wall -o bin2note bin2note.c | 13 | gcc -W -Wall -o bin2note bin2note.c |
14 | 14 | ||
15 | test.htm: bin2note test.bin | ||
16 | ./bin2note test.bin test.htm | ||
17 | |||
18 | test.o: test.S | ||
19 | arm-elf-as -o $@ $< | ||
20 | |||
21 | test.elf: test.o | ||
22 | arm-elf-ld -e 0 -Ttext=0 -o $@ $< | ||
23 | |||
24 | test.bin: test.elf | ||
25 | arm-elf-objcopy -O binary $< $@ | ||
26 | |||
15 | clean: | 27 | clean: |
16 | rm -f bin2note | 28 | rm -f bin2note test.o test.elf test.bin test.htm |
diff --git a/utils/ipod/bin2note/README b/utils/ipod/bin2note/README index 40f285ccd5..0dbc9e465d 100644 --- a/utils/ipod/bin2note/README +++ b/utils/ipod/bin2note/README | |||
@@ -10,3 +10,8 @@ It is used to turn a blob of ARM code into an iPod notes file. This | |||
10 | ARM code will then be executed on the iPod. | 10 | ARM code will then be executed on the iPod. |
11 | 11 | ||
12 | It is known to work on the 2nd generation Nano. | 12 | It is known to work on the 2nd generation Nano. |
13 | |||
14 | |||
15 | The Makefile contains rules for compiling an ARM assembler file | ||
16 | "test.S" into a notes file "test.htm". Just put test.S in this | ||
17 | directory and type "make test.htm". | ||