00_setup_env_arm.sh raw

   1  #!/usr/bin/env bash
   2  #
   3  # Copyright (c) 2019-present The Limenka 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 busybox 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:noble"  # Check that https://packages.ubuntu.com/noble/g++-arm-linux-gnueabihf (version 13.3, similar to guix) can cross-compile
  14  export CI_IMAGE_PLATFORM="linux/arm64"
  15  export USE_BUSY_BOX=true
  16  export RUN_UNIT_TESTS=true
  17  export RUN_FUNCTIONAL_TESTS=false
  18  export GOAL="install"
  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 LIMENKA_CONFIG="-DREDUCE_EXPORTS=ON -DCMAKE_CXX_FLAGS='-Wno-psabi -Wno-error=maybe-uninitialized'"
  22