File tree Expand file tree Collapse file tree 6 files changed +15
-4
lines changed
repos/patches-arm32/proxmox-backup Expand file tree Collapse file tree 6 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 2424
2525# Architectures
2626
27- arm32v7-% : CROSS_ARCH=arm32v7
27+ arm32v7-% : CROSS_ARCH=arm32
2828arm64v8-% : DOCKER_ARCH=arm64v8
2929amd64-% : DOCKER_ARCH=amd64
3030dev-% :
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33case " $1 " in
4- arm32v7 )
4+ arm32 )
55 TARGET_ARCH=" armv7-unknown-linux-gnueabihf"
66 DPKG_ARCH=" armhf"
77 PKG=" gcc-arm-linux-gnueabihf"
Original file line number Diff line number Diff line change @@ -35,11 +35,22 @@ shift
3535mkdir -p build
3636cd build
3737
38+ case " $( dpkg --print-architecture) " in
39+ amd64) ARCH=" amd64" ;;
40+ arm64) ARCH=" arm64" ;;
41+ armhf) ARCH=" arm32" ;;
42+ * )
43+ echo " Unsupported architecture: $( dpkg --print-architecture) "
44+ exit 1
45+ ;;
46+ esac
47+
3848case " $CROSS_ARCH " in
39- arm32v7 )
49+ arm32 )
4050 export PKG_CONFIG_ALLOW_CROSS_armv7_unknown_linux_gnueabihf=1
4151 export PKG_CONFIG_LIBDIR_armv7_unknown_linux_gnueabihf=/usr/lib/arm-linux-gnueabihf/pkgconfig
4252 export DEB_HOST_RUST_TYPE=armv7-unknown-linux-gnueabihf
53+ export ARCH=arm32
4354 ;;
4455
4556 * )
@@ -54,7 +65,7 @@ if [[ -z "$DEBUG" ]]; then
5465 ../scripts/build/git-clone.bash ../repos/versions " $REPO "
5566 fi
5667 ../scripts/build/strip-cargo.bash " $REPO "
57- ../scripts/build/apply-patches.bash " ../repos/patches/$REPO " " ../repos/patches-$CROSS_ARCH /$REPO "
68+ ../scripts/build/apply-patches.bash " ../repos/patches/$REPO " " ../repos/patches-$ARCH /$REPO "
5869 ../scripts/build/resolve-dependencies.bash " $REPO "
5970 ../scripts/build/experimental-cargo.bash " $REPO "
6071fi
You can’t perform that action at this time.
0 commit comments