[77e371]: apps / alsa-utils-1.0.13 / configure_elphel Maximize Restore History

Download this file

configure_elphel    35 lines (31 with data), 1.0 kB

#!/bin/sh
#--------------------------------------------------------------------------
AXIS_BUILDTYPE="crisv32-axis-linux-gnu"

# Terminal colors
BGBLACK='\033[40;01m'
RESET='\033[0m'
NORMAL='\033[37;01m'
echo -e "${BGBLACK}${NORMAL}" ; echo "================== Running $0 ====================="

EROOT="$AXIS_TOP_DIR/target/$AXIS_BUILDTYPE"

env \
  CC="gcc-cris -march=v32 -mlinux -isystem $EROOT/include"  \
  CPP="gcc-cris -march=v32 -mlinux -E -isystem $EROOT/include" \
  CXX="g++-cris -march=v32 -mlinux -xc++ -isystem $EROOT/include" \
  CFLAGS=" -mpdebug " \
  LDFLAGS="-L$EROOT/lib" \
  OBJCOPY="objcopy-cris" \
  LD="ld-cris -mcrislinux" \
  AR="ar-cris" \
  RANLIB="ranlib-cris" \
  NM="nm-cris" \
  STRIP="strip-cris" \
  \
  ./configure \
    --prefix=$EROOT \
    --host=$AXIS_BUILDTYPE \
    --with-softfloat \
    --disable-alsamixer \
    --disable-nls
   #make
$AXIS_TOP_DIR/makefiles_add_axis_header
echo "================== Finished $0 =====================" ; echo -e "${RESET}"