Downloads
release
dev builds
extras
themes
Documentation
manual
wiki
device status
Support
forums
mailing lists
IRC
Development
bugs
patches
dev guide
Search
Search
| Go
Wiki
>
Main
>
HowToCompile
---+!! Build Your Own Rockbox Note: This page provides a high level overview for experienced c developers. For more detailed information, see DevelopmentGuide. %TOC% ---++ Before you start Do you have the cross compilers installed? Rockbox cannot be built on your standard compilers. Instructions for installing the cross compilers can be found at http://www.rockbox.org/wiki/CrossCompiler ---++ 1. Get the source Clone from our official repository. <pre> $ git clone git://git.rockbox.org/rockbox</pre> ---++ 2. Create a build directory Create a build directory, preferably in the same directory as the firmware/ and apps/ directories. This is where all generated files will be written. <pre> $ cd rockbox $ mkdir build $ cd build </pre> ---++ 3. Run configure In your build directory, run the 'tools/configure' script and enter what target you want to build for and kind of build you want to build. Normally you want to compile the normal build, which is also the default value at this promt. It'll prompt you. The debug version is for making a gdb version out of it. It is only useful if you run gdb towards your target Archos. <pre> $ ../tools/configure </pre> After you followed the instruction, it will automatically generate a Makefile for you. Note: Run <pre> $ ../tools/configure --help </pre> for more information and command line arguments, which enable you to automate building. ---++ 4. Working PATH Make sure you have the compiler and siblings in the PATH. Make sure that you have 'perl' in your PATH too. For ARM targets (Ipods, Sansa, Olympus, Toshiba, Iriver H10) this is <pre> $ which arm-elf-eabi-gcc $ which perl </pre> Or, If building for a Coldfire target (Iriver H100, H300; Iaudio M / X, MPIO): <pre> $ which m68k-elf-gcc </pre> Or, If building for an SH1 target (Archos) <pre> $ which sh-elf-gcc </pre> Or, If building for a MIPS target (Onda VX7x7) <pre> $ which mipsel-elf-gcc </pre> ---++ 5. Build Run 'make' in the build dir and soon the necessary pieces from the firmware and the apps directories have been compiled, linked and scrambled for you. <verbatim> $ make</verbatim> If you have a multicore processor, you might want to use it to its full potential to build faster : <verbatim> $ make -j</verbatim> ---++ 6. Install <verbatim> $ make zip</verbatim> Extract the newly created rockbox.zip file on your target, reboot it and smile. You can also just run the Rockbox binary from the Rockbox filebrowser and it'll be loaded and replace the currently running version. If you would like to build a full zip with the fonts included as well, you'd use this command line instead: <verbatim> $ make fullzip</verbatim> ---++ 7. Multiple Versions If you want to have more than one source tree on your PC, just alter the Git clone command a bit: <pre> $ git clone git://git.rockbox.org/rockbox rockbox_another_tree </pre> or extract the source archive in another folder. If you want to build for more than one target, just create several build directories and create a setup for each target: <pre> $ mkdir build-fmrecorder $ cd build-fmrecorder $ ../tools/configure $ mkdir build-player $ cd build-player $ ../tools/configure </pre> ---++ 8. Ui Simulator The Ui Simulator simulates Rockbox right on your PC. Please visit [[UiSimulator]] for more information about it.
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r21
<
r20
<
r19
<
r18
|
B
acklinks
|
V
iew topic
|
M
ore topic actions
r21 - 24 Jan 2012 - 12:24:19 -
MarcinBukat
Copyright © by the contributing authors.