export SRC_DIR=<Source Directory>
export DOWNLOAD_DIR=<Download Directory>
# provided cross compiler and SDK are installed here export ETRAX_DIR=<ETRAX Tools Directory>
$DOWNLOAD_DIR
mkdir -p ${DOWNLOAD_DIR:?undefined} &&
wget http://prdownloads.sourceforge.net/flex/flex-2.5.35.tar.bz2?download
$SRC_DIR
mkdir -p ${SRC_DIR:?undefined} &&
cd SRC_DIR &&
tar -jxvf flex-2.5.35.tar.bz
cris-axis-setup.sh
,defining environment variables, e.g. AXIS_TOP_DIR
, and extending PATH
, needs ETRAX_DIR
to be defined. cd ${SRC_DIR:?undefined} &&
wget https://wiki.gsi.de/pub/Epics/EpicsTipsAndTricksCrisAxisAddtionForSeveralEpicsApplications/cris-axis-setup.sh &&
source cris-axis-setup.sh
oldpwd=$OLDPWD
base=$(pwd)
cd ${ETRAX_DIR:?undefined)/SDK && cd $(ls --color=never -t -1 -d devbo* | head -n 1) && . ./init_env
cd $base
cd ${ETRAX_DIR:?undefined)/ETRAX/compiler && . ./setup.sh
cd $oldpwd
cd $base
unset scriptname base oldpwd epicsDir
$SRC_DIR
cd ${SRC_DIR:?undefined}
configure
automatically sets for cross-compilers 'ac_cv_func_malloc_0_nonnull' and 'ac_cv_func_realloc_0_nonnull' to 'no', (since it cannot check it) those have to be configured by hand: export myTARGET=cris-axis-linux-gnu
make clean
./configure --prefix=${AXIS_TOP_DIR:?undefined}/target/${myTARGET:?defined}/usr --host=${myTARGET} --build=i686-pc-linux-gnu ac_cv_func_realloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes
make
make install
export myTARGET=crisv32-axis-linux-gnu
make clean
./configure --prefix=${AXIS_TOP_DIR:?undefined}/target/${myTARGET:?defined}/usr --host=${myTARGET} --build=i686-pc-linux-gnu ac_cv_func_realloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes
make
make install
export SRC_DIR=<Source Directory>
export DOWNLOAD_DIR=<Download Directory>
# provided cross compiler and SDK are installed here
export ETRAX_DIR=<ETRAX Tools Directory>
mkdir -p ${DOWNLOAD_DIR:?undefined} &&
wget http://prdownloads.sourceforge.net/flex/flex-2.5.35.tar.bz2?download
mkdir -p ${SRC_DIR:?undefined} &&
cd SRC_DIR &&
tar -jxvf flex-2.5.35.tar.bz
oldpwd=$OLDPWD
base=$(pwd)
cd ${ETRAX_DIR:?undefined)/SDK && cd $(ls --color=never -t -1 -d devbo* | head -n 1) && . ./init_env
cd $base
cd ${ETRAX_DIR:?undefined)/ETRAX/compiler && . ./setup.sh
cd $oldpwd
cd $base
unset scriptname base oldpwd epicsDir
# crisv-axis
export myTARGET=cris-axis-linux-gnu
cd ${SRC_DIR:?undefined} &&
make clean
./configure --prefix=${AXIS_TOP_DIR:?undefined}/target/${myTARGET:?defined}/usr --host=${myTARGET} --build=i686-pc-linux-gnu ac_cv_func_realloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes &&
make && make install
# crisv32-axis
export myTARGET=crisv32-axis-linux-gnu
cd ${SRC_DIR:?undefined} &&
make clean
./configure --prefix=${AXIS_TOP_DIR:?undefined}/target/${myTARGET:?defined}/usr --host=${myTARGET} --build=i686-pc-linux-gnu ac_cv_func_realloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes &&
make && make install