2012-08-29 02:48:07 +04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2012-08-29 04:25:18 +04:00
|
|
|
unset CC
|
2012-08-29 02:48:07 +04:00
|
|
|
sudo apt-get install clang yasm genext2fs build-essential wget libmpfr-dev libmpc-dev libgmp-dev qemu autoconf automake texinfo
|
2012-09-04 10:00:50 +04:00
|
|
|
sudo apt-get remove kvm-ipxe
|
|
|
|
|
2012-08-29 02:48:07 +04:00
|
|
|
# Build the toolchain: (silently)
|
|
|
|
pushd toolchain
|
2012-12-05 08:16:52 +04:00
|
|
|
./prepare.sh || exit 1
|
2012-12-05 08:37:19 +04:00
|
|
|
./install.sh > /dev/null 2> /dev/null || exit 1
|
2012-12-05 08:16:52 +04:00
|
|
|
. activate.sh || exit 1
|
2012-08-29 02:48:07 +04:00
|
|
|
popd
|
|
|
|
# Build the userspace tools:
|
|
|
|
pushd userspace
|
|
|
|
make || exit 1
|
|
|
|
popd
|
|
|
|
# Build the kernel
|
|
|
|
make system || exit 1 # to build the kernel
|
2012-09-02 13:24:25 +04:00
|
|
|
# Boot it up and run some tests
|
|
|
|
make test || exit 1
|