yaul-org / libyaul-build-scripts

Build scripts for Yaul
4 stars 2 forks source link

Yaul build scripts

Build scripts for Yaul.

List of configurations

SH-2

Platform Configuration file Build type Working?
Linux sh2eb-elf/native-linux.config Native Yes
Linux sh2eb-elf/host-i686-pc-linux-gnu.config Canadian Yes
Windows (MinGW) sh2eb-elf/host-x86_64-w64-mingw32.config Canadian Yes
Windows (WSL2) sh2eb-elf/host-x86_64-w64-mingw32.config Canadian Yes

M68k

Currently unavailable.

Building

Build requirements

Debian based and WSL2 Ubuntu ``` apt install \ texinfo \ help2man \ curl \ lzip \ meson \ ninja-build \ gawk \ libtool-bin \ ncurses-dev \ flex \ bison ```
FreeBSD ``` pkg install \ autotools \ gsed \ texinfo \ help2man \ gawk \ lzma \ wget \ bison \ coreutils \ gmake \ unix2dos \ patch \ gcc \ lzip ```

Build crosstool-ng

Linux ``` git submodule init git submodule update cd crosstool-ng ./bootstrap ./configure --enable-local make ```
Windows (WSL2) ``` git submodule init git submodule update cd crosstool-ng ./bootstrap ./configure --enable-local make sudo bash -c "echo 0 > /proc/sys/fs/binfmt_misc/status" ```
FreeBSD ``` git submodule init git submodule update cd crosstool-ng ./bootstrap MAKE=/usr/local/bin/gmake \ INSTALL=/usr/local/bin/ginstall \ SED=/usr/local/bin/gsed \ PATCH=/usr/local/bin/gpatch \ ./configure --enable-local gmake ```

Build the sh2eb-elf- tool-chain

cd ..
cp configs/sh2eb-elf/<file>.config .config
crosstool-ng/ct-ng build