Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.
/ homebrew-sweb Public archive

homebrew formulas for the Operating system course at TU Graz

Notifications You must be signed in to change notification settings

GhostLyrics/homebrew-sweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This project is unmaintained. Feel free to fork and modify but do not expect further development in this repository.

Cross compiler: GCC for SWEB (i686-linux-gnu)

You can use this homebrew formula as well as the prepackaged bottles for the Betriebssysteme course at the TU Graz.

TL;DR

brew tap ghostlyrics/homebrew-sweb && brew install sweb-gcc qemu cmake cloog

Installation

This repository contains formulas for homebrew for the cross-compiled binutils and gcc. Homebrew will automatically fetch and install the required dependencies for the cross-compiler. To add the repository and install the packages use the following commands after installing homebrew.

Additionally you will need cmake for configuring your build environment, qemu to run SWEB in the emulator and cloog to compile it on OS X.

brew tap ghostlyrics/homebrew-sweb
brew update
brew install sweb-gcc cloog cmake qemu

Usage

Make sure that the homebrew packages are in your path. This should happen automatically. You can manually check if you have the corresponding two entries in your ~/.bash_profile. In my case (default installation) these are:

PATH=/usr/local/bin:$PATH # homebrew (1/2)
PATH=/usr/local/sbin:$PATH # homebrew (2/2)

When you call cmake <path> with SWEB, the build process should automatically know you're crosscompiling and select the correct applications to build your SWEB.

Sample build

In order to build SWEB after installing the packages, your workflow could look like this:

git clone https://github.com/iaik/sweb
mkdir build
cd build
cmake ../sweb
make
make qemu

About

homebrew formulas for the Operating system course at TU Graz

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages