Skip to contentSkip to conversation

kodi: allow enablement of libamcodec as codec if selected

PATCH Superseded Dagg Stompler 2 participants 2 messages Nov 4, 2016

v4 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 kodi: allow enablement of libamcodec as codec if selected

allow usage of amcodec if kodi is built and libamcodec is selected

---
v3 -> v4:
- properly define the includes for amcodec when cross compiling.

v2 -> v3:
- fix change after kodi.mk was changed.

v1 -> v2:
- fixed mail title and comment

 package/kodi/0012-support_libamcodec_cross_compile.patch | 16 ++++++++++++++++
 package/kodi/kodi.mk                                     |  4 ++++
 2 files changed, 20 insertions(+)
 create mode 100644 package/kodi/0012-support_libamcodec_cross_compile.patch
package/kodi/0012-support_libamcodec_cross_compile.patch new file +16 -0
new file mode 100644
index 0000000..c97284e
@@ -0,0 +1,16 @@
+--- a/xbmc/cores/dvdplayer/DVDCodecs/Video/Makefile.in	2016-11-04 11:46:19.000000000 +0200
++++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/Makefile.in	2016-11-04 11:47:13.000000000 +0200
+@@ -26,8 +26,11 @@ endif
+ ifeq (@USE_LIBAMCODEC@,1)
+ SRCS += AMLCodec.cpp
+ SRCS += DVDVideoCodecAmlogic.cpp
+-INCLUDES += -I$(prefix)/include/amcodec
+-INCLUDES += -I$(prefix)/include/amplayer
++ifeq (${LIBAMCODEC_INCLUDE_PATH},)
++LIBAMCODEC_INCLUDE_PATH=$(prefix)
++endif
++INCLUDES += -I${LIBAMCODEC_INCLUDE_PATH}/include/amcodec
++INCLUDES += -I${LIBAMCODEC_INCLUDE_PATH}/include/amplayer
+ endif
+ 
+ ifeq (@USE_ANDROID@,1)
package/kodi/kodi.mk +4 -0
index e0361da..66aa017 100644
@@ -111,6 +111,10 @@ endif
 ifeq ($(BR2_PACKAGE_IMX_VPUWRAP),y)
 KODI_DEPENDENCIES += imx-vpuwrap
 KODI_CONF_OPTS += --enable-codec=imxvpu
+else ifeq ($(BR2_PACKAGE_LIBAMCODEC),y)
+KODI_DEPENDENCIES += libamcodec
+KODI_CONF_OPTS += --enable-codec=amcodec
+KODI_MAKE_OPTS += LIBAMCODEC_INCLUDE_PATH=${STAGING_DIR}/usr
 endif
 
 ifeq ($(BR2_PACKAGE_LIBCAP),y)
Signature · 1 line
2.10.2
#1 lore raw

PATCH v4 1/1 kodi: allow enablement of libamcodec as codec if selected

Hello,

Thanks for this patch.

package/kodi/0012-support_libamcodec_cross_compile.patch

Quoted 5 lines · Dagg Stompler
package/kodi/0012-support_libamcodec_cross_compile.patch new file +0 -0
new file mode 100644
index 0000000..c97284e

This patch lacks a description + Signed-off-by line.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com