forked from EEESlab/tricore-gcc-toolchain-11.3.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build QEMU separately on Ubuntu 24.04
- Loading branch information
Showing
3 changed files
with
73 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
if [ ! -f /etc/lsb_release ] && [ ! -f /etc/debian_version ] | ||
then | ||
echo "Script is meant to install packages on Debian/Ubuntu based distributions" | ||
echo "Please install dependencies manually on other distributions" | ||
exit 1 | ||
fi | ||
|
||
apt-get update | ||
DEBIAN_FRONTEND=noninteractive apt-get -y install \ | ||
build-essential \ | ||
gcc-mingw-w64 g++-mingw-w64 mingw-w64-tools \ | ||
git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build \ | ||
python3-pip curl | ||
|
||
# Make sure MingGW compiler uses Posix threads | ||
update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix | ||
update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix | ||
|
||
pip3 install --break-system-packages meson==1.4.0 |