Commit 4453dfc4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Contrib: add ARCH variable

parent 386df22d
#! /bin/sh
HOST="$1"
if test -z "$HOST"; then
echo "Usage: $0 <target machine>" >&2
exit 1
fi
case "$HOST" in
i[3456]86-*)
ARCH="i386"
;;
powerpc-*|ppc-*)
ARCH="ppc"
;;
powerpc64-*|ppc64-*)
ARCH="ppc64"
;;
*-*)
ARCH="${HOST%%-*}"
;;
*)
echo "$HOST: invalid machine specification" >&2
exit 1
esac
echo $ARCH
......@@ -27,6 +27,7 @@ PREFIX := $(abspath $(PREFIX))
ifneq ($(HOST),$(BUILD))
HAVE_CROSS_COMPILE = 1
endif
ARCH := $(shell $(SRC)/get-arch.sh $(HOST))
ifdef HAVE_CROSS_COMPILE
need_pkg = 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment