morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit e7cc0ce69bd09a940d60ccf1524f84913ceb5e49
parent 45573ea119ff925360e5969152d17018101632aa
Author: sin <sin@2f30.org>
Date:   Wed, 25 Sep 2013 10:20:05 +0100

Check for host's arch before building

Diffstat:
Mprepare-env | 2--
Mprepare-root | 1+
Mstage0 | 10++++++++--
3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/prepare-env b/prepare-env @@ -8,5 +8,3 @@ export top root nprocs mirror PATH=$top/cross/bin:$PATH export PATH - -mkdir -p $root diff --git a/prepare-root b/prepare-root @@ -1,3 +1,4 @@ +mkdir -p $root cd $root mkdir -p boot bin dev devel etc home proc root share sys tmp var mkdir -p share/doc share/man var/empty var/log var/run diff --git a/stage0 b/stage0 @@ -5,12 +5,18 @@ set -e -x -rm -rf root cross morpheus.log . ./prepare-env -. ./prepare-root +if [ $(uname -m) != $arch ]; then + echo You need an $arch host to build morpheus 1>&2 + exit 1 +fi + +rm -rf root cross morpheus.log +. ./prepare-root mkdir -p src cross +# Build musl-gcc ./build cross-scripts/musl installed_deps=