mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] libslirp: new package: user-mode networking library used by qemu
Date: Thu, 16 Mar 2023 15:31:32 +0100	[thread overview]
Message-ID: <20230316143132.3683679-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20230312185306.2402677-1-rhi@pengutronix.de>

Thanks, applied as 81fbc066ec4975fbfd0faecea733dc72f80a5f1d.

Michael

[sent from post-receive hook]

On Thu, 16 Mar 2023 15:31:32 +0100, Roland Hieber <rhi@pengutronix.de> wrote:
> The host package will be used for qemu in the next commit.
> 
> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> Message-Id: <20230312185306.2402677-1-rhi@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/host-libslirp.in b/rules/host-libslirp.in
> new file mode 100644
> index 000000000000..d0a9f211f89a
> --- /dev/null
> +++ b/rules/host-libslirp.in
> @@ -0,0 +1,7 @@
> +## SECTION=hosttools_noprompt
> +
> +config HOST_LIBSLIRP
> +	tristate
> +	select HOST_GLIB
> +	select HOST_MESON
> +	prompt "libslirp"
> diff --git a/rules/host-libslirp.make b/rules/host-libslirp.make
> new file mode 100644
> index 000000000000..de2af49fb9bd
> --- /dev/null
> +++ b/rules/host-libslirp.make
> @@ -0,0 +1,23 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2023 by Roland Hieber <rhi@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +HOST_PACKAGES-$(PTXCONF_HOST_LIBSLIRP) += host-libslirp
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# meson
> +#
> +HOST_LIBSLIRP_CONF_TOOL	:= meson
> +
> +# vim: syntax=make
> diff --git a/rules/libslirp.in b/rules/libslirp.in
> new file mode 100644
> index 000000000000..a078775a1887
> --- /dev/null
> +++ b/rules/libslirp.in
> @@ -0,0 +1,10 @@
> +## SECTION=networking
> +
> +config LIBSLIRP
> +	tristate
> +	select HOST_MESON
> +	select GLIB
> +	prompt "libslirp"
> +	help
> +	  libslirp is a user-mode networking library used by virtual machines,
> +	  containers or various tools, like qemu.
> diff --git a/rules/libslirp.make b/rules/libslirp.make
> new file mode 100644
> index 000000000000..232241da2b96
> --- /dev/null
> +++ b/rules/libslirp.make
> @@ -0,0 +1,58 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2023 by Roland Hieber <rhi@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_LIBSLIRP) += libslirp
> +
> +#
> +# Paths and names
> +#
> +LIBSLIRP_VERSION	:= 4.7.0
> +LIBSLIRP_MD5		:= b815c4de99265559caf5ef635a213609
> +LIBSLIRP		:= libslirp-v$(LIBSLIRP_VERSION)
> +LIBSLIRP_SUFFIX		:= tar.bz2
> +LIBSLIRP_URL		:= https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v4.7.0/$(LIBSLIRP).$(LIBSLIRP_SUFFIX)
> +LIBSLIRP_SOURCE		:= $(SRCDIR)/$(LIBSLIRP).$(LIBSLIRP_SUFFIX)
> +LIBSLIRP_DIR		:= $(BUILDDIR)/$(LIBSLIRP)
> +LIBSLIRP_LICENSE	:= BSD-3-Clause AND MIT
> +LIBSLIRP_LICENSE_FILES	:= \
> +	file://src/main.h;endline=4;md5=1e742c49b6e4dd48549742f8727faceb \
> +	file://src/slirp.c;endline=24;md5=1e11fddaa17f36215c1697d4bad0e70a \
> +	file://COPYRIGHT;md5=bca0186b14e6b05e338e729f106db727
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# meson
> +#
> +LIBSLIRP_CONF_TOOL	:= meson
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/libslirp.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, libslirp)
> +	@$(call install_fixup, libslirp,PRIORITY,optional)
> +	@$(call install_fixup, libslirp,SECTION,base)
> +	@$(call install_fixup, libslirp,AUTHOR,"Roland Hieber <rhi@pengutronix.de>")
> +	@$(call install_fixup, libslirp,DESCRIPTION,missing)
> +
> +	@$(call install_lib, libslirp, 0, 0, 0644, libslirp)
> +
> +	@$(call install_finish, libslirp)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make



      parent reply	other threads:[~2023-03-16 14:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-12 18:53 [ptxdist] [PATCH 1/2] " Roland Hieber
2023-03-12 18:53 ` [ptxdist] [PATCH 2/2] qemu, host-qemu: re-enable user networking via libslirp Roland Hieber
2023-03-16 14:31   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-03-16 14:31 ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230316143132.3683679-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=rhi@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox