summaryrefslogtreecommitdiffstats
path: root/www/sh-win/index.t
blob: ef52116aca767ec4300b3a92b5adf762fde06eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#define _PAGE_ Setting up an SH-1 compiler for Windows
#include "head.t"

<P>
	by <A href="mailto:edx@codeforce.d2g.com">Felix Arends</A>, 1/8/2002
	<BR>
</P>
<P>
	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.
	<H2>
		The GNU-SH Tool Chain for Windows
	</H2>
<P></P>
This is actually all you need to download. It includes the binutils, gcc and 
newlib. Download the GNUSH Tool Chain for ELF format (35 MB).
<P>
	The GNUSH website can be found at <a href="http://www.kpit.com/download/downloadgnushv0203.htm">
		http://www.kpit.com/download/downloadgnushv0203.htm</a> (source code is 
	also available there). Get the "GNUSH v0203 Tool Chain for ELF format".
	<H2>
		Setting up&nbsp;the Compiler
	</H2>
<P></P>
<P>Install the GNUSH Tool Chain (nothing you really have to care about during the 
	installation process).</P>
<P>
	<H2>Compiling the latest Rockbox Source
	</H2>
<P>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 <a href="scramble.exe">here</a>.
	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:</P>
<P>
	<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="100%" border="1">
		<TR>
			<TD>Command</TD>
			<TD>Description</TD>
		</TR>
		<TR>
			<TD>make -f win32.mak<BR>
				make -f win32.mak RECORDER = 1</TD>
			<TD vAlign="top">build for recorder target</TD>
		</TR>
		<TR>
			<TD>make -f win32.mak PLAYER</TD>
			<TD>build for player target</TD>
		</TR>
		<TR>
			<TD>make -f win32.mak PLAYER_OLD</TD>
			<TD>build for old player target</TD>
		</TR>
		<TR>
			<TD>make -f win32.mak RECORDER=1 DISABLE_GAMES=1</TD>
			<TD>build for recorder target, disable games</TD>
		</TR>
		<TR>
			<TD vAlign="top">make -f win32.mak RECORDER=1 PROPFONTS=1</TD>
			<TD>build for recorder target, enable propfonts</TD>
		</TR>
		<TR>
			<TD vAlign="top">make -f win32.mak RECORDER=1 PROPFONTS=1&nbsp;DISABLE_GAMES = 
				1&nbsp;</TD>
			<TD>build for recorder target, disable games, use propfonts</TD>
		</TR>
	</TABLE>
</P>
<P>
	I hope this tutorial helped you to compile an Archos firmware with windows. If 
	you have any questions, comments or corrections, please mail to <A href="mailto:edx@go.cc">
		edx@go.cc</A>
</P>
#include "foot.t"