#define _PAGE_ Setting up an SH-1 compiler for Windows #include "head.t"
by Felix Arends, 1/8/2002
I have spent a long time figuring out how to compile SH1 code in windows (using the sh-elf-gcc compiler) and when I finally compiled the first OS for my Jukebox I decided to write a little tutorial explaining the setup process.
The GNUSH website can be found at http://www.kpit.com/download/downloadgnushv0203.htm (source code is also available there). Get the "GNUSH v0203 Tool Chain for ELF format".
Install the GNUSH Tool Chain (nothing you really have to care about during the installation process).
Use CVS to download the latest source code of Rockbox (the firmware and apps modules). In addition, you need to copy a win32 compilation of scramble.exe into the apps dir. The pre-compiled scramble.exe can be downloaded here. From your start menu, open the "SH-ELF tool chain" batch file inside the GNU-SH v0203 program folder. You should end up seeing a command prompt. Go to the apps directory and type:
Command | Description |
make -f win32.mak make -f win32.mak RECORDER = 1 |
build for recorder target |
make -f win32.mak PLAYER | build for player target |
make -f win32.mak PLAYER_OLD | build for old player target |
make -f win32.mak RECORDER=1 DISABLE_GAMES=1 | build for recorder target, disable games |
make -f win32.mak RECORDER=1 PROPFONTS=1 | build for recorder target, enable propfonts |
make -f win32.mak RECORDER=1 PROPFONTS=1 DISABLE_GAMES = 1 | build for recorder target, disable games, use propfonts |
I hope this tutorial helped you to compile an Archos firmware with windows. If you have any questions, comments or corrections, please mail to edx@go.cc
#include "foot.t"