Skip to content

Commit

Permalink
use uname -m for cpu detection on risc-v
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroge committed Apr 12, 2024
1 parent 4063226 commit 42aa1d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions containers/build-or-download-cvmfs-debs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ then
wget https://github.com/cvmfs/cvmfs/pull/3446.patch
patch -p 1 -i ./3446.patch
rm 3446.patch
# QEMU shows the host CPU in /proc/cpuinfo, so we need to tweak the CPU detection for some packages and use uname -m instead
sed -i "s/^ISA=.*/ISA=\$(uname -m)/" externals/libcrypto/src/configureHook.sh
sed -i "s/rv64/riscv64/" externals/libcrypto/src/configureHook.sh
sed -i "s/^ISA=.*/ISA=\$(uname -m)/" externals/protobuf/src/configureHook.sh
sed -i "s/rv64/riscv64/" externals/protobuf/src/configureHook.sh
else
apt-get install -y valgrind
fi
Expand Down

0 comments on commit 42aa1d6

Please sign in to comment.