Skip to contentSkip to conversation

omapdrmtest: pass CC var, update for ffmpeg and libavcodec linking

PATCH New Denys Dmytriyenko 1 participant 1 message Nov 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omapdrmtest: pass CC var, update for ffmpeg and libavcodec linking

From: Denys Dmytriyenko <[email protected]>

---
 ...gure.ac-also-check-for-libavcodec-library.patch | 28 ++++++++++++++++++++++
 .../omapdrmtest/omapdrmtest_1.0.0.bb               | 14 ++++++-----
 2 files changed, 36 insertions(+), 6 deletions(-)
 create mode 100644 meta-arago-extras/recipes-graphics/omapdrmtest/files/0001-configure.ac-also-check-for-libavcodec-library.patch
meta-arago-extras/recipes-graphics/omapdrmtest/files/0001-configure.ac-also-check-for-libavcodec-library.patch new file +28 -0
new file mode 100644
index 0000000..5b7d3f4
@@ -0,0 +1,28 @@
+From e74fe2b030a841387e026cb7d37e8fb0c411075f Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Wed, 16 Nov 2016 19:52:36 -0500
+Subject: [PATCH] configure.ac: also check for libavcodec library
+
+Required for av_bitstream_filter_close and such.
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 31762f5..649c97a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -75,7 +75,7 @@ fi
+ AM_CONDITIONAL(ENABLE_WAYLAND, [test "x$HAVE_WAYLAND" = xyes])
+ 
+ # Check for libdce and libav..
+-PKG_CHECK_MODULES(DCE, libdce libavformat libavutil, [HAVE_DCE=yes], [HAVE_DCE=no])
++PKG_CHECK_MODULES(DCE, libdce libavformat libavcodec libavutil, [HAVE_DCE=yes], [HAVE_DCE=no])
+ if test "x$HAVE_DCE" = "xyes"; then
+ 	AC_DEFINE(HAVE_DCE, 1, [Have DCE support])
+ 	AC_MSG_NOTICE([Detected libdce and libavformat, building video codec tests])
+-- 
+2.7.4
+
meta-arago-extras/recipes-graphics/omapdrmtest/omapdrmtest_1.0.0.bb +8 -6
index e219170..db389cd 100644
@@ -1,17 +1,19 @@
-DESCRIPTION = "Test applications for OMAP DRM interface"
+SUMMARY = "Test applications for OMAP DRM interface"
 
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://viddec3test.c;beginline=1;endline=16;md5=c391f44e40a29096285e3121923041df"
-DEPENDS += "libav libdce libdrm libgbm ti-sgx-ddk-um wayland"
+
+DEPENDS = "ffmpeg libdce libdrm libgbm ti-sgx-ddk-um wayland"
 
 inherit autotools pkgconfig
 
-PR = "r18"
+PR = "r19"
 SRCREV = "e4a2932a836c54f4a20b4be9d541d11d3a246a31"
 
+EXTRA_OEMAKE = "CC="${CC}""
+TARGET_CC_ARCH += "${LDFLAGS}"
+
 SRC_URI = "git://git.ti.com/glsdk/omapdrmtest.git;protocol=git \
-"
+           file://0001-configure.ac-also-check-for-libavcodec-library.patch"
 
 S = "${WORKDIR}/git"
-
-TARGET_CC_ARCH += "${LDFLAGS}"
Signature · 1 line
2.7.4