Created
June 4, 2013 11:56
-
-
Save astarasikov/5705388 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#get the sources via | |
#svn cat http://svn.tudos.org/repos/oc/tudos/trunk/repomgr | perl - init http://svn.tudos.org/repos/oc/tudos fiasco l4re | |
#install the required software | |
#apt-get install make gawk g++ binutils pkg-config subversion grub2iso | |
#use double quotes in case some spaces or other weird chars are present | |
FOC_ROOT="$PWD" | |
FOC_BUILDDIR="${FOC_ROOT}/build" | |
L4RE_BUILDDIR="${FOC_ROOT}/build_l4re" | |
MAKE_OPTS="-j10" | |
#create build directory | |
#if [ ! -e "$FOC_BUILDDIR" ]; then | |
# mkdir "$FOC_BUILDDIR" | |
#fi | |
#create the make scripts in the build directory | |
pushd . | |
cd src/kernel/fiasco/ | |
make BUILDDIR="$FOC_BUILDDIR" | |
popd | |
pushd . | |
cd "$FOC_BUILDDIR" | |
make config | |
make "$MAKE_OPTS" | |
popd | |
#create the l4re build directory | |
pushd . | |
cd src/l4 | |
make B="$L4RE_BUILDDIR" | |
popd | |
pushd . | |
cd src/l4 | |
make O="$L4RE_BUILDDIR" config | |
make "$MAKE_OPTS" O="$L4RE_BUILDDIR" | |
make "$MAKE_OPTS" qemu E=hello MODULE_SEARCH_PATH="$FOC_BUILDDIR" O="$L4RE_BUILDDIR" | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment