mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:27:34 +00:00
Ports: Add riscv64 target to QEMU
This commit is contained in:
parent
fb5353e7e2
commit
900334a4aa
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ port='qemu'
|
||||||
version="${QEMU_VERSION}"
|
version="${QEMU_VERSION}"
|
||||||
useconfigure='true'
|
useconfigure='true'
|
||||||
configopts=(
|
configopts=(
|
||||||
'--target-list=aarch64-softmmu,i386-softmmu,x86_64-softmmu'
|
'--target-list=aarch64-softmmu,i386-softmmu,riscv64-softmmu,x86_64-softmmu'
|
||||||
"--cross-prefix=${SERENITY_ARCH}-pc-serenity-"
|
"--cross-prefix=${SERENITY_ARCH}-pc-serenity-"
|
||||||
'--extra-ldflags=-lm'
|
'--extra-ldflags=-lm'
|
||||||
'--without-default-features'
|
'--without-default-features'
|
||||||
|
@ -36,7 +36,7 @@ post_install() {
|
||||||
# Add a drop-in fstab entry to make sure that we can use anonymous executable memory and bypass W^X
|
# Add a drop-in fstab entry to make sure that we can use anonymous executable memory and bypass W^X
|
||||||
mkdir -p "${SERENITY_INSTALL_ROOT}/etc/fstab.d"
|
mkdir -p "${SERENITY_INSTALL_ROOT}/etc/fstab.d"
|
||||||
rm -rf "${SERENITY_INSTALL_ROOT}/etc/fstab.d/qemu"
|
rm -rf "${SERENITY_INSTALL_ROOT}/etc/fstab.d/qemu"
|
||||||
for i in /usr/local/bin/qemu-system-{aarch64,i386,x86_64}; do
|
for i in /usr/local/bin/qemu-system-{aarch64,i386,riscv64,x86_64}; do
|
||||||
echo "${i} ${i} bind bind,wxallowed,axallowed" >> "${SERENITY_INSTALL_ROOT}/etc/fstab.d/qemu"
|
echo "${i} ${i} bind bind,wxallowed,axallowed" >> "${SERENITY_INSTALL_ROOT}/etc/fstab.d/qemu"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue