Changeset 0f633605 for core


Ignore:
Timestamp:
May 7, 2016 1:34:38 AM (4 years ago)
Author:
dev <dev@…>
Branches:
master
Children:
7d11ec2f
Parents:
c2f35c0
Message:

core/buildscripts: Added ARM support to BITS detection.

Added support for armv6/armv7/aarch32/aarch64 BITS detection
to build scripts.

Location:
core/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • core/c/jbigi/build_jbigi.sh

    rc2f35c0 r0f633605  
    66
    77if [ -z $BITS ]; then
    8   if [[ $(uname -a) =~ "x86_64" ]]; then
     8  UNAME="$(uname -a)"
     9  if test "${UNAME#*x86_64}" != "x86_&4"; then
    910    BITS=64
    10   elif [[ $(uname -a) =~ "i386" ]]; then
     11  elif test "${UNAME#*i386}" != "i386"; then
    1112    BITS=32
    12   elif [[ $(uname -a) =~ "i686" ]]; then
     13  elif test "${UNAME#*i686}" != "i686"; then
    1314    BITS=32
     15  elif test "${UNAME#*armv6}" != "armv6"; then
     16    BITS=32
     17  elif test "${UNAME#*armv7}" != "armv7"; then
     18    BITS=32
     19  elif test "${UNAME#*aarch32}" != "aarch32"; then
     20    BITS=32
     21  elif test "${UNAME#*aarch64}" != "aarch64"; then
     22    BITS=64
    1423  else
     24 
    1525    echo "Unable to detect default setting for BITS variable"
    1626    exit
    1727  fi
    1828
    19   printf "\aBITS variable not set, defaulting to $BITS\n\a" >&2
     29  printf "\aBITS variable not set, $BITS bit system detected\n\a" >&2
    2030fi
    2131
  • core/c/jbigi/mbuild-all.sh

    rc2f35c0 r0f633605  
    9494  elif test "${UNAME#*i686}" != "i686"; then
    9595    BITS=32
     96  elif test "${UNAME#*armv6}" != "armv6"; then
     97    BITS=32
     98  elif test "${UNAME#*armv7}" != "armv7"; then
     99    BITS=32
     100  elif test "${UNAME#*aarch32}" != "aarch32"; then
     101    BITS=32
     102  elif test "${UNAME#*aarch64}" != "aarch64"; then
     103    BITS=64
    96104  else
     105 
    97106    echo "Unable to detect default setting for BITS variable"
    98107    exit
    99108  fi
    100109
    101   printf "\aBITS variable not set, defaulting to $BITS\n\a" >&2
     110  printf "\aBITS variable not set, $BITS bit system detected\n\a" >&2
    102111fi
    103112
  • core/c/jcpuid/build.sh

    rc2f35c0 r0f633605  
    3232  elif test "${UNAME#*i686}" != "i686"; then
    3333    BITS=32
     34  elif test "${UNAME#*armv6}" != "armv6"; then
     35    BITS=32
     36  elif test "${UNAME#*armv7}" != "armv7"; then
     37    BITS=32
     38  elif test "${UNAME#*aarch32}" != "aarch32"; then
     39    BITS=32
     40  elif test "${UNAME#*aarch64}" != "aarch64"; then
     41    BITS=64
    3442  else
     43 
    3544    echo "Unable to detect default setting for BITS variable"
    3645    exit
    3746  fi
    3847
    39   printf "\aBITS variable not set, defaulting to $BITS\n\a" >&2
     48  printf "\aBITS variable not set, $BITS bit system detected\n\a" >&2
    4049fi
    4150
Note: See TracChangeset for help on using the changeset viewer.