2022-05-03 12:27:34 +02:00
|
|
|
#!/bin/bash -i
|
2022-05-03 12:44:15 +02:00
|
|
|
# This script is intended to be copied outside of the source directory on the
|
|
|
|
# same folder level as the eive-obsw folder. This allows to tweak it to
|
|
|
|
# custom cross-compiler and sysroot path setups
|
2022-05-03 12:27:34 +02:00
|
|
|
|
2022-05-03 12:44:15 +02:00
|
|
|
# Adapt the following two entries to your need
|
2023-05-10 11:33:34 +02:00
|
|
|
export CROSS_COMPILE_BIN_PATH="/opt/q7s-gcc/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin"
|
2022-05-03 12:27:34 +02:00
|
|
|
export ZYNQ_7020_SYSROOT="/opt/xiphos/sdk/ark/sysroots/cortexa9hf-neon-xiphos-linux-gnueabi"
|
2022-05-03 12:44:15 +02:00
|
|
|
|
2023-05-10 11:47:49 +02:00
|
|
|
export PATH=${CROSS_COMPILE_BIN_PATH}:$PATH
|
2022-05-03 12:44:15 +02:00
|
|
|
export CROSS_COMPILE="arm-linux-gnueabihf"
|
2024-04-30 11:37:46 +02:00
|
|
|
unset EIVE_Q7S_EM
|
2022-05-03 12:27:34 +02:00
|
|
|
|
|
|
|
if [[ -d "eive-obsw" ]]; then
|
|
|
|
echo "Detected EIVE OBSW root directory at $(pwd)/eive-obsw. Setting to EIVE_OBSW_ROOT"
|
|
|
|
export EIVE_OBSW_ROOT="$(pwd)/eive-obsw"
|
|
|
|
echo "Adding $(pwd)/eive-obsw/cmake/scripts/q7s helper script path to PATH"
|
|
|
|
export PATH=$PATH:"$(pwd)/eive-obsw/cmake/scripts/q7s"
|
2022-05-06 15:27:56 +02:00
|
|
|
export PATH=$PATH:"$(pwd)/eive-obsw/scripts"
|
2022-05-03 12:27:34 +02:00
|
|
|
cd "eive-obsw"
|
|
|
|
fi
|
|
|
|
export CONSOLE_PREFIX="[Q7S ENV]"
|
|
|
|
/bin/bash
|