diff --git a/.github/workflows/flowzone.yml b/.github/workflows/flowzone.yml index 4a82cac7..df522e60 100644 --- a/.github/workflows/flowzone.yml +++ b/.github/workflows/flowzone.yml @@ -30,4 +30,5 @@ jobs: aarch64-unknown-linux-gnu, armv7-unknown-linux-gnueabihf, x86_64-unknown-linux-gnu, - i686-unknown-linux-gnu + i686-unknown-linux-gnu, + arm-unknown-linux-gnueabihf diff --git a/Cargo.toml b/Cargo.toml index 51637d4a..6c8f2110 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,3 +28,10 @@ default-features = false [profile.release] lto = true + +[target.arm-unknown-linux-gnueabihf.env] +passthrough = [ + "RUSTFLAGS=-L /usr/arm-linux-gnueabihf/lib/ -L /usr/lib/arm-linux-gnueabihf/", + "PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/", + "PKG_CONFIG_ALLOW_CROSS=true" +] diff --git a/Cross.toml b/Cross.toml index 1671fe25..7187203f 100644 --- a/Cross.toml +++ b/Cross.toml @@ -2,4 +2,11 @@ pre-build = [ "dpkg --add-architecture $CROSS_DEB_ARCH", "apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH" -] \ No newline at end of file +] + +[target.arm-unknown-linux-gnueabihf.env] +passthrough = [ + "RUSTFLAGS=-L /usr/arm-linux-gnueabihf/lib/ -L /usr/lib/arm-linux-gnueabihf/", + "PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/", + "PKG_CONFIG_ALLOW_CROSS=true" +] diff --git a/Dockerfile.template b/Dockerfile.template index 395b0056..b08e4164 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -20,6 +20,8 @@ RUN \ BINARY_ARCH_NAME="x86_64-unknown-linux-gnu" ;;\ "armv7hf") \ BINARY_ARCH_NAME="armv7-unknown-linux-gnueabihf" ;;\ + "armv6") \ + BINARY_ARCH_NAME="arm-unknown-linux-gnueabihf" ;;\ *) \ echo >&2 "error: unsupported architecture ($BALENA_ARCH)"; exit 1 ;; \ esac;\ @@ -33,4 +35,4 @@ RUN \ COPY scripts/start.sh . -CMD ["bash", "start.sh"] \ No newline at end of file +CMD ["bash", "start.sh"]