diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-05-25 23:44:51 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-05-25 23:44:51 +0000 |
commit | 7d1cd165211ded30e22a7184d0ef615543c40d60 (patch) | |
tree | 707587983c9e155109f0d129cc4e15f1babf4b24 | |
parent | db1cda87a664c00d26d2f7d63b78c11fe01035b6 (diff) | |
download | rockbox-7d1cd165211ded30e22a7184d0ef615543c40d60.tar.gz rockbox-7d1cd165211ded30e22a7184d0ef615543c40d60.zip |
for sh, get and apply the proper rockbox patch as well
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9992 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-x | tools/rockboxdev.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh index 302bb57672..b5a13cb9df 100755 --- a/tools/rockboxdev.sh +++ b/tools/rockboxdev.sh | |||
@@ -69,6 +69,8 @@ case $arch in | |||
69 | [Ss]) | 69 | [Ss]) |
70 | target="sh-elf" | 70 | target="sh-elf" |
71 | gccver="4.0.3" | 71 | gccver="4.0.3" |
72 | gccurl="http://www.rockbox.org/twiki/pub/Main/CrossCompiler" | ||
73 | gccpatch="gcc-4.0.3-rockbox-1.diff" | ||
72 | ;; | 74 | ;; |
73 | [Mm]) | 75 | [Mm]) |
74 | target="m68k-elf" | 76 | target="m68k-elf" |
@@ -93,6 +95,9 @@ bindir="$prefix/$target/bin" | |||
93 | echo "Summary:" | 95 | echo "Summary:" |
94 | echo "Target: $target" | 96 | echo "Target: $target" |
95 | echo "gcc $gccver" | 97 | echo "gcc $gccver" |
98 | if test -n "$gccpatch"; then | ||
99 | echo "gcc patch $gccpatch" | ||
100 | fi | ||
96 | echo "binutils $binutils" | 101 | echo "binutils $binutils" |
97 | echo "install in $prefix/$target" | 102 | echo "install in $prefix/$target" |
98 | echo "" | 103 | echo "" |
@@ -111,6 +116,13 @@ else | |||
111 | getfile gcc-$gccver.tar.bz2 ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$gccver | 116 | getfile gcc-$gccver.tar.bz2 ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$gccver |
112 | fi | 117 | fi |
113 | 118 | ||
119 | if test -n "$gccpatch"; then | ||
120 | if test -f "$dlwhere/$gccpatch"; then | ||
121 | echo "$gccpatch already downloaded" | ||
122 | else | ||
123 | getfile "$gccpatch" "$gccurl" | ||
124 | fi | ||
125 | fi | ||
114 | 126 | ||
115 | mkdir build-rbdev | 127 | mkdir build-rbdev |
116 | cd build-rbdev | 128 | cd build-rbdev |
@@ -119,6 +131,11 @@ tar xjf $dlwhere/binutils-$binutils.tar.bz2 | |||
119 | echo "extracting gcc" | 131 | echo "extracting gcc" |
120 | tar xf $dlwhere/gcc-$gccver.tar.bz2 | 132 | tar xf $dlwhere/gcc-$gccver.tar.bz2 |
121 | 133 | ||
134 | if test -n "$gccpatch"; then | ||
135 | echo "applying gcc patch" | ||
136 | patch -p0 < "$dlwhere/$gccpatch" | ||
137 | fi | ||
138 | |||
122 | mkdir build-binu | 139 | mkdir build-binu |
123 | cd build-binu | 140 | cd build-binu |
124 | ../binutils-$binutils/configure --target=$target --prefix=$prefix/$target | 141 | ../binutils-$binutils/configure --target=$target --prefix=$prefix/$target |