Cross toolchains for building arm64/arm/armel on azure devops
1.2K
A set of cross toolchains to build for arm64, arm or armel on azure devops.
| Platform | Docker Image |
|---|---|
| linux-arm | gigi81/azurecross:arm-linux-gnueabihf |
| linux-arm64 | gigi81/azurecross:aarch64-linux-gnu |
| linux-armel | gigi81/azurecross:arm-linux-gnueabiel |
The image comes with a special fork of qemu to allow you to run a process (for example unitest) on your build. This build of qemu does not need support for the binfmt module on the host. In other words, it should just work. https://github.com/balena-io/qemu
- job: linux_arm64
condition: succeeded()
pool:
name: Hosted Ubuntu 1604
container: gigi81/azurecross:aarch64-linux-gnu
steps:
- task: Bash@3
displayName: 'Example generate projet with cmake'
inputs:
targetType: inline
script: cmake . -DCMAKE_TOOLCHAIN_FILE=$CMAKE_TOOLCHAIN_FILE
workingDirectory: path_to_your_source
- task: Bash@3
displayName: 'Example on how to run an executable on qemu-aarch64'
inputs:
targetType: inline
script: qemu-aarch64 [path to your arm64 executable]
- task: Bash@3
displayName: 'Example on how to run an executable on qemu-arm'
inputs:
targetType: inline
script: qemu-arm -cpu cortex-a8 [path to your arm executable]
Toolchains used are the pre-built one downloaded from https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads
Github repository for the docker files https://github.com/gigi81/azurecross
Build hosted on circleci https://circleci.com/gh/gigi81/azurecross
Content type
Image
Digest
Size
442.5 MB
Last updated
over 5 years ago
docker pull gigi81/azurecross:aarch64-none-linux-gnu-10.2-2020.11