Skip to content

Commit

Permalink
VDR: input and output plugin are set with environment variables
Browse files Browse the repository at this point in the history
VDR_INPUTDEVICE=satip|streamdev
VDR_SOFTHDDEVICE=softhddevice-drm|softhdodroid

If these are not set, they won't be build and/or activated.

Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
  • Loading branch information
rellla committed Aug 6, 2022
1 parent 208cda4 commit b08da10
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions packages/vdr/_vdr/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,22 @@ post_makeinstall_target() {
cp -PR ${PKG_DIR}/conf.d/* ${VDR_DIR}/storage/.config/vdropt-sample/conf.d/


if [ "${PROJECT}" = "Amlogic-ce" ]; then
if [ "${VDR_SOFTHDDEVICE}" = "softhdodroid" ]; then
cat >> ${VDR_DIR}/storage/.config/vdropt-sample/enabled_plugins <<EOF
softhdodroid
satip
EOF
else
elif [ "${VDR_SOFTHDDEVICE}" = "softhddevice-drm" ]; then
cat >> ${VDR_DIR}/storage/.config/vdropt-sample/enabled_plugins <<EOF
softhddevice-drm
EOF
fi

if [ "${VDR_INPUTDEVICE}" = "satip" ]; then
cat >> ${VDR_DIR}/storage/.config/vdropt-sample/enabled_plugins <<EOF
satip
EOF
elif [ "${VDR_INPUTDEVICE}" = "streamdev" ]; then
cat >> ${VDR_DIR}/storage/.config/vdropt-sample/enabled_plugins <<EOF
streamdev-client
EOF
fi
Expand Down
4 changes: 2 additions & 2 deletions packages/virtual/vdr-all/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ PKG_SECTION="virtual"
PKG_LONGDESC="A DVB TV server application."

PKG_DEPENDS_TARGET+=" _vdr"
if [ "${PROJECT}" = "Amlogic-ce" ]; then
if [ "${VDR_SOFTHDDEVICE}" = "softhdodroid" ]; then
PKG_DEPENDS_TARGET+=" _vdr-plugin-softhdodroid"
elif [ "${PROJECT}" = "Allwinner" ]; then
elif [ "${VDR_SOFTHDDEVICE}" = "softhddevice-drm" ]; then
PKG_DEPENDS_TARGET+=" _vdr-plugin-softhddevice-drm"
fi
PKG_DEPENDS_TARGET+=" _vdr-plugin-satip"
Expand Down

0 comments on commit b08da10

Please sign in to comment.