Meta: Change the QEMU binary directory to Toolchain/Local/qemu
Previously we'd place the QEMU binaries into the architecture-specific toolchain directory. This is a problem because the BuildIt.sh script clears those directories which also removes the QEMU binaries users may have built earlier. Also, the QEMU binaries are not specific to the target architecture.
This commit is contained in:
parent
d0c4524234
commit
128e504de6
Notes:
sideshowbarker
2024-07-18 11:04:49 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/128e504de6c Pull-request: https://github.com/SerenityOS/serenity/pull/8401 Reviewed-by: https://github.com/awesomekling
1 changed files with 8 additions and 11 deletions
|
@ -7,8 +7,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||
|
||||
echo "$DIR"
|
||||
|
||||
ARCH=${ARCH:-"i686"}
|
||||
PREFIX="$DIR/Local/$ARCH"
|
||||
PREFIX="$DIR/Local/qemu"
|
||||
BUILD=$(realpath "$DIR/../Build")
|
||||
SYSROOT="$BUILD/Root"
|
||||
|
||||
|
@ -46,7 +45,7 @@ pushd "$DIR/Tarballs"
|
|||
popd
|
||||
|
||||
mkdir -p "$PREFIX"
|
||||
mkdir -p "$DIR/Build/$ARCH/qemu"
|
||||
mkdir -p "$DIR/Build/qemu"
|
||||
|
||||
if [ -z "$MAKEJOBS" ]; then
|
||||
MAKEJOBS=$(nproc)
|
||||
|
@ -61,12 +60,10 @@ fi
|
|||
|
||||
echo Using $UI_LIB based UI
|
||||
|
||||
pushd "$DIR/Build/$ARCH"
|
||||
pushd qemu
|
||||
"$DIR"/Tarballs/$QEMU_VERSION/configure --prefix="$PREFIX" \
|
||||
--target-list=i386-softmmu,x86_64-softmmu \
|
||||
--enable-$UI_LIB || exit 1
|
||||
make -j "$MAKEJOBS" || exit 1
|
||||
make install || exit 1
|
||||
popd
|
||||
pushd "$DIR/Build/qemu"
|
||||
"$DIR"/Tarballs/$QEMU_VERSION/configure --prefix="$PREFIX" \
|
||||
--target-list=i386-softmmu,x86_64-softmmu \
|
||||
--enable-$UI_LIB || exit 1
|
||||
make -j "$MAKEJOBS" || exit 1
|
||||
make install || exit 1
|
||||
popd
|
||||
|
|
Loading…
Add table
Reference in a new issue