These scripts should help to build a toolchain, programs and libraries for the openrisc or1k processor. They were taken from http://jor1k.com/downloads/or1k-toolchain.tar.bz2 and then butchered and forced down a CI pipeline.
The goal was to build a filesystem for jor1k with a minimal number of tools for simulating history. However, building Linux from scratch takes Travis to the limit., so only the kernel, libc and a few static binaries are built, here it goes:
Most build artifacts are pushed to gh-pages at https://dugoh.github.io/tcb/
- Get some required tools
apt-get install -y build-essential
apt-get install -y gawk
apt-get install -y gcc
apt-get install -y g++
apt-get install -y make
apt-get install -y autoconf
apt-get install -y libtool
apt-get install -y pkg-config
apt-get install -y texinfo
apt-get install -y libmpfr-dev
apt-get install -y libgmp3-dev
apt-get install -y libmpc-dev
apt-get install -y flex
apt-get install -y bison
apt-get install -y bc
apt-get install -y git
apt-get install -y lynx
- Get this
lynx -source https://github.com/dugoh/tcb/archive/master.tar.gz|gunzip -c |tar -xvf -
- Execute
cd tcb-master
make info #check and change in Makefile if needed
make init
make fetchtoolchain
make toolchain
To work with this toolchain directly execute
make env >environment
. ./environment
Execute following command
make linux
Execute following command
make history
Not sure if the below still works! Never makes it past the Travis time cut
To get a list of available programs and libraries look at the target in scripts/progs.make
wget -nd -nc -P downloads -r -np http://jor1k.com/downloads/
make libs
make progs
make graphics
make buildtools
make network
make libs #if not already done so
make progs #if not already done so
make graphics #if not already done so
make buildtools #if not already done so
make DirectFB
make DirectFB_Examples
make libs #if not already done so
make progs #if not already done so
make graphics #if not already done so
make buildtools #if not already done so
make xprotoheaders
make xlibs
make xlibs2
make Mesa
make xfonts
make xorg-server
make xapps
Execute following commands
make buildimage