Commit graph

50 commits

Author SHA1 Message Date
Dave Chapman
4c41a2d428 Add quotes around the name of any missing tools (patch, make etc) to help clarify the error message
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21983 a1c6a512-1295-4272-9138-f99709370657
2009-07-20 17:30:33 +00:00
Robert Keevil
eea149bd13 FS#10436 - add the Sansa View to the build system. The bootloader builds but doesn't do anything useful yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21848 a1c6a512-1295-4272-9138-f99709370657
2009-07-13 21:09:39 +00:00
Dave Chapman
f85c0c67de Revert r20704 and only use the -r option when compiling binutils. This is good enough to fix compilation of the toolchains on OSX, but doesn't break compiling the m68k gcc, which makes use of built-ins and hence doesn't work with -r.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20899 a1c6a512-1295-4272-9138-f99709370657
2009-05-10 18:11:09 +00:00
Robert Menes
a0ff7d0fa9 Commit FS#10108 by myself: use the -r option for gmake and make when building the Rockbox dev environment. This was needed for Mac OS X especially; the -r option makes gmake and make ignore their own rules and use the rules set by rockboxdev.sh; thanks to Dave Chapman for the idea.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20704 a1c6a512-1295-4272-9138-f99709370657
2009-04-13 22:14:14 +00:00
Thomas Martitz
0eb9288056 Make rockboxdev.sh building multiple targets in a run work again by not complaining if build dir exists. Small other fixes too, like for clearing the build folders or showing the summaries.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20677 a1c6a512-1295-4272-9138-f99709370657
2009-04-10 15:35:24 +00:00
Dave Chapman
57ce975cfb When rockboxdev.sh temporarily adds $bindir to the PATH (so the gcc build can find the matching binutils), put it at the start, just in case the user has an old (and incompatible) target-binutils around.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20346 a1c6a512-1295-4272-9138-f99709370657
2009-03-17 20:53:02 +00:00
Thomas Martitz
23722d5ff4 Oops, I cut&pasted a bit too much.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20305 a1c6a512-1295-4272-9138-f99709370657
2009-03-12 16:48:58 +00:00
Thomas Martitz
56973b43a6 rockboxdev.sh: Fix summary (it ended up in the wrong path after my previous commit to this file)
Also, check if the prefix dir exists before checking write permissions to avoid confusing error messages.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20303 a1c6a512-1295-4272-9138-f99709370657
2009-03-12 16:35:03 +00:00
Thomas Martitz
074bc6c09a Rearrange a bit, so that it checks for the build dir after downloading, makes it a bit more obvious that redownloading isn't needed, but only deletion of the build dir.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20099 a1c6a512-1295-4272-9138-f99709370657
2009-02-24 20:53:04 +00:00
Jonas Häggqvist
36122cac6a rockboxdev.sh now respects the environment variables RBDEV_DOWNLOAD, RBDEV_PREFIX and RBDEV_BUILD to enable setting download, install and build directories without editing the script. FS#9657 by Eric Shattow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19725 a1c6a512-1295-4272-9138-f99709370657
2009-01-08 20:00:10 +00:00
Daniel Stenberg
e419aca849 hide the which gmake errors, a part of the patch in FS#9338 by Tomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19288 a1c6a512-1295-4272-9138-f99709370657
2008-12-01 13:24:33 +00:00
Rafaël Carré
d195349779 Use CFLAGS=-U_FORTIFY_SOURCE for binutils and gcc configuration
Ubuntu introduced (in 8.10) strict buidtime and runtime checks with the
define _FORTIFY_SOURCE
Undefine it to fix:
    - building of gcc
    - runtime of as

(Tested for arm-elf target)

The previous fix for gcc would have no effect because gcc's configure
doesn't substitute CPPFLAGS variable in Makefiles

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18938 a1c6a512-1295-4272-9138-f99709370657
2008-10-30 20:54:46 +00:00
Rafaël Carré
593809c1a9 Make rockboxdev.sh abort as soon as an error is encountered
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18923 a1c6a512-1295-4272-9138-f99709370657
2008-10-29 16:02:06 +00:00
Daniel Stenberg
3bfc51d894 set "CPPFLAGS=-U_FORTIFY_SOURCE" when the gcc configure is invoked to make it
work fine on the latest Ubuntu as well


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18918 a1c6a512-1295-4272-9138-f99709370657
2008-10-29 08:32:34 +00:00
Jens Arnold
ced0adc527 Make the MIPS toolchain build on gcc 4.3+.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18766 a1c6a512-1295-4272-9138-f99709370657
2008-10-11 10:16:50 +00:00
Jens Arnold
e10a5a5ef5 Revert unnecessary fix for broken Interix-gcc 4.2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18670 a1c6a512-1295-4272-9138-f99709370657
2008-09-30 07:21:31 +00:00
Jens Arnold
a28154940d Fixes for building the MIPS toolchain on Interix: (1) Binutils need -Werror disabled, because compiling binutils (and also gcc) spits a lot of alignment warings. (2) Gcc tries to call 'sh' without path in by default (#!sh), but Interix 3.5+ doesn't allow that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18666 a1c6a512-1295-4272-9138-f99709370657
2008-09-29 20:31:31 +00:00
Jens Arnold
aa8a76b659 Interix also doesn't like the m68040.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18661 a1c6a512-1295-4272-9138-f99709370657
2008-09-28 21:48:33 +00:00
Dominik Riebeling
9228a38168 Allow arbitrary compiler combinations in rockboxdev.sh by specifying a list of compilers to build. Remove "all" selection in favor of that (FS#9372).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18444 a1c6a512-1295-4272-9138-f99709370657
2008-09-07 22:01:29 +00:00
Maurus Cuelenaere
efbdbf808a Commit FS#9156 by Tomer Shalev - Fix the fact that rockboxdev.sh does not abort when downloading fails
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18236 a1c6a512-1295-4272-9138-f99709370657
2008-08-10 14:36:18 +00:00
Maurus Cuelenaere
4c83ef1dbe Commit FS#9228 thanks to Alex Parker
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18179 a1c6a512-1295-4272-9138-f99709370657
2008-08-02 11:20:20 +00:00
Maurus Cuelenaere
a33be543e0 Commit second version of FS#9158 (Tomer Shalev) with spelling fix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18168 a1c6a512-1295-4272-9138-f99709370657
2008-08-01 11:19:29 +00:00
Maurus Cuelenaere
49d378b0f6 Commit FS#9158 thanks to Tomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18152 a1c6a512-1295-4272-9138-f99709370657
2008-07-30 15:46:13 +00:00
Maurus Cuelenaere
05a756db86 Fix building MIPS cross compiler
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18081 a1c6a512-1295-4272-9138-f99709370657
2008-07-17 10:24:41 +00:00
Maurus Cuelenaere
0709f0a5c6 Add preliminary support for the Onda VX747 (MIPS target)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18032 a1c6a512-1295-4272-9138-f99709370657
2008-07-14 15:03:10 +00:00
Daniel Stenberg
e6dde60a3e introducing MIPS support, not included in the "build all" action yet
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17986 a1c6a512-1295-4272-9138-f99709370657
2008-07-08 07:13:05 +00:00
Marcoen Hirschberg
3a3facb6bc revert accidental commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17823 a1c6a512-1295-4272-9138-f99709370657
2008-06-28 00:02:05 +00:00
Marcoen Hirschberg
7b10ef9a7c initial Meizu M6SL port (take 2)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17819 a1c6a512-1295-4272-9138-f99709370657
2008-06-27 23:24:34 +00:00
Marcoen Hirschberg
5b1e86c35f now build the ARM crosscompiler with support for big-endian targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17279 a1c6a512-1295-4272-9138-f99709370657
2008-04-28 15:37:06 +00:00
Marcoen Hirschberg
80f05233eb fix the m68k crosscompiler build for FreeBSD
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16856 a1c6a512-1295-4272-9138-f99709370657
2008-03-28 00:00:46 +00:00
Björn Stenberg
3ab686e07e Patches moved out from twiki.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15201 a1c6a512-1295-4272-9138-f99709370657
2007-10-19 07:33:39 +00:00
Dave Chapman
4a19ce39f8 Replace thumb-interwork-4.0.3.diff patch for arm-elf-gcc with rockbox-multilibs-arm-elf-gcc-4.0.3.diff. This builds libgcc.a for armv4 (current targets), armv5 (M:Robe), armv6 (Gigabeat S) and thumb interworking.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15193 a1c6a512-1295-4272-9138-f99709370657
2007-10-18 22:33:38 +00:00
Björn Stenberg
6b5da8cdf2 Use /tmp for temporary directories instead of /home/bjst
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14631 a1c6a512-1295-4272-9138-f99709370657
2007-09-07 12:24:53 +00:00
Barry Wardell
121af38dee Simpler fix for rockboxdev.sh make/gmake detection in Mac OS X/Darwin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14307 a1c6a512-1295-4272-9138-f99709370657
2007-08-13 00:43:01 +00:00
Barry Wardell
7c371f6a8c Accept FS#6499 - fix rockboxdev.sh make/gmake detection in Mac OS X/Darwin. Thanks to Lenny Koepsell.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14306 a1c6a512-1295-4272-9138-f99709370657
2007-08-13 00:10:00 +00:00
Björn Stenberg
63c266e5e5 Now automatically patches gcc-3.4.6 when built on x86_64. (FS#6564)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13733 a1c6a512-1295-4272-9138-f99709370657
2007-06-29 11:35:35 +00:00
Daniel Stenberg
5c7e0d252e verify that a few required tools are present to prevent "odd" messages later
on due to the lack of them


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13490 a1c6a512-1295-4272-9138-f99709370657
2007-05-24 19:58:17 +00:00
Daniel Ankers
8daa916aaa Make rockboxdev.sh build ARM libgcc with support for thumb code interworking
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12613 a1c6a512-1295-4272-9138-f99709370657
2007-03-05 00:20:38 +00:00
Thom Johansen
94c02493a9 No need to download the huge gcc tarball, gcc-core will do fine for us.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12497 a1c6a512-1295-4272-9138-f99709370657
2007-02-26 16:10:53 +00:00
Jonas Häggqvist
ee61057cea Use gmake rather than make, if available. Patch FS#6340 by Lutz Böhne
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11571 a1c6a512-1295-4272-9138-f99709370657
2006-11-22 09:07:45 +00:00
Daniel Stenberg
d28be08eb6 mention what download tools the script expects
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11167 a1c6a512-1295-4272-9138-f99709370657
2006-10-10 12:20:41 +00:00
Daniel Stenberg
af401c2a4e die if the effective user doesn't have write permission in the install base dir
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11074 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 21:17:23 +00:00
Daniel Stenberg
b91b410c11 m68k-elf-gcc 3.4.6 built on MacOS or Cygwin need a diable-68040 patch to
work and this script now tries to do this


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10560 a1c6a512-1295-4272-9138-f99709370657
2006-08-13 18:27:31 +00:00
Daniel Stenberg
19fe37de6f make the script echo more about what it is doing (with a ROCKBOXDEV: prefix)
to ease debugging when things go wrong somewhere


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10507 a1c6a512-1295-4272-9138-f99709370657
2006-08-10 06:46:56 +00:00
Linus Nielsen Feltzing
ad7fe4f088 Use the correct compression when extracting gcc
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10018 a1c6a512-1295-4272-9138-f99709370657
2006-05-30 10:21:13 +00:00
Daniel Stenberg
2731afa12f Added an "all" option that builds all cross-compiler in one go. Expect it to
take a while... ;-)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10017 a1c6a512-1295-4272-9138-f99709370657
2006-05-30 08:38:02 +00:00
Daniel Stenberg
9a3902f258 Check the download and prefix dirs somewhat before proceeding, output the
info in a slightly nicer way. Mention that the download and prefix paths can
be changed by editing the (top of the) script itself.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10015 a1c6a512-1295-4272-9138-f99709370657
2006-05-29 22:23:00 +00:00
Daniel Stenberg
33988545f5 verify that the download dir exists and is writable, or create it if it is
missing


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10001 a1c6a512-1295-4272-9138-f99709370657
2006-05-27 22:52:37 +00:00
Daniel Stenberg
7d1cd16521 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
2006-05-25 23:44:51 +00:00
Daniel Stenberg
cce0d65a97 handy script that downloads, builds and installs a cross-compiler setup for you
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9940 a1c6a512-1295-4272-9138-f99709370657
2006-05-15 13:26:59 +00:00