blob: e8cc69f33847fc9d01ec815b793e188a11f2087d [file] [log] [blame]
Robert Hak40bafc52002-08-21 10:19:23 +00001 __________ __ ___.
2 Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 \/ \/ \/ \/ \/
7
Daniel Stenberge083a1d2003-02-20 21:01:57 +00008Build Your Own Rockbox
Robert Hak40bafc52002-08-21 10:19:23 +00009
Daniel Stenberge083a1d2003-02-20 21:01:57 +0000101. Check out 'rockbox' from CVS (or possibly from a downloaded archive). You
11 may possibly want to check out 'rockbox-devel' instead, since that includes
12 the simulator code (for trying out things on host before making target
13 tests).
Robert Hak40bafc52002-08-21 10:19:23 +000014
Robert Hak5f84df92002-08-21 10:22:49 +000015 If you do want to play with the simulator, read UISIMULATOR.
16
Robert Hak40bafc52002-08-21 10:19:23 +0000172. Build the tools by running 'make' in the tools/ directory.
18
193. Create your own build directory, preferably in the same directory as the
20 firmware/ and apps/ directories. This is where all generated files will be
21 put.
22
234. In your build directory, run the 'tools/configure' script and enter what
Daniel Stenberge083a1d2003-02-20 21:01:57 +000024 target you want to build for and if you want a debug version or not (and a
25 few more questions). It'll prompt you. The debug version is for making a
26 gdb version out of it. It is only useful if you run gdb towards your target
27 Archos.
Robert Hak40bafc52002-08-21 10:19:23 +000028
Daniel Stenberge083a1d2003-02-20 21:01:57 +0000295. *ploink*. Now you have got a Makefile generated for you.
Robert Hak40bafc52002-08-21 10:19:23 +000030
Daniel Stenberg5059ce52002-11-29 10:21:55 +0000316. Make sure you have sh-elf-gcc and siblings in the PATH. Make sure that you
32 have 'perl' in your PATH too.
Robert Hak40bafc52002-08-21 10:19:23 +000033
Daniel Stenberg5059ce52002-11-29 10:21:55 +0000347. Run 'make' and soon the necessary pieces from the firmware and the apps
35 directories have been compiled, linked and scrambled for you.
36
Daniel Stenberge083a1d2003-02-20 21:01:57 +0000378. Copy the archos.mod or ajbrec.ajz file to your archos, reboot it and
38 *smile*. Recent Rockbox versions need no reboots, just PLAY a new rockbox
39 version and that'll be loaded and replace the currently running version.
Robert Hak40bafc52002-08-21 10:19:23 +000040
41Whenever the tools/configure script gets updated, you can make your makefile
42updated too by running 'tools/configure update'
43
44If you want to build for more than one target, just create a new build
45directory and create a setup for another target combination in there.
46
47Questions anyone? Take them to the mailing list. We'll be happy to help you
48out!