summaryrefslogtreecommitdiff
path: root/doc/note/qemu/compile-qemu-itself.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/note/qemu/compile-qemu-itself.txt')
-rw-r--r--doc/note/qemu/compile-qemu-itself.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/note/qemu/compile-qemu-itself.txt b/doc/note/qemu/compile-qemu-itself.txt
new file mode 100644
index 0000000..aed0522
--- /dev/null
+++ b/doc/note/qemu/compile-qemu-itself.txt
@@ -0,0 +1,27 @@
+
+#
+# Compile qemu bullshit-free for windoof.
+#
+# [src](https://wiki.qemu.org/Hosts/W32)
+#
+#
+# WARN: This does NOT work
+#
+
+true \
+ && QEMU_URL="https://download.qemu.org/qemu-8.2.1.tar.xz" \
+ && SUDO=sudo \
+ && WORKDIR=/home/${USER:?}/work \
+ && CACHEDIR=/var/tmp \
+ && QEMU_TXZ=$(basename "${QEMU_URL:?}") \
+ && $SUDO apt install -y --no-install-recommends curl \
+ && curl -D- "${QEMU_URL:?}" -o "${CACHEDIR:?}/${QEMU_TXZ:?}" \
+ && mkdir -p "${WORKDIR:?}" \
+ && cd "${WORKDIR:?}" \
+ && tar xf "${CACHEDIR:?}/${QEMU_TXZ:?}" \
+ && cd qemu* \
+ && ./configure \
+ && make \
+ && true
+
+