/ ci / test / 00_setup_env_arm.sh
00_setup_env_arm.sh
 1  #!/usr/bin/env bash
 2  #
 3  # Copyright (c) 2019-present The Bitcoin Core developers
 4  # Distributed under the MIT software license, see the accompanying
 5  # file COPYING or http://www.opensource.org/licenses/mit-license.php.
 6  
 7  export LC_ALL=C.UTF-8
 8  
 9  export HOST=arm-linux-gnueabihf
10  export DPKG_ADD_ARCH="armhf"
11  export PACKAGES="python3-zmq g++-arm-linux-gnueabihf libc6:armhf libstdc++6:armhf libfontconfig1:armhf libxcb1:armhf"
12  export CONTAINER_NAME=ci_arm_linux
13  export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:24.04"  # Check that https://packages.ubuntu.com/noble/g++-arm-linux-gnueabihf (version 13.x, similar to guix) can cross-compile
14  export CI_IMAGE_PLATFORM="linux/arm64"
15  export RUN_UNIT_TESTS=true
16  export RUN_FUNCTIONAL_TESTS=false
17  export GOAL="install"
18  export CI_LIMIT_STACK_SIZE=1
19  # -Wno-psabi is to disable ABI warnings: "note: parameter passing for argument of type ... changed in GCC 7.1"
20  # This could be removed once the ABI change warning does not show up by default
21  export BITCOIN_CONFIG=" \
22    --preset=dev-mode \
23    -DREDUCE_EXPORTS=ON \
24    -DCMAKE_CXX_FLAGS='-Wno-psabi -Wno-error=maybe-uninitialized' \
25  "