build-test: Build with normal Ubuntu arm-eabi compiler

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-10-30 14:59:57 -04:00
parent 7ad36a2164
commit 33a2d48888
3 changed files with 1 additions and 24 deletions

View File

@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install system dependencies - name: Install system dependencies
run: sudo apt-get install gcc-avr avr-libc pv libmpfr-dev libgmp-dev libmpc-dev texinfo libncurses5-dev bison flex python-virtualenv virtualenv python-dev libffi-dev build-essential run: sudo apt-get install gcc-avr avr-libc pv libmpfr-dev libgmp-dev libmpc-dev texinfo libncurses5-dev bison flex python-virtualenv virtualenv python-dev libffi-dev build-essential libnewlib-arm-none-eabi gcc-arm-none-eabi binutils-arm-none-eabi
- name: Setup cache - name: Setup cache
uses: actions/cache@v2 uses: actions/cache@v2

View File

@ -7,7 +7,6 @@ set -eu
# Paths to tools installed by travis-install.sh # Paths to tools installed by travis-install.sh
MAIN_DIR=${PWD} MAIN_DIR=${PWD}
BUILD_DIR=${PWD}/travis_build BUILD_DIR=${PWD}/travis_build
export PATH=${BUILD_DIR}/gcc-arm-none-eabi-7-2017-q4-major/bin:${PATH}
export PATH=${BUILD_DIR}/pru-gcc/bin:${PATH} export PATH=${BUILD_DIR}/pru-gcc/bin:${PATH}
PYTHON=${BUILD_DIR}/python-env/bin/python PYTHON=${BUILD_DIR}/python-env/bin/python

View File

@ -11,28 +11,6 @@ CACHE_DIR=${PWD}/travis_cache
mkdir -p ${BUILD_DIR} ${CACHE_DIR} mkdir -p ${BUILD_DIR} ${CACHE_DIR}
######################################################################
# Install embedded arm gcc
######################################################################
echo -e "\n\n=============== Install embedded arm gcc\n\n"
GCC_ARM_URL="https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2017q4/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2"
GCC_ARM_SHA="96a029e2ae130a1210eaa69e309ea40463028eab18ba19c1086e4c2dafe69a6a gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2"
GCC_ARM_FILE="$(basename ${GCC_ARM_URL})"
cd ${CACHE_DIR}
if [ ! -f ${GCC_ARM_FILE} ]; then
wget "$GCC_ARM_URL"
fi
FOUND_SHA=`sha256sum "$GCC_ARM_FILE"`
if [ "$FOUND_SHA" != "$GCC_ARM_SHA" ]; then
echo "ERROR: Mismatch on gcc arm sha256"
exit -1
fi
cd ${BUILD_DIR}
tar xf "${CACHE_DIR}/${GCC_ARM_FILE}"
###################################################################### ######################################################################
# Install (or build) pru gcc # Install (or build) pru gcc
###################################################################### ######################################################################