00_setup_env_arm.sh raw

   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-pip python3-zmq g++-arm-linux-gnueabihf libc6:armhf libstdc++6:armhf libfontconfig1:armhf libxcb1:armhf"
  12  export PIP_PACKAGES="--break-system-packages pycapnp"
  13  export CONTAINER_NAME=ci_arm_linux
  14  export CI_IMAGE_NAME_TAG="mirror.gcr.io/debian:trixie"  # Check that https://packages.debian.org/trixie/g++-arm-linux-gnueabihf (version 14.x, similar to guix) can cross-compile
  15  export CI_IMAGE_PLATFORM="linux/arm64"
  16  export GOAL="install"
  17  export CI_LIMIT_STACK_SIZE=1
  18  # -Wno-psabi is to disable ABI warnings: "note: parameter passing for argument of type ... changed in GCC 7.1"
  19  # This could be removed once the ABI change warning does not show up by default
  20  export BITCOIN_CONFIG=" \
  21    --preset=dev-mode \
  22    -DREDUCE_EXPORTS=ON \
  23    -DCMAKE_CXX_FLAGS='-Wno-psabi -Wno-error=maybe-uninitialized' \
  24  "
  25