summaryrefslogtreecommitdiffstats
path: root/package/powerpc-utils
diff options
context:
space:
mode:
authorSam bobroff <sam.bobroff@au1.ibm.com>2015-05-19 15:59:56 +1000
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-13 18:40:08 +0200
commit80a34ce7f1a2ab1128140c497322a2d894dd7af0 (patch)
tree2ff2a4cc0effa8933795a32f6604c06002af2df3 /package/powerpc-utils
parent10e10f128d87d125be0d10ad089b98a42156612c (diff)
downloadbuildroot-80a34ce7f1a2ab1128140c497322a2d894dd7af0.tar.gz
buildroot-80a34ce7f1a2ab1128140c497322a2d894dd7af0.zip
powerpc-utils: optionally use librtas
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. [Thomas: propagate the glibc dependency from the librtas package, as suggested by Romain Naour.] Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com> Reviewed-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/powerpc-utils')
-rw-r--r--package/powerpc-utils/Config.in22
-rw-r--r--package/powerpc-utils/powerpc-utils.mk8
2 files changed, 29 insertions, 1 deletions
diff --git a/package/powerpc-utils/Config.in b/package/powerpc-utils/Config.in
index eded41e7e5..8e02e76459 100644
--- a/package/powerpc-utils/Config.in
+++ b/package/powerpc-utils/Config.in
@@ -6,3 +6,25 @@ 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
+ depends on BR2_TOOLCHAIN_USES_GLIBC
+ 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.
+
+comment "RTAS support needs an (e)glibc toolchain"
+ depends on !BR2_TOOLCHAIN_USES_GLIBC
+
+endif
diff --git a/package/powerpc-utils/powerpc-utils.mk b/package/powerpc-utils/powerpc-utils.mk
index 3b30458d3b..ae4d6622ec 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))
OpenPOWER on IntegriCloud