Skip to content

dugoh/tcb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

Build Status

Most build artifacts are pushed to gh-pages at https://dugoh.github.io/tcb/

TOOLCHAIN

  1. 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
  1. Get this
	lynx -source https://github.com/dugoh/tcb/archive/master.tar.gz|gunzip -c |tar -xvf -
  1. 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

KERNEL

Execute following command

	make linux

Progs for simulating history with a static simh pdp-11

Execute following command

	make history

Not sure if the below still works! Never makes it past the Travis time cut

Progs and Libs

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

Native Building Tools

	make buildtools

Network

	make network

DirectFB

	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

X11

	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

Image

Execute following commands

	make buildimage