26 January 2007
For the most recent version of the dc-chain script, use the SVN repository. Links to the older scripts will be kept here for historical reasons.
25 January 2007
This should have been posted over two months ago. It was released during my final exams, though, and after that I was just too lazy to post it. Anyway, Harley released version 1.5 of his buildcross script. Here are the changes:
- Added Dreamcast Linux target with function to build uClibc.
- Imported some patches from buildroot.
- Fixed bug for options getting the correct INSTALL path.
- Removed $TARGET $PREFIX from Configure functions and put it once in SetOptions.
- Added -c to Wget's commands so it can try to continue if a download fails.
- Put options into separate files to clean up code a bit (removing a large case statement.) Updated how to add a target to reflect this.
- Arm now uses SetOptions instead of it's own function and options are in DcArm.cfg.
- Changed -t2 option to more descriptive dcarm.
- Gcc, Binutils, Newlib, etc are now defined on a per system basis. (Dreamcast can have different versions of Gcc than Gamecube or even the Dreamcast Arm Gcc.)
- Added quotes around test for TESTING to be consistent with the rest of the user enablable options.
- TESTING should now be pointed to the directory where you want the compiler installed.
- Moved code into separate files to so there is a few files with specific content rather than one large file with everything.
- Using THREADS=posix was always kinda flakey, but I think I'm making that the default now. Genesis doesn't use threads and thus uses --disable-threads anyways. For this, it is suggested you use this version of buildcross to make a new toolchain.
- Defaults for Gamecube now: Gcc-4.1.0, BinUtils-2.16.1, Newlib-1.14.0.
- Added a NOTES file to explain the state of the toolchains.
- Removed some of the older patches.
- Downloads should continue if interrupted now.
- Targets are built in target directories rather than in the base directory. Also, gcc, binutils, etc are extracted to and patched in the target directory allowing building seperate chains without deleting gcc, binutils, etc between builds.
- Patch and Result now log if told to.
- Fixed SENDTO/ERRORTO output if file didn't exist.
- echo is no longer used, logging functions (which are the only ones allowed to use echo) are used instead.
- Made some changes to building KOS to allow ix86 to build KOS too.
- Added ix86 to to top of buildcross options. Oops.
- Removed some patches that were not needed.
26 September 2006
Harley releases them faster than I can post them. Here are the details the new release, version 1.4:
- Bumped Binutils to version 2.17.
- Arm compiler for Dreamcast now builds without newlib and c++ by default.
- More than one patch can be applied by buildcross now. For more information read README in patches directory.
- Added -allc for building compiler and removing sources and objects after each is built.
- Added -dcc for building the dreamcast compiler, but it will clean the source and objects after each is successfully built (If interupted, it will still resume where it left off. -c must be run to start over).
- Added -i to rerun make installs even if .installed is found.
- Remove's message now includes that it's removing ".*config*" and ".*installed*".
- Added examples for the two new options.
- Changed manual DC build example to not include newlib and gcc final for ARM.
- Merged Setup function into SetupOptions (at end) since it's only called after setting options anyways.
- Fixed bug that might cause ix86 to not be able to be cross compiled.
- Added patches/ix86 for completeness.
- Added a kos patch which adds -R.stack to kos-objcopy if -O binary is given in the command line. Patch disabled by default.
There was actually a 1.3 release; I just didn't have time to get it posted here before this release. As usual, here is the direct link — http://stalin.thegypsy.com/old_scripts/buildcross-1.4.tar.bz2.
Version 0.3:
Logging is improved thanks to a suggestion by Gavin Shelley.
Log files will be created for every build process. For example when gcc for sh4 is built a log file will be created named 'build-gcc-[sh4_target].log', sh4_target being the sh4 target you specified.
I hope it works for you. If you can suggest any changes or additions send them to: james dot sumners at gmail dot com.
This script is very old. I recommend that you use one of the scripts in the next section.
Other People's Build Scripts
- Harley's: buildcross-1.5.tar.bz2
- Jim Ursetto's: dc-chain-0.1.tgz
- Christian Henz's: dc-chain-0.1-gcc346.tar
- dc-chain SVN: http://tinyurl.com/yrhtkz