Browse Source

Support PowerPC in generate-lv2.sh

pull/128/head
taylor.fish 1 year ago
parent
commit
04619548ae
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      scripts/generate-lv2.sh

+ 15
- 0
scripts/generate-lv2.sh View File

@@ -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


Loading…
Cancel
Save