This is an old revision of the document!
Building the GCW Zero Toolchain
For our Jenkins build server we needed a modified toolchain, that does not depend to be installed in /opt
.
The following instructions have been written along the way and should result in a working toolchain that is suitable to get a working EasyRPG Player build.
First, we need the buildroot from GitHub and change into the directory:
git clone https://github.com/gcwnow/buildroot.git cd buildroot
To use the default configuration:
make gcw0_defconfig
Optionally, we can use a previously saved config file, just copy it to .config
.
We need to add newly available options then:
make oldconfig
We configure the packages to be build and available options:
make menuconfig
There are also the graphical frontends xconfig
, using qt and gconfig
, using gtk.
Most of the libraries are not needed, so we disable them to save some time while compiling.
Needed libraries are sdl
, sdl_mixer
and icu
.
Now the important step: change the toolchain directory from /opt/gcw0-toolchain
to your desired directory.
(BR2_HOST_DIR="/home/jenkins/gcw0-toolchain"
)
To speed up the build further, set the parallel make jobs to the cores of your cpu
(BR2_JLEVEL=2
)
To speed up possibly rebuilds, enable ccache
.
(BR2_CCACHE=y
and BR2_CCACHE_DIR="$(HOME)/.buildroot-ccache"
)
When all things are set up, we can start the build and get something to drink in the meanwhile
nice -n19 make
Afterwards, there should be a new, shiny toolchain in the directory you chose.