summaryrefslogtreecommitdiffstats
path: root/package/rpm
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@openwide.fr>2015-01-18 20:53:08 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-02-01 23:11:54 +0100
commit3c476540d17aaa629aa67bc754f1f67233d20aed (patch)
treeb4c522c6391aa67dc9c4d0275ba70f5b31a19db9 /package/rpm
parent652414095e85e6da906f99da6a184f8a31177b60 (diff)
downloadbuildroot-3c476540d17aaa629aa67bc754f1f67233d20aed.tar.gz
buildroot-3c476540d17aaa629aa67bc754f1f67233d20aed.zip
package/rpm: don't use sub-options for bzip2 and xz features
Allow enabling features depends on the relying packages. Add the old sub-options to Config.in.legacy. Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/rpm')
-rw-r--r--package/rpm/Config.in19
-rw-r--r--package/rpm/rpm.mk5
2 files changed, 3 insertions, 21 deletions
diff --git a/package/rpm/Config.in b/package/rpm/Config.in
index 5ec4167fd3..c6fc3b7621 100644
--- a/package/rpm/Config.in
+++ b/package/rpm/Config.in
@@ -19,22 +19,3 @@ config BR2_PACKAGE_RPM
The RPM package management system.
http://rpm5.org
-
-if BR2_PACKAGE_RPM
-
-config BR2_PACKAGE_RPM_BZIP2_PAYLOADS
- bool "support for bzip2 payloads"
- select BR2_PACKAGE_BZIP2
- help
- Support for bzip2 payloads in RPM.
-
-config BR2_PACKAGE_RPM_XZ_PAYLOADS
- bool "support for xz payloads"
- depends on BR2_INSTALL_LIBSTDCPP
- help
- Support for xz payloads in RPM.
-
-comment "xz payload support needs a toolchain w/ C++"
- depends on !BR2_INSTALL_LIBSTDCPP
-
-endif
diff --git a/package/rpm/rpm.mk b/package/rpm/rpm.mk
index 74f5b888e7..68d964afc8 100644
--- a/package/rpm/rpm.mk
+++ b/package/rpm/rpm.mk
@@ -44,11 +44,12 @@ else
RPM_CONF_OPTS += --with-file=no
endif
-ifeq ($(BR2_PACKAGE_RPM_XZ_PAYLOADS),y)
+# xz payload support needs a toolchain w/ C++
+ifeq ($(BR2_PACKAGE_XZ)$(BR2_INSTALL_LIBSTDCPP),yy)
RPM_CONF_OPTS += --with-xz
endif
-ifeq ($(BR2_PACKAGE_RPM_BZIP2_PAYLOADS),y)
+ifeq ($(BR2_PACKAGE_BZIP2),y)
RPM_CONF_OPTS += --with-bzip2
RPM_DEPENDENCIES += bzip2
endif
OpenPOWER on IntegriCloud