Skip to content

Commit

Permalink
kodi: move enabling of gbm platform and allow gbm/opengl
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Leonard <[email protected]>
  • Loading branch information
antonlacon committed Jan 17, 2025
1 parent 808b5a4 commit 92f136f
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions packages/mediacenter/kodi/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,24 @@ configure_package() {
-DAPP_RENDER_SYSTEM=gles \
-DWAYLANDPP_SCANNER=${TOOLCHAIN}/bin/wayland-scanner++ \
-DWAYLANDPP_PROTOCOLS_DIR=${SYSROOT_PREFIX}/usr/share/waylandpp/protocols"
else # GBM
if [ ! "${KODIPLAYER_DRIVER}" = "default" ]; then
PKG_DEPENDS_TARGET+=" ${KODIPLAYER_DRIVER}"
fi
PKG_DEPENDS_TARGET+=" libinput libdisplay-info"
KODI_PLATFORM="-DCORE_PLATFORM_NAME=gbm"
if [ ! "${OPENGL}" = "no" ]; then
KODI_PLATFORM+=" -DAPP_RENDER_SYSTEM=gl"
else
KODI_PLATFORM+=" -DAPP_RENDER_SYSTEM=gles"
fi
CFLAGS+=" -DEGL_NO_X11"
CXXFLAGS+=" -DEGL_NO_X11"
if [ "${PROJECT}" = "Generic" ]; then
PKG_APPLIANCE_XML="${PKG_DIR}/config/appliance-gbm-generic.xml"
else
PKG_APPLIANCE_XML="${PKG_DIR}/config/appliance-gbm.xml"
fi
fi

if [ ! "${OPENGL}" = "no" ]; then
Expand Down Expand Up @@ -217,20 +235,6 @@ configure_package() {
KODI_ARCH="-DWITH_ARCH=${TARGET_ARCH}"
fi

if [ ! "${KODIPLAYER_DRIVER}" = "default" -a "${DISPLAYSERVER}" = "no" ]; then
PKG_DEPENDS_TARGET+=" ${KODIPLAYER_DRIVER} libinput libdisplay-info"
if [ "${OPENGLES_SUPPORT}" = yes -a "${KODIPLAYER_DRIVER}" = "${OPENGLES}" ]; then
KODI_PLATFORM="-DCORE_PLATFORM_NAME=gbm -DAPP_RENDER_SYSTEM=gles"
CFLAGS+=" -DEGL_NO_X11"
CXXFLAGS+=" -DEGL_NO_X11"
if [ "${PROJECT}" = "Generic" ]; then
PKG_APPLIANCE_XML="${PKG_DIR}/config/appliance-gbm-generic.xml"
else
PKG_APPLIANCE_XML="${PKG_DIR}/config/appliance-gbm.xml"
fi
fi
fi

if [ "${PROJECT}" = "Allwinner" -o "${PROJECT}" = "Rockchip" -o "${PROJECT}" = "RPi" ]; then
PKG_PATCH_DIRS+=" drmprime-filter"
fi
Expand Down

0 comments on commit 92f136f

Please sign in to comment.