/hermit-toolchain

Scripts to create HermitCore's toolchain

Primary LanguageShellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

hermit-toolchain

This repository contains scripts to build the cross-compiler for the Rust-based library OS HermitCore.

Requirements

The build process works currently only on x86-based Linux systems. The following software packets are required to build HermitCore's toolchain on a Linux system:

  • Netwide Assembler (NASM)
  • GNU Make, GNU Binutils, cmake
  • Tools and libraries to build linux, binutils and gcc (e.g. flex, bison, MPFR library, GMP library, MPC library)
  • texinfo

On Debian-based systems the packets can be installed by executing:

  sudo apt-get install cmake nasm texinfo libmpfr-dev libmpc-dev libgmp-dev flex bison

Building the HermitCore's toolchain

To build the toolchain just call the script as follow:

$ ./toolchain.sh x86_64-hermit /home/usr/hermit

The first argument of the script specifies the target architecture, where the second argument defines the path to the installation directory. To create the toolchain, write access to the installation directory is required.