Skip to content

Commit

Permalink
Support PowerPC in generate-lv2.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taylordotfish authored and falkTX committed Apr 27, 2024
1 parent 7fedbb9 commit 31afd94
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/generate-lv2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ if [ -z "${MESON_EXE_WRAPPER}" ]; then
MESON_EXE_WRAPPER="qemu-x86_64-static"
fi

elif echo "${fileout}" | grep -q "64-bit LSB.*PowerPC"; then
if [ "$(uname -m)" != "ppc64le" ]; then
MESON_EXE_WRAPPER="qemu-ppc64le-static"
fi

elif echo "${fileout}" | grep -q "64-bit MSB.*PowerPC"; then
if [ "$(uname -m)" != "ppc64" ]; then
MESON_EXE_WRAPPER="qemu-ppc64-static"
fi

elif echo "${fileout}" | grep -q "32-bit MSB.*PowerPC"; then
if [ "$(uname -m)" != "ppc" ] && [ "$(uname -m)" != "ppc64" ]; then
MESON_EXE_WRAPPER="qemu-ppc-static"
fi

else
echo "unrecognized file output: ${fileout}"
exit 1
Expand Down

0 comments on commit 31afd94

Please sign in to comment.