Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v12 02/31] package/freeswitch: enable optional modules
Date: Wed, 13 Apr 2016 23:56:34 +0200	[thread overview]
Message-ID: <570EC092.30702@mind.be> (raw)
In-Reply-To: <1460281299-2385-3-git-send-email-bernd.kuhls@t-online.de>

On 04/10/16 11:41, Bernd Kuhls wrote:
> All these modules have no external dependencies.
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>   package/freeswitch/freeswitch.mk | 76 ++++++++++++++++++++++++++++++++++++++++
>   1 file changed, 76 insertions(+)
>
> diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
> index 69a7ee2..f1903c1 100644
> --- a/package/freeswitch/freeswitch.mk
> +++ b/package/freeswitch/freeswitch.mk
[snip]
> +define FREESWITCH_ENABLE_MODULE # (option, file)
> +	echo '$(1)' >> $(2)
> +endef
> +
> +define FREESWITCH_ENABLE_MODULES
> +	$(foreach mod,$(FREESWITCH_ENABLED_MODULES),\
> +		$(call FREESWITCH_ENABLE_MODULE,$(mod),$(@D)/modules.conf)$(sep))

  I don't particularly like this way of doing it. AFAICS you only have enabled 
modules, so you could just do:

	$(Q)echo $(FREESWITCH_ENABLED_MODULES) \
		| tr ' ' '\n' \
		> $(@D)/modules.conf

  (and then you can remove the reset modules hook).

  Regards,
  Arnout

> +endef
> +
> +FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_ENABLE_MODULES
> +
>   $(eval $(autotools-package))
>


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

  reply	other threads:[~2016-04-13 21:56 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-10  9:41 [Buildroot] [PATCH v12 00/31] package/freeswitch: new package Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 01/31] " Bernd Kuhls
2016-04-13 21:02   ` Thomas Petazzoni
2016-04-14 19:04     ` Bernd Kuhls
2016-04-13 21:53   ` Arnout Vandecappelle
2016-04-10  9:41 ` [Buildroot] [PATCH v12 02/31] package/freeswitch: enable optional modules Bernd Kuhls
2016-04-13 21:56   ` Arnout Vandecappelle [this message]
2016-04-10  9:41 ` [Buildroot] [PATCH v12 03/31] package/freeswitch: add optional dependency to libuuid Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 04/31] package/freeswitch: add optional dependency to libedit Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 05/31] package/freeswitch: enable mod_enum Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 06/31] package/freeswitch: add optional dependency to libpng Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 07/31] package/freeswitch: add optional dependency to unixodbc Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 08/31] package/freeswitch: add optional dependency to freetype Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 09/31] package/freeswitch: enable mod_yaml Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 10/31] package/freeswitch: enable mod_lua Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 11/31] package/freeswitch: enable mod_bv Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 12/31] package/freeswitch: enable mod_codec2 Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 13/31] package/freeswitch: add optional dependency to libg7221 Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 14/31] package/freeswitch: enable mod_ilbc Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 15/31] package/freeswitch: enable mod_isac Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 16/31] package/freeswitch: enable mod_opus Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 17/31] package/freeswitch: enable mod_portaudio Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 18/31] package/freeswitch: enable mod_silk Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 19/31] package/freeswitch: enable mod_sndfile Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 20/31] package/freeswitch: enable mod_alsa Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 21/31] package/freeswitch: enable mod_soundtouch Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 22/31] package/freeswitch: enable mod_xml_rpc Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 23/31] package/freeswitch: add optional dependency to xz Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 24/31] package/freeswitch: enable mod_memcache Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 25/31] package/freeswitch: enable mod_imagick Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 26/31] package/freeswitch: enable mod_cv Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 27/31] package/freeswitch: enable mod_shout Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 28/31] package/freeswitch: add optional dependency to openldap Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 29/31] package/flite: bump version to 2.0.0 Bernd Kuhls
2016-04-13 22:16   ` Arnout Vandecappelle
2016-04-10  9:41 ` [Buildroot] [PATCH v12 30/31] package/freeswitch: enable mod_flite Bernd Kuhls
2016-04-10  9:41 ` [Buildroot] [PATCH v12 31/31] package/freeswitch: enable video support Bernd Kuhls

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=570EC092.30702@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /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