1 - First you'll need a subversion client to get your hands on the source code. On windows I am using TortoiseSVN becouse it integrates so nicely into windows, but you can use whatever client you like. The path to the lates source code is:
- Code: Select all
https://bricks-os.svn.sourceforge.net/svnroot/bricks-os/trunk
2 - Once you have the source code you'll need to set the BRICKS_ROOT environment variable. The variable points to the root of the Bricks-OS source directory. I will assume you all know where to set an environment variable in windows. You can test if it is set by opening cmd, and typing:
- Code: Select all
echo %BRICKS_ROOT%
3 - Create the bin and lib directories for the platform (pc/gba/ps2-ee/...) you want to build. If you don't create these directories the Makefiles won't be able to create the libraries and binaries. This needs to be fixed in the Makefiles someday so they will be created automatically. Example:
- Code: Select all
<BRICKS_ROOT>/lib/wii
<BRICKS_ROOT>/bin/wii
4 - Install the compilers. In windows I am using devKitPRO for GBA, NDS, PSP, NGC and Wii. For the PS2 I am using precompiled compilers from the ps2dev website. All are free compiler packages based on GCC.
5 - Compile bricks-os for a specified platform. Open a cmd prompt. Go to the <BRICKS_ROOT> directory. And type:
- Code: Select all
make -f Makefile.<platform> clean all
examples:
make -f Makefile.gba clean all
make -f Makefile.nds clean all (NOTE: this compiles both ARM7 and ARM9)
make -f Makefile.ngc clean all
make -f Makefile.wii clean all
make -f Makefile.ps2-ee clean all
You should now have your binary located in <BRICKS_ROOT>/bin/<platform>. On some platforms there are more makefile options, like creating a bootable ISO, or sending the file to the device. These are platform specific so please look into the makefiles (<BRICKS_ROOT>/Makefile.<platform>) for all available build targets.
