Skip to content

Commit

Permalink
Test architecture arm/v6 (part 9)
Browse files Browse the repository at this point in the history
  • Loading branch information
mansuf committed Jun 7, 2024
1 parent fa442c9 commit c4df759
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions arm_v6_workaround.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# 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')
export CPU_FLAGS=$(lscpu | grep Flags | sed -e 's/Flags:\s//g')
echo $ARCHITECTURE
if [ $ARCHITECTURE = "armv7l" ]; then
echo $CPU_FLAGS

echo $ARCHITECTURE
if [ $ARCHITECTURE = "armv7l" ] && ! [[ $CPU_FLAGS =~ "v_vmsave_vmlo" ]];; then
apt install libc6-armhf-cross
export LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib
ln -s /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /lib/ld-linux-armhf.so.3
# 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 c4df759

Please sign in to comment.