diff --git a/scripts/run_integration.sh b/scripts/run_integration.sh index 546871f..8ae1200 100755 --- a/scripts/run_integration.sh +++ b/scripts/run_integration.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash readonly SCRIPT_FOLDER=$(cd -P -- "$(dirname -- "$0")" && pwd -P) readonly PROJECT_FOLDER="${SCRIPT_FOLDER}/.." @@ -110,6 +110,9 @@ function expand_linaro_config() { local SYSROOT_FOLDER=${ARCHIVE_FOLDER}/${SYSROOT_RELATIVE_FOLDER} local GCC_FOLDER=${ARCHIVE_FOLDER}/${GCC_RELATIVE_FOLDER} + CMAKE_ADDITIONAL_ARGS+=" -DCMAKE_SYSTEM_NAME=Linux" + CMAKE_ADDITIONAL_ARGS+=" -DCMAKE_SYSTEM_PROCESSOR=${TARGET}" + CMAKE_ADDITIONAL_ARGS+=" -DCMAKE_SYSROOT=${SYSROOT_FOLDER}" CMAKE_ADDITIONAL_ARGS+=" -DCMAKE_C_COMPILER=${GCC_FOLDER}/bin/${TARGET}-gcc" CMAKE_ADDITIONAL_ARGS+=" -DCMAKE_CXX_COMPILER=${GCC_FOLDER}/bin/${TARGET}-g++" diff --git a/scripts/test_integration.sh b/scripts/test_integration.sh index 53d1d3b..a167227 100755 --- a/scripts/test_integration.sh +++ b/scripts/test_integration.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + source "$(dirname -- "$0")"/run_integration.sh # Toolchains for little-endian, 64-bit ARMv8 for GNU/Linux systems @@ -7,7 +9,7 @@ function set_aarch64-linux-gnu() { QEMU_ARCH=aarch64 } -# Toolchains for little-endian, hard-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems +# Toolchains for little-endian, hard-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems function set_arm-linux-gnueabihf() { TOOLCHAIN=LINARO TARGET=arm-linux-gnueabihf