1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

Toolchain: Patch QEMU to support reading kernel cmdline via RPI Mailbox

This commit backports my upstream QEMU patch to implement this
functionality, which is currently waiting for review.

It was submitted here:
https://lists.nongnu.org/archive/html/qemu-arm/2023-04/msg00549
This commit is contained in:
Daniel Bertalan 2023-04-28 16:57:36 +02:00 committed by Andreas Kling
parent a7f61a15af
commit 20fcbcb860
2 changed files with 120 additions and 5 deletions

View file

@ -37,13 +37,19 @@ pushd "$DIR/Tarballs"
exit 1
fi
if [ ! -d "$QEMU_VERSION" ]; then
echo "Extracting qemu..."
tar -xf "${QEMU_ARCHIVE}"
else
echo "Skipped extracting qemu"
# If the source directory exists, re-extract it again in case the patches have changed.
if [ -d "qemu-$QEMU_VERSION" ]; then
rm -rf "qemu-$QEMU_VERSION"
fi
echo "Extracting qemu..."
tar -xf "${QEMU_ARCHIVE}"
pushd "qemu-$QEMU_VERSION"
for patch in "${DIR}"/Patches/qemu/*.patch; do
patch -p1 < "${patch}" > /dev/null
done
popd
popd
mkdir -p "$PREFIX"