-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |