forked from I2P_Developers/i2p.i2p
core/buildscripts: Added ARM support to BITS detection.
Added support for armv6/armv7/aarch32/aarch64 BITS detection to build scripts.
This commit is contained in:
@@ -31,12 +31,21 @@ if [ -z $BITS ]; then
|
||||
BITS=32
|
||||
elif test "${UNAME#*i686}" != "i686"; then
|
||||
BITS=32
|
||||
elif test "${UNAME#*armv6}" != "armv6"; then
|
||||
BITS=32
|
||||
elif test "${UNAME#*armv7}" != "armv7"; then
|
||||
BITS=32
|
||||
elif test "${UNAME#*aarch32}" != "aarch32"; then
|
||||
BITS=32
|
||||
elif test "${UNAME#*aarch64}" != "aarch64"; then
|
||||
BITS=64
|
||||
else
|
||||
|
||||
echo "Unable to detect default setting for BITS variable"
|
||||
exit
|
||||
fi
|
||||
|
||||
printf "\aBITS variable not set, defaulting to $BITS\n\a" >&2
|
||||
printf "\aBITS variable not set, $BITS bit system detected\n\a" >&2
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user