All of lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 2/2] powerpc-utils: optionally use librtas
Date: Mon, 13 Jul 2015 17:44:03 +0200	[thread overview]
Message-ID: <55A3DCC3.7060202@openwide.fr> (raw)
In-Reply-To: <9a73202315e0a236b78d9644905c20b79572f93d.1432015191.git.sam.bobroff@au1.ibm.com>

Le 19/05/2015 07:59, Sam Bobroff a ?crit :
> Now that librtas is available, optionally use it with powerpc-utils to
> enable it's RTAS dependant functionality.  It is used by default, as
> most distros do, but made optional because it adds several new programs
> and significantly increases the size of the installed package.
> 
> Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
> ---
> v3:
> 
> Group "with" and "without" clauses.
> 
> v2:
> 
> Make librtas support in powerpc-utils optional due to size concerns.
> 
>  package/powerpc-utils/Config.in        |   18 ++++++++++++++++++
>  package/powerpc-utils/powerpc-utils.mk |    8 +++++++-
>  2 files changed, 25 insertions(+), 1 deletion(-)
> 
> diff --git a/package/powerpc-utils/Config.in b/package/powerpc-utils/Config.in
> index eded41e..8b3e3d1 100644
> --- a/package/powerpc-utils/Config.in
> +++ b/package/powerpc-utils/Config.in
> @@ -6,3 +6,21 @@ config BR2_PACKAGE_POWERPC_UTILS
>  	  System utilities for PowerPC machines.
>  
>  	  http://sourceforge.net/projects/powerpc-utils/
> +
> +if BR2_PACKAGE_POWERPC_UTILS
> +
> +config BR2_PACKAGE_POWERPC_UTILS_RTAS
> +	bool "RTAS support"
> +	select BR2_PACKAGE_LIBRTAS

The librtas reverse dependencies should be added here (glibc toolchain only and
!static build)

Reviewed-by: Romain Naour <romain.naour@openwide.fr>

Best regards,
Romain Naour


> +	default y
> +	help
> +	  Enable support for functions that require RTAS.
> +
> +	  This adds a dependency on librtas and provides the following
> +	  additional features at the cost of increasing the installed package
> +	  size from about 0.5MB to about 2MB:
> +	  ppc64_cpu --run-mode, uesensor, set_poweron_time, drmgr, lsslot,
> +	  activate_firmware, rtas_ibm_get_vpd, serv_config,
> +	  rtas_event_decode, sys_ident.
> +
> +endif
> diff --git a/package/powerpc-utils/powerpc-utils.mk b/package/powerpc-utils/powerpc-utils.mk
> index 3b30458..ae4d662 100644
> --- a/package/powerpc-utils/powerpc-utils.mk
> +++ b/package/powerpc-utils/powerpc-utils.mk
> @@ -10,8 +10,14 @@ POWERPC_UTILS_DEPENDENCIES = zlib
>  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)
>  
> +ifeq ($(BR2_PACKAGE_POWERPC_UTILS_RTAS),y)
> +POWERPC_UTILS_DEPENDENCIES += librtas
> +POWERPC_UTILS_CONF_OPTS = --with-librtas
> +else
> +POWERPC_UTILS_CONF_OPTS = --without-librtas
> +endif
> +
>  $(eval $(autotools-package))
> 

  reply	other threads:[~2015-07-13 15:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-19  5:59 [Buildroot] [PATCH v3 0/2] Improve powerpc-utils with librtas Sam Bobroff
2015-05-19  5:59 ` [Buildroot] [PATCH v3 1/2] librtas: new package Sam Bobroff
2015-07-13 15:32   ` Romain Naour
2015-07-13 15:38     ` Romain Naour
2015-07-13 16:37   ` Thomas Petazzoni
2015-05-19  5:59 ` [Buildroot] [PATCH v3 2/2] powerpc-utils: optionally use librtas Sam Bobroff
2015-07-13 15:44   ` Romain Naour [this message]
2015-07-13 16:44   ` Thomas Petazzoni
2015-07-20  3:31     ` Sam Bobroff
2015-06-01  4:05 ` [Buildroot] [PATCH v3 0/2] Improve powerpc-utils with librtas Sam Bobroff
2015-06-01  4:18   ` Baruch Siach

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=55A3DCC3.7060202@openwide.fr \
    --to=romain.naour@openwide.fr \
    --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.