@@ -21,17 +21,15 @@ git config --global user.name "${U_NAME}"
2121git config --global user.email " ${U_EMAIL} "
2222git checkout -- . || die
2323git archive --format zip -o applications.zip --prefix embarc_applications/ HEAD || die
24- [ $embARC_OSP_REPO ] || {
25- embARC_OSP_REPO=" https://github.com/foss-for-synopsys-dwc-arc-processors/embarc_osp.git"
26- }
24+
25+ embARC_OSP_REPO=${embARC_OSP_REPO := " https://github.com/foss-for-synopsys-dwc-arc-processors/embarc_osp.git" }
26+
2727git clone ${embARC_OSP_REPO} embarc_osp
2828cd embarc_osp || die
2929unzip ../applications.zip> /dev/null 2>&1 || die
3030
31-
3231[ " $TRAVIS " == " true" ] && {
33- if [ " ${TOOLCHAIN} " == " gnu" ]; then
34-
32+ if [ " ${TOOLCHAIN} " == " gnu" ] ; then
3533 python .ci/toolchain.py -v $TOOLCHAIN_VER -c $TOOLCHAIN_CACHE_FOLDER || die
3634 if [ -d $TOOLCHAIN_CACHE_FOLDER ] ; then
3735 if [ -d $TOOLCHAIN_CACHE_FOLDER /$TOOLCHAIN_VER ] ; then
@@ -49,19 +47,18 @@ if [ -d $ARC_DEV_TOOL_ROOT ] ; then
4947 source arctool.env || die
5048 rm -rf arctool.env || die
5149else
52- die " The toolchain path does not exist "
50+ die " The toolchain path ${ARC_DEV_TOOL_ROOT} does not exist "
5351fi
5452
5553
56- if [ " ${TOOLCHAIN} " == " gnu" ]; then
54+ if [ " ${TOOLCHAIN} " == " gnu" ] ; then
5755 arc-elf32-gcc -v || die " ARC GNU toolchain is not installed correctly"
5856else
5957 ccac -v || die " MWDT toolchain is not installed correctly"
6058fi
6159
6260
6361{
64-
6562 bash apply_embARC_patch.sh || die
6663
6764 EXPECTED=" ../${EXPECTED} "
0 commit comments