Skip to content

Commit

Permalink
build-sys: move slirp as git submodule project
Browse files Browse the repository at this point in the history
The slirp project is now hosted on freedesktop at:
https://gitlab.freedesktop.org/slirp.

The libslirp source was extracted from qemu/slirp filtered through
clang-format (available in project tree). The qemu slirp directory can
be swapped by a git submodule.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20190424110041.8175-3-marcandre.lureau@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
  • Loading branch information
elmarco authored and sthibaul committed May 2, 2019
1 parent 8169560 commit 7c57bdd
Show file tree
Hide file tree
Showing 62 changed files with 14 additions and 15,725 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@
[submodule "roms/edk2"]
path = roms/edk2
url = https://github.com/tianocore/edk2.git
[submodule "slirp"]
path = slirp
url = https://gitlab.freedesktop.org/slirp/libslirp.git
11 changes: 9 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,8 @@ for opt do
;;
--disable-slirp) slirp="no"
;;
--enable-slirp=git) slirp="git"
;;
--enable-slirp=system) slirp="system"
;;
--disable-vde) vde="no"
Expand Down Expand Up @@ -5885,6 +5887,8 @@ case "$slirp" in
"" | yes)
if $pkg_config slirp; then
slirp=system
elif test -e "${source_path}/.git" && test $git_update = 'yes' ; then
slirp=git
elif test -e "${source_path}/slirp/Makefile" ; then
slirp=internal
elif test -z "$slirp" ; then
Expand All @@ -5902,7 +5906,10 @@ case "$slirp" in
esac

case "$slirp" in
internal)
git | internal)
if test "$slirp" = git; then
git_submodules="${git_submodules} slirp"
fi
mkdir -p slirp
slirp_cflags="-I\$(SRC_PATH)/slirp/src -I\$(BUILD_DIR)/slirp/src"
slirp_libs="-L\$(BUILD_DIR)/slirp -lslirp"
Expand Down Expand Up @@ -6565,7 +6572,7 @@ if test "$slirp" != "no"; then
echo "SLIRP_CFLAGS=$slirp_cflags" >> $config_host_mak
echo "SLIRP_LIBS=$slirp_libs" >> $config_host_mak
fi
if [ "$slirp" = "internal" ]; then
if [ "$slirp" = "git" -o "$slirp" = "internal" ]; then
echo "config-host.h: subdir-slirp" >> $config_host_mak
fi
if test "$vde" = "yes" ; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/archive-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ vroot_dir="${tar_file}.vroot"
# independent of what the developer currently has initialized
# in their checkout, because the build environment is completely
# different to the host OS.
submodules="dtc ui/keycodemapdb tests/fp/berkeley-softfloat-3 tests/fp/berkeley-testfloat-3"
submodules="dtc slirp ui/keycodemapdb tests/fp/berkeley-softfloat-3 tests/fp/berkeley-testfloat-3"

trap "status=$?; rm -rf \"$list_file\" \"$vroot_dir\"; exit \$status" 0 1 2 3 15

Expand Down
1 change: 1 addition & 0 deletions slirp
Submodule slirp added at 59a1b1
62 changes: 0 additions & 62 deletions slirp/COPYRIGHT

This file was deleted.

47 changes: 0 additions & 47 deletions slirp/Makefile

This file was deleted.

92 changes: 0 additions & 92 deletions slirp/src/arp_table.c

This file was deleted.

Loading

0 comments on commit 7c57bdd

Please sign in to comment.