Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] gst1-imx: add menuconfig to select each plugin individually
Date: Wed, 21 Sep 2016 06:02:13 +0200	[thread overview]
Message-ID: <20160921060213.2f292837@free-electrons.com> (raw)
In-Reply-To: <20160920224355.l76a3kggupuiugok@t450s.lan>

Hello,

On Wed, 21 Sep 2016 00:43:55 +0200, Gary Bisson wrote:

> Well in most cases it isn't possible, here are some details:
> - BR2_PACKAGE_IMX_GPU_VIV and BR2_PACKAGE_IMX_GPU_VIV_G2D depends on
>   BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q which isn't selectable.
> - We can't select BR2_LINUX_KERNEL since it needs to be a i.MX kernel.
> - BR2_PACKAGE_LIBIMXVPUAPI depends on the i.MX SoC being used which
>   cannot be selectable (MX5 or MX6)

OK, indeed many of the sub-options cannot "select" their dependencies.

> I guess I can select IMX_CODEC though, I'll add that to the V2.

OK. Another possibility is to say that all sub-options should use
"depends on", for consistency. I don't have a strong feeling about this
either way.


> >  1/ Add an explicit --enable-<foo> for each option  
> 
> This was on purpose since the package only look for --disable-foo
> options. All the plugins are enabled by default, see patch in package:
> https://github.com/Freescale/gstreamer-imx/commit/989ab048
> 
> I can still do:
> ifeq ($(BR2_PACKAGE_FOO),y)

Here add the dependency addition.

> else
> BAZ_CONF_OPTS += --disable-foo
> endif
> 
> But my opinion is that --enable-foo is misleading.

Why? There are two options here:

 1/ --enable-<foo> doesn't exist and would cause a failure if passed.
    In this case indeed, don't pass it. And add a quick comment above,
    like "# There's no --enable-<foo> option".

 2/ --enable-<foo> exists. In this case, you should pass it even if the
    default is to have the feature enabled. We indeed want to be
    explicit in Buildroot when enabling/disabling features.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  reply	other threads:[~2016-09-21  4:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-16 13:10 [Buildroot] [PATCH] gst1-imx: add menuconfig to select each plugin individually Gary Bisson
2016-09-20 19:04 ` Thomas Petazzoni
2016-09-20 22:43   ` Gary Bisson
2016-09-21  4:02     ` Thomas Petazzoni [this message]
2016-09-21  8:32       ` Gary Bisson
2016-09-21  9:03         ` Thomas Petazzoni
2016-09-22 21:51     ` Arnout Vandecappelle
2016-09-23 12:58       ` Gary Bisson
2016-09-23 13:13         ` Thomas Petazzoni
2016-09-23 13:40           ` Gary Bisson
2016-09-23 14:25             ` Thomas Petazzoni
2016-09-23 14:29               ` Gary Bisson

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=20160921060213.2f292837@free-electrons.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox