Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Bobroff <sam.bobroff@au1.ibm.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] powerpc-utils: remove --without-librtas
Date: Mon, 11 May 2015 10:43:27 +1000	[thread overview]
Message-ID: <554FFB2F.2010102@au1.ibm.com> (raw)
In-Reply-To: <20150508045758.GH2183@tarshish>

On 08/05/15 14:57, Baruch Siach wrote:
> Hi Sam,
> 
> On Fri, May 08, 2015 at 02:27:49PM +1000, Sam Bobroff wrote:
>> Now that librtas is available, remove --without-librtas and make the
>> rtas-dependant functions available.
>>
>> Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
>> ---
>>  package/powerpc-utils/Config.in        |    1 +
>>  package/powerpc-utils/powerpc-utils.mk |    3 +--
>>  2 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/package/powerpc-utils/Config.in b/package/powerpc-utils/Config.in
>> index eded41e..a754899 100644
>> --- a/package/powerpc-utils/Config.in
>> +++ b/package/powerpc-utils/Config.in
>> @@ -2,6 +2,7 @@ config BR2_PACKAGE_POWERPC_UTILS
>>  	bool "powerpc-utils"
>>  	depends on BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
>>  	select BR2_PACKAGE_ZLIB
>> +	select BR2_PACKAGE_LIBRTAS
>>  	help
>>  	  System utilities for PowerPC machines.
>>  
>> diff --git a/package/powerpc-utils/powerpc-utils.mk b/package/powerpc-utils/powerpc-utils.mk
>> index 3b30458..3fb9e24 100644
>> --- a/package/powerpc-utils/powerpc-utils.mk
>> +++ b/package/powerpc-utils/powerpc-utils.mk
>> @@ -6,11 +6,10 @@
>>  
>>  POWERPC_UTILS_VERSION = 1.2.24
>>  POWERPC_UTILS_SITE = http://downloads.sourceforge.net/project/powerpc-utils/powerpc-utils
>> -POWERPC_UTILS_DEPENDENCIES = zlib
>> +POWERPC_UTILS_DEPENDENCIES = zlib librtas
> 
> Why not make librtas an optional dependency? Something like:
> 
> ifeq ($(BR2_PACKAGE_LIBRTAS),y)
> POWERPC_UTILS_DEPENDENCIES += librtas
> POWERPC_UTILS_CONF_OPTS = --with-librtas
> else
> POWERPC_UTILS_CONF_OPTS = --without-librtas
> endif
> 
>>  POWERPC_UTILS_LICENSE = Common Public License Version 1.0
>>  POWERPC_UTILS_LICENSE_FILES = COPYRIGHT
>>  
>> -POWERPC_UTILS_CONF_OPTS = --without-librtas
>>  POWERPC_UTILS_CONF_ENV = \
>>  	ax_cv_check_cflags___fstack_protector_all=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no)
> 
> baruch
> 

Hi Baruch,

I thought about making it optional, but there seemed to be two reasons
to always include it:

* librtas is a small library and it provides a lot of functionality to
powerpc-utils. Why leave it out?

* Distros (AFAIK) always include librtas when providing powerpc-utils,
so it would surprise users to provide a powerpc-utils without it by
default. So if I did make it optional, I think it should be using some
method that caused librtas to be included by default or at least
provided some indication in the menu that they may want to go and enable
librtas. Then I thought this was a bit complicated for a use case that I
couldn't find a reason for.

That said, if you have a reason to make it optional I'll be happy to
make it so. Maybe using a sub-option to add the dependency, and that
could default to yes?

e.g.

[*] powerpc-utils
	[*] RTAS functionality

Cheers,
Sam.

  reply	other threads:[~2015-05-11  0:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-08  4:27 [Buildroot] [PATCH 0/2] Improve powerpc-utils with librtas Sam Bobroff
2015-05-08  4:27 ` [Buildroot] [PATCH 1/2] librtas: new package Sam Bobroff
2015-05-08  4:52   ` Baruch Siach
2015-05-08  5:37     ` Sam Bobroff
2015-05-08  7:42     ` Peter Korsgaard
2015-05-10 23:58       ` Sam Bobroff
2015-05-11  9:31       ` Thomas Petazzoni
2015-05-08  4:27 ` [Buildroot] [PATCH 2/2] powerpc-utils: remove --without-librtas Sam Bobroff
2015-05-08  4:57   ` Baruch Siach
2015-05-11  0:43     ` Sam Bobroff [this message]
2015-05-11  4:34       ` Baruch Siach
2015-05-11  5:53         ` Sam Bobroff
2015-05-11  6:00           ` Baruch Siach
2015-05-11  7:56             ` Peter Korsgaard

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=554FFB2F.2010102@au1.ibm.com \
    --to=sam.bobroff@au1.ibm.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