Skip to content

Commit

Permalink
Test architecture arm/v6 (part 7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mansuf committed Jun 7, 2024
1 parent 8c27dce commit 5a00471
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arm_v6_workaround.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Workaround to install rust for building Dockerfile.optional in ARM v6 machine CI
echo $(lscpu)
export ARCHITECTURE=$(lscpu | grep Architecture | sed -e 's/Architecture:\s//g')
echo $ARCHITECTURE
if [ $ARCHITECTURE = "armv7l" ]; then
export QEMU_LD_PREFIX=/usr/arm-linux-gnueabi
apt install libc6-armhf-cross
ln -s /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /usr/lib/ld-linux-armhf.so.3
# export QEMU_LD_PREFIX=/usr/arm-linux-gnueabi
else
raise_error_lol_command_not_found;
fi

0 comments on commit 5a00471

Please sign in to comment.