diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh index 595a26a..cfc589f 100755 --- a/tools/rockboxdev.sh +++ b/tools/rockboxdev.sh @@ -236,7 +236,14 @@ gccurl="http://www.rockbox.org/gcc" case $arch in [Ss]) target="sh-elf" - gccpatch="gcc-4.0.3-rockbox-1.diff" + case $system in + MINGW*) + gccpatch="gcc-4.0.3-rockbox-1-mingw.diff" + ;; + *) + gccpatch="gcc-4.0.3-rockbox-1.diff" + ;; + esac ;; [Mm]) target="m68k-elf" @@ -253,13 +260,23 @@ case $arch in ;; esac ;; + MINGW*) + gccpatch="gcc-3.4.6-mingw.patch" + ;; *) ;; esac ;; [Aa]) target="arm-elf" - gccpatch="rockbox-multilibs-arm-elf-gcc-4.0.3_2.diff" + case $system in + MINGW*) + gccpatch="rockbox-multilibs-arm-elf-gcc-4.0.3_2-mingw.diff" + ;; + *) + gccpatch="rockbox-multilibs-arm-elf-gcc-4.0.3_2.diff" + ;; + esac ;; [Ii]) target="mipsel-elf" @@ -272,6 +289,9 @@ case $arch in Interix) gccpatch="gcc-4.1.2-interix.diff" ;; + MINGW*) + gccpatch="gcc-4.1.2-mingw.diff" + ;; *) ;; esac @@ -282,6 +302,13 @@ case $arch in ;; esac +# When gcc build on MinGW, "ln -s" does not use. +case $arch in + MINGW*) + export ac_cv_prog_LN_S=ln + ;; +esac + bindir="$prefix/$target/bin" if test -n $pathadd; then pathadd="$pathadd:$bindir"