Compiling Yabause/linux/dreamcast/dreamcast

From Yabause
Jump to: navigation, search
Yabause Manual
For users
For developers
edit

top » build: linux » host: dreamcast » port: dreamcast

Dependencies

Required

  • gcc
  • A sh-elf targeted GCC toolchain (compatible with KallistiOS 1.3.x)
  • KallistiOS SVN revision 618 or higher (older versions will probably work too)
  • make

Optional

Required if compiling from cvs

  • cvs

Getting the source

You can either use a release tarball or fetch sources from CVS. It is recommended to use a released source tarball.

Release

The latest sources are available on download page. After downloading, uncompress the archive:

tar -xzvf yabause-X.Y.Z.tar.gz 

this will create a yabause-X.Y.Z directory.

CVS

If for some reason, you want to use the latest development code, you can fetch a CVS copy:

cvs -z3 -d:pserver:anonymous@yabause.cvs.sourceforge.net:/cvsroot/yabause co -P yabause

This will create a yabause directory. There is no need for a configure script for the Dreamcast port.

Configuration

The Dreamcast port currently has its own pre-made Makefile, and does not require any configuration.

Compilation

Once configured, compilation is started by typing:

cd src
make -f Makefile.dc

This will create an unscrambled yabause.bin binary in the src directory. This (or the yabause.elf file also created) is suitable for use with dc-tool and dcload. If you would like to create a scrambled binary, you will need the scramble program. You can create a scrambled 1ST_READ.BIN file with the following command (assuming you have built scramble, and placed the binary somewhere in your PATH):

scramble yabause.bin 1ST_READ.BIN