From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 0/3] Add CONF_ENABLE and CONF_PKG_ENABLE helper functions
Date: Mon, 7 May 2012 16:21:39 +0200 [thread overview]
Message-ID: <20120507162139.44a814e9@skate> (raw)
In-Reply-To: <1335647781-16536-1-git-send-email-arnout@mind.be>
Hello Arnout,
Le Sat, 28 Apr 2012 23:16:18 +0200,
"Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be> a ?crit :
> Many packages have the following type of construct:
>
> ifeq ($(BR2_PACKAGE_ACL),y)
> SYSTEMD_CONF_OPT += --enable-acl
> SYSTEMD_DEPENDENCIES += acl
> else
> SYSTEMD_CONF_OPT += --disable-acl
> endif
>
> The first patch in this series abbreviates that to
>
> $(eval $(call CONF_PKG_ENABLE,SYSTEMD,acl))
>
> It makes it possible to abbreviate similar constructs as well.
Thanks for working on this and making a proposal.
However, on my side, I am not yet convinced that this is actually
making things better than what we have now. What we have now is quite
obvious for the first-time reader, which is very good. Those
CONF_PKG_ENABLE and CONF_ENABLE macros make things a bit too cryptic
from my point of view. This is not an absolutely strong opinion, but I
have the feeling this is on the "we want to make things smaller/shorter
and end up making things cryptic" side of the trade-off. Of course,
others have to comment to share their views on this.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2012-05-07 14:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-28 21:16 [Buildroot] [PATCH 0/3] Add CONF_ENABLE and CONF_PKG_ENABLE helper functions Arnout Vandecappelle
2012-04-28 21:16 ` [Buildroot] [PATCH 1/3] pkg-infra: add " Arnout Vandecappelle
2012-04-28 21:16 ` [Buildroot] [PATCH 2/3] avahi: use CONF_ENABLE and CONF_PKG_ENABLE Arnout Vandecappelle
2012-04-28 21:16 ` [Buildroot] [PATCH 3/3] cairo: " Arnout Vandecappelle
2012-05-07 14:21 ` Thomas Petazzoni [this message]
2012-05-09 8:06 ` [Buildroot] [PATCH 0/3] Add CONF_ENABLE and CONF_PKG_ENABLE helper functions Thomas De Schampheleire
2012-05-09 9:35 ` Peter Korsgaard
2012-05-11 22:29 ` Arnout Vandecappelle
2012-05-12 9:03 ` Samuel Martin
2012-05-12 11:42 ` Thomas Petazzoni
2012-05-12 11:05 ` Thomas Petazzoni
2012-05-12 14:47 ` Arnout Vandecappelle
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=20120507162139.44a814e9@skate \
--to=thomas.petazzoni@free-electrons.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.