Skip to content

Commit 85fe83d

Browse files
committed
fixup! Use Signed Binaries for Docker Build
1 parent 32cab91 commit 85fe83d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.pipelines/build/scripts/ipv6-hp-bpf.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ if [[ -f /etc/debian_version ]];then
2222
apt-get install -y llvm clang linux-libc-dev linux-headers-generic libbpf-dev libc6-dev nftables iproute2 gcc-aarch64-linux-gnu
2323

2424
ARCH=aarch64-linux-gnu
25-
PLAT=linux-aarch64
2625
cp /usr/lib/"$ARCH"/ld-linux-aarch64.so.1 "$OUT_DIR"/lib/
2726
fi
2827

@@ -34,8 +33,13 @@ if [[ -f /etc/debian_version ]];then
3433
# Mariner
3534
else
3635
tdnf install -y llvm clang libbpf-devel nftables gcc binutils iproute glibc-devel
37-
ARCH=x86_64-linux-gnu
38-
cp /usr/lib/"$ARCH"/ld-linux-x86-64.so.2 "$OUT_DIR"/lib/
36+
if [[ $ARCH =~ amd64 ]]; then
37+
ARCH=x86_64-linux-gnu
38+
cp /usr/lib/"$ARCH"/ld-linux-x86-64.so.2 "$OUT_DIR"/lib/
39+
elif [[ $ARCH =~ arm64 ]]; then
40+
ARCH=aarch64-linux-gnu
41+
cp /usr/lib/"$ARCH"/ld-linux-aarch64.so.1 "$OUT_DIR"/lib/
42+
fi
3943
for dir in /usr/include/"$ARCH"/*; do
4044
if [[ -d $dir ]]; then
4145
ln -sfn "$dir" /usr/include/$(basename "$dir")

0 commit comments

Comments
 (0)