Skip to content

Commit 65cf14a

Browse files
wangpc-ppcmuellner
authored andcommitted
Enable user mode network backend support in qemu
If `libslirp` is found during configuration, it will be enabled. So we just need install `libslirp` before building.
1 parent ae8dc93 commit 65cf14a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/setup-apt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ apt update
66
apt install -y autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev \
77
libgmp-dev gawk build-essential bison flex texinfo gperf libtool \
88
patchutils bc zlib1g-dev libexpat-dev git ninja-build cmake libglib2.0-dev expect \
9-
device-tree-compiler python3-pyelftools
9+
device-tree-compiler python3-pyelftools libslirp-dev

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ Several standard packages are needed to build the toolchain.
2020

2121
On Ubuntu, executing the following command should suffice:
2222

23-
$ sudo apt-get install autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build git cmake libglib2.0-dev
23+
$ sudo apt-get install autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build git cmake libglib2.0-dev libslirp-dev
2424

2525
On Fedora/CentOS/RHEL OS, executing the following command should suffice:
2626

27-
$ sudo yum install autoconf automake python3 libmpc-devel mpfr-devel gmp-devel gawk bison flex texinfo patchutils gcc gcc-c++ zlib-devel expat-devel
27+
$ sudo yum install autoconf automake python3 libmpc-devel mpfr-devel gmp-devel gawk bison flex texinfo patchutils gcc gcc-c++ zlib-devel expat-devel libslirp-devel
2828

2929
On Arch Linux, executing the following command should suffice:
3030

31-
$ sudo pacman -Syyu autoconf automake curl python3 libmpc mpfr gmp gawk base-devel bison flex texinfo gperf libtool patchutils bc zlib expat
31+
$ sudo pacman -Syyu autoconf automake curl python3 libmpc mpfr gmp gawk base-devel bison flex texinfo gperf libtool patchutils bc zlib expat libslirp
3232

3333
Also available for Arch users on the AUR: [https://aur.archlinux.org/packages/riscv-gnu-toolchain-bin](https://aur.archlinux.org/packages/riscv-gnu-toolchain-bin)
3434

3535
On OS X, you can use [Homebrew](http://brew.sh) to install the dependencies:
3636

37-
$ brew install python3 gawk gnu-sed gmp mpfr libmpc isl zlib expat texinfo flock
37+
$ brew install python3 gawk gnu-sed gmp mpfr libmpc isl zlib expat texinfo flock libslirp
3838

3939
To build the glibc (Linux) on OS X, you will need to build within a case-sensitive file
4040
system. The simplest approach is to create and mount a new disk image with

0 commit comments

Comments
 (0)