From 4989c16072c809fc3b53cff2855ee5cd68b72891 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sat, 3 Apr 2021 17:22:34 +0200 Subject: [PATCH] package/tvheadend: add option to enable descrambler support Signed-off-by: Bernd Kuhls [yann.morin.1998@free.fr: one option per-commit] Signed-off-by: Yann E. MORIN --- package/tvheadend/Config.in | 6 ++++++ package/tvheadend/tvheadend.mk | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/package/tvheadend/Config.in b/package/tvheadend/Config.in index 909d955c02..414892cd9e 100644 --- a/package/tvheadend/Config.in +++ b/package/tvheadend/Config.in @@ -28,6 +28,12 @@ config BR2_PACKAGE_TVHEADEND if BR2_PACKAGE_TVHEADEND +config BR2_PACKAGE_TVHEADEND_DESCRAMBLER + bool "descrambler support" + default y + help + Enable support for various descrambler modules. + config BR2_PACKAGE_TVHEADEND_TRANSCODING bool "transcoding support" depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS diff --git a/package/tvheadend/tvheadend.mk b/package/tvheadend/tvheadend.mk index 114142bfa9..4043d73386 100644 --- a/package/tvheadend/tvheadend.mk +++ b/package/tvheadend/tvheadend.mk @@ -63,6 +63,22 @@ TVHEADEND_CONF_OPTS += \ --disable-libx265 endif +ifeq ($(BR2_PACKAGE_TVHEADEND_DESCRAMBLER),y) +TVHEADEND_CONF_OPTS += \ + --enable-cardclient \ + --enable-cwc \ + --enable-cccam \ + --enable-capmt \ + --enable-constcw +else +TVHEADEND_CONF_OPTS += \ + --disable-cardclient \ + --disable-cwc \ + --disable-cccam \ + --disable-capmt \ + --disable-constcw +endif + ifeq ($(BR2_PACKAGE_LIBDVBCSA),y) TVHEADEND_DEPENDENCIES += libdvbcsa TVHEADEND_CONF_OPTS += --enable-tvhcsa -- 2.30.2