diff options
author | Diego Dompe <diego.dompe@ridgerun.com> | 2010-01-08 22:38:37 -0600 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-04-12 19:43:09 +0200 |
commit | 1c7cd5974060b4bdaf326486f754cc5c22e7dfb5 (patch) | |
tree | d4bf9c3e34a68387c3dcccc7be0d8b6af040ce37 /recipes | |
parent | 0466b4efce3dfabf37b167d78365c3584df01f2e (diff) |
gstreamer-ti: Add support for L138 on gstreamer ti plugin.
* update omapfb patch to newer SRCREV
Signed-off-by: Koen Kooi <k-kooi@ti.com>
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/ti/gstreamer-ti/gstreamer-ti-add-omapfb.patch | 47 | ||||
-rw-r--r-- | recipes/ti/gstreamer-ti/gstreamer-ti-omapl138-rc.sh | 54 | ||||
-rw-r--r-- | recipes/ti/gstreamer-ti/gstreamer-ti-omapl138.patch | 279 | ||||
-rw-r--r-- | recipes/ti/gstreamer-ti_svn.bb | 29 |
4 files changed, 375 insertions, 34 deletions
diff --git a/recipes/ti/gstreamer-ti/gstreamer-ti-add-omapfb.patch b/recipes/ti/gstreamer-ti/gstreamer-ti-add-omapfb.patch index 7a76f370bc..1389d25e25 100644 --- a/recipes/ti/gstreamer-ti/gstreamer-ti-add-omapfb.patch +++ b/recipes/ti/gstreamer-ti/gstreamer-ti-add-omapfb.patch @@ -9,30 +9,6 @@ diff -uNr ticodecplugin/configure.ac ticodecplugin.new/configure.ac dnl check for tools AC_PROG_CC -diff -uNr ticodecplugin/src/Makefile.am ticodecplugin.new/src/Makefile.am ---- ticodecplugin/src/Makefile.am 2009-10-28 06:27:14.000000000 -0500 -+++ ticodecplugin.new/src/Makefile.am 2009-10-28 06:35:20.000000000 -0500 -@@ -4,16 +4,16 @@ - plugin_LTLIBRARIES = libgstticodecplugin.la - - # sources used to compile this plug-in --libgstticodecplugin_la_SOURCES = gstticodecplugin.c gsttiauddec.c gsttiauddec1.c gsttividdec.c gsttividdec2.c gsttiimgenc1.c gsttiimgenc.c gsttiimgdec1.c gsttiimgdec.c gsttidmaibuffertransport.c gstticircbuffer.c gsttidmaivideosink.c gstticodecs.c gstticodecs_platform.c gsttiquicktime_aac.c gsttiquicktime_h264.c gsttividenc.c gsttividenc1.c gsttiaudenc1.c gstticommonutils.c gsttividresize.c gsttidmaiperf.c -+libgstticodecplugin_la_SOURCES = gstticodecplugin.c gsttiauddec.c gsttiauddec1.c gsttividdec.c gsttividdec2.c gsttiimgenc1.c gsttiimgenc.c gsttiimgdec1.c gsttiimgdec.c gsttidmaibuffertransport.c gstticircbuffer.c gsttidmaivideosink.c gstticodecs.c gstticodecs_platform.c gsttiquicktime_aac.c gsttiquicktime_h264.c gsttividenc.c gsttividenc1.c gsttiaudenc1.c gstticommonutils.c gsttividresize.c gsttidmaiperf.c omapfb.c yuv.S - - # flags used to compile this plugin - # add other _CFLAGS and _LIBS as needed --libgstticodecplugin_la_CFLAGS = $(GST_CFLAGS) $(shell cat $(XDC_CONFIG_BASENAME)/compiler.opt) --libgstticodecplugin_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstvideo-0.10 -lgstaudio-0.10 -lm -+libgstticodecplugin_la_CFLAGS = $(GST_CFLAGS) $(shell cat $(XDC_CONFIG_BASENAME)/compiler.opt) -I$(LINUXKERNEL_INSTALL_DIR)/include -+libgstticodecplugin_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstvideo-0.10 -lgstaudio-0.10 -lm -lX11 - libgstticodecplugin_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -Wl,$(XDC_CONFIG_BASENAME)/linker.cmd - - # headers we need but don't want installed --noinst_HEADERS = gsttiauddec.h gsttiauddec1.h gsttividdec.h gsttividdec2.h gsttiimgenc1.h gsttiimgenc.h gsttiimgdec1.h gsttiimgdec.h gsttidmaibuffertransport.h gstticircbuffer.h gsttidmaivideosink.h gsttithreadprops.h gstticodecs.h gsttiquicktime_aac.h gsttiquicktime_h264.h gsttividenc.h gsttividenc1.h gsttiaudenc1.h gstticommonutils.h gsttividresize.h -+noinst_HEADERS = gsttiauddec.h gsttiauddec1.h gsttividdec.h gsttividdec2.h gsttiimgenc1.h gsttiimgenc.h gsttiimgdec1.h gsttiimgdec.h gsttidmaibuffertransport.h gstticircbuffer.h gsttidmaivideosink.h gsttithreadprops.h gstticodecs.h gsttiquicktime_aac.h gsttiquicktime_h264.h gsttividenc.h gsttividenc1.h gsttiaudenc1.h gstticommonutils.h gsttividresize.h omapfb.h - - # XDC Configuration - CONFIGURO = $(XDC_INSTALL_DIR)/xs xdc.tools.configuro diff -uNr ticodecplugin/src/gstticodecplugin.c ticodecplugin.new/src/gstticodecplugin.c --- ticodecplugin/src/gstticodecplugin.c 2009-10-28 06:27:14.000000000 -0500 +++ ticodecplugin.new/src/gstticodecplugin.c 2009-10-28 06:36:28.000000000 -0500 @@ -1334,3 +1310,26 @@ diff -uNr ticodecplugin/src/yuv.S ticodecplugin.new/src/yuv.S + pop {r4-r11,pc} + .endfunc + +--- /tmp/Makefile.am 2010-01-13 09:13:19.000000000 +0100 ++++ ticodecplugin/src/Makefile.am 2010-01-13 09:14:38.000000000 +0100 +@@ -4,16 +4,16 @@ + plugin_LTLIBRARIES = libgstticodecplugin.la + + # sources used to compile this plug-in +-libgstticodecplugin_la_SOURCES = gstticodecplugin.c gsttiauddec.c gsttiauddec1.c gsttividdec.c gsttividdec2.c gsttiimgenc1.c gsttiimgenc.c gsttiimgdec1.c gsttiimgdec.c gsttidmaibuffertransport.c gstticircbuffer.c gsttidmaivideosink.c gstticodecs.c gstticodecs_platform.c gsttiquicktime_aac.c gsttiquicktime_h264.c gsttividenc.c gsttividenc1.c gsttiaudenc1.c gstticommonutils.c gsttividresize.c gsttidmaiperf.c gsttiquicktime_mpeg4.c ++libgstticodecplugin_la_SOURCES = gstticodecplugin.c gsttiauddec.c gsttiauddec1.c gsttividdec.c gsttividdec2.c gsttiimgenc1.c gsttiimgenc.c gsttiimgdec1.c gsttiimgdec.c gsttidmaibuffertransport.c gstticircbuffer.c gsttidmaivideosink.c gstticodecs.c gstticodecs_platform.c gsttiquicktime_aac.c gsttiquicktime_h264.c gsttividenc.c gsttividenc1.c gsttiaudenc1.c gstticommonutils.c gsttividresize.c gsttidmaiperf.c gsttiquicktime_mpeg4.c omapfb.c yuv.S + + # flags used to compile this plugin + # add other _CFLAGS and _LIBS as needed +-libgstticodecplugin_la_CFLAGS = $(GST_CFLAGS) $(shell cat $(XDC_CONFIG_BASENAME)/compiler.opt) +-libgstticodecplugin_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstvideo-0.10 -lgstaudio-0.10 -lm ++libgstticodecplugin_la_CFLAGS = $(GST_CFLAGS) $(shell cat $(XDC_CONFIG_BASENAME)/compiler.opt) -I$(LINUXKERNEL_INSTALL_DIR)/include ++libgstticodecplugin_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstvideo-0.10 -lgstaudio-0.10 -lm -lX11 + libgstticodecplugin_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -Wl,$(XDC_CONFIG_BASENAME)/linker.cmd + + # headers we need but don't want installed +-noinst_HEADERS = gsttiauddec.h gsttiauddec1.h gsttividdec.h gsttividdec2.h gsttiimgenc1.h gsttiimgenc.h gsttiimgdec1.h gsttiimgdec.h gsttidmaibuffertransport.h gstticircbuffer.h gsttidmaivideosink.h gsttithreadprops.h gstticodecs.h gsttiquicktime_aac.h gsttiquicktime_h264.h gsttividenc.h gsttividenc1.h gsttiaudenc1.h gstticommonutils.h gsttividresize.h gsttiquicktime_mpeg4.h ++noinst_HEADERS = gsttiauddec.h gsttiauddec1.h gsttividdec.h gsttividdec2.h gsttiimgenc1.h gsttiimgenc.h gsttiimgdec1.h gsttiimgdec.h gsttidmaibuffertransport.h gstticircbuffer.h gsttidmaivideosink.h gsttithreadprops.h gstticodecs.h gsttiquicktime_aac.h gsttiquicktime_h264.h gsttividenc.h gsttividenc1.h gsttiaudenc1.h gstticommonutils.h gsttividresize.h gsttiquicktime_mpeg4.h omapfb.h + + # XDC Configuration + CONFIGURO = $(XDC_INSTALL_DIR)/xs xdc.tools.configuro diff --git a/recipes/ti/gstreamer-ti/gstreamer-ti-omapl138-rc.sh b/recipes/ti/gstreamer-ti/gstreamer-ti-omapl138-rc.sh new file mode 100644 index 0000000000..353758b3a7 --- /dev/null +++ b/recipes/ti/gstreamer-ti/gstreamer-ti-omapl138-rc.sh @@ -0,0 +1,54 @@ +#!/bin/sh +# +# configure kernel modules for TI DSP based gstreamer plugin +# + +# Disable XDM 0.9 elements +export GST_TI_TIViddec_DISABLE=1 +export GST_TI_TIAuddec_DISABLE=1 +export GST_TI_TIVidenc_DISABLE=1 +export GST_TI_TIImgdec_DISABLE=1 +export GST_TI_TIImgenc_DISABLE=1 + +load_module() { + # insert cmemk, tell it to occupy physical 34MB-64MB. + # + modprobe cmemk phys_start=0xC2200000 phys_end=0xC3200000 \ + pools=1x5250000,3x1048576,3x829440,1x256000,4x131072 + + modprobe dsplinkk + + rm -f /dev/dsplink + mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0 +} + +unload_module() { + rmmod cmemk + rmmod dsplinkk + rm -f /dev/dsplink +} + +case "$1" in + start) + echo -n "Loading kernel modules for gstreamer-ti... " + load_module + echo " done" + ;; + stop) + echo -n "Unloading kernel module ..." + unload_module + echo " done" + ;; + restart) + echo -n "Unloading kernel module ..." + unload_module + echo " done" + echo -n "Loading kernel modules for gstreamer-ti... " + load_module + echo " done" + ;; + *) + echo "$0 <start/stop/restart>" + ;; +esac + diff --git a/recipes/ti/gstreamer-ti/gstreamer-ti-omapl138.patch b/recipes/ti/gstreamer-ti/gstreamer-ti-omapl138.patch new file mode 100644 index 0000000000..0224e8bc1c --- /dev/null +++ b/recipes/ti/gstreamer-ti/gstreamer-ti-omapl138.patch @@ -0,0 +1,279 @@ +Index: ticodecplugin/ChangeLog +=================================================================== +--- ticodecplugin.orig/ChangeLog 2010-01-07 15:15:37.000000000 -0600 ++++ ticodecplugin/ChangeLog 2010-01-08 09:27:23.529399692 -0600 +@@ -1,3 +1,7 @@ ++20010-01-06 Jorge Hidalgo, RidgeRun. ++ * src/{gstticodecplugin_omapl138.cfg,gstticodecs_omapl138.c,gsttividenc1.c}: ++ Add build support for OMAP-L138. ++ + 2009-12-28: Brijesh Singh, Texas Instruments, Inc. + * src/{gsttiquicktime_mpeg4.{c,h}, gsttividdec2.{c,h}, gsttividdec.{c,h}, + Makefile.am}: +Index: ticodecplugin/src/gstticodecplugin_omapl138.cfg +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ ticodecplugin/src/gstticodecplugin_omapl138.cfg 2010-01-08 09:27:23.529399692 -0600 +@@ -0,0 +1,41 @@ ++/* ++ * Copyright (C) $year Texas Instruments Incorporated - http://www.ti.com/ ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU Lesser General Public License as ++ * published by the Free Software Foundation version 2.1 of the License. ++ * ++ * This program is distributed #as is# WITHOUT ANY WARRANTY of any kind, ++ * whether express or implied; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ */ ++ ++/* Load the Codec Engine 'Operating System Abstraction Layer' */ ++var osalGlobal = xdc.useModule('ti.sdo.ce.osal.Global'); ++ ++var os = xdc.useModule('ti.sdo.ce.osal.linux.Settings'); ++osalGlobal.os = os; ++ ++/* Configure CE to use it's DSP Link Linux version */ ++var ipc = xdc.useModule('ti.sdo.ce.ipc.Settings'); ++ipc.commType = ipc.COMM_DSPLINK; ++ ++/* ++* ======== Engine Configuration ======== ++ */ ++var Engine = xdc.useModule('ti.sdo.ce.Engine'); ++var demoEngine = Engine.createFromServer( ++ "codecServer", ++ "./bin/cs.x64P", ++ "ti.sdo.server.cs" ++ ); ++ ++var combopath = "" + java.lang.System.getenv("CODEC_SERVER"); ++if (combopath != "" && combopath != "null") { ++ demoEngine.server = java.lang.System.getenv("CODEC_SERVER"); ++} ++ ++/* Load support for the DMAI module */ ++var DMAI = xdc.loadPackage('ti.sdo.dmai'); +Index: ticodecplugin/src/gstticodecs_omapl138.c +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ ticodecplugin/src/gstticodecs_omapl138.c 2010-01-08 09:27:23.529399692 -0600 +@@ -0,0 +1,81 @@ ++/* ++ * gstticodecs_omapl138.c ++ * ++ * This file provides information for available codecs on the OMAP3530 platform. ++ * ++ * Original Author: ++ * Don Darling, Texas Instruments, Inc. ++ * ++ * Copyright (C) $year Texas Instruments Incorporated - http://www.ti.com/ ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU Lesser General Public License as ++ * published by the Free Software Foundation version 2.1 of the License. ++ * ++ * This program is distributed #as is# WITHOUT ANY WARRANTY of any kind, ++ * whether express or implied; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ * Lesser General Public License for more details. ++ * ++ */ ++ ++#include "gstticodecs.h" ++ ++/* Declaration of the production engine and decoders shipped with the DVSDK */ ++static Char codecServer[] = "codecServer"; ++ ++/* NULL terminated list of speech decoders in the engine to use in the demo */ ++GstTICodec gst_ticodec_codecs[] = { ++ ++ /* Audio Decoders */ ++ { ++ "AAC Audio Decoder", /* String name of codec used by plugin */ ++ "aachedec", /* String name of codec used by CE */ ++ codecServer /* Engine that contains this codec */ ++ }, ++ ++ /* Video Decoders */ ++ { ++ "H.264 Video Decoder", /* String name of codec used by plugin */ ++ "h264dec", /* String name of codec used by CE */ ++ codecServer /* Engine that contains this codec */ ++ }, { ++ "MPEG4 Video Decoder", /* String name of codec used by plugin */ ++ "mpeg4dec", /* String name of codec used by CE */ ++ codecServer /* Engine that contains this codec */ ++ }, ++ ++ /* Image Decoders */ ++ { ++ "JPEG Image Decoder", /* String name of codec used by plugin */ ++ "jpegdec", /* String name of codec used by CE */ ++ codecServer /* Engine that contains this codec */ ++ }, ++ ++ /* Video Encoders */ ++ { ++ "H.264 Video Encoder", /* String name of codec used by plugin */ ++ "h264enc", /* String name of codec used by CE */ ++ codecServer /* Engine that contains this codec */ ++ }, ++ ++ /* Image Encoders */ ++ { ++ "JPEG Image Encoder", /* String name of codec used by plugin */ ++ "jpegenc", /* String name of codec used by CE */ ++ codecServer /* Engine that contains this codec */ ++ }, ++ ++ { NULL } ++}; ++ ++ ++/****************************************************************************** ++ * Custom ViM Settings for editing this file ++ ******************************************************************************/ ++#if 0 ++ Tabs (use 4 spaces for indentation) ++ vim:set tabstop=4: /* Use 4 spaces for tabs */ ++ vim:set shiftwidth=4: /* Use 4 spaces for >> operations */ ++ vim:set expandtab: /* Expand tabs into white spaces */ ++#endif +Index: ticodecplugin/src/gsttividenc1.c +=================================================================== +--- ticodecplugin.orig/src/gsttividenc1.c 2010-01-07 15:15:37.000000000 -0600 ++++ ticodecplugin/src/gsttividenc1.c 2010-01-08 09:27:23.529399692 -0600 +@@ -1455,6 +1455,7 @@ + #if defined(Platform_omap3530) + case Cpu_Device_OMAP3530: + #endif ++ case Cpu_Device_OMAPL138: + case Cpu_Device_DM6446: + params.inputChromaFormat = XDM_YUV_422ILE; + break; +Index: ticodecplugin/src/gsttidmaivideosink.c +=================================================================== +--- ticodecplugin.orig/src/gsttidmaivideosink.c 2010-01-08 14:17:38.533747453 -0600 ++++ ticodecplugin/src/gsttidmaivideosink.c 2010-01-08 15:55:46.881680839 -0600 +@@ -51,6 +51,19 @@ + GST_PAD_SINK, + GST_PAD_ALWAYS, + GST_STATIC_CAPS ++#if defined(Platform_omapl138) ++ ("video/x-raw-rgb, " ++ "bpp=(int)16, " ++ "depth=(int)16, " ++ "endianness=(int)1234, " ++ "red_mask=(int)63488, " ++ "green_mask=(int)2016, " ++ "blue_mask=(int)31, " ++ "framerate=(fraction)[ 0, MAX ], " ++ "width=(int)[ 1, MAX ], " ++ "height=(int)[1, MAX ] " ++ ) ++#else + ("video/x-raw-yuv, " + "format=(fourcc)UYVY, " + "framerate=(fraction)[ 0, MAX ], " +@@ -67,6 +80,7 @@ + "width=(int)[ 1, MAX ], " + "height=(int)[ 1, MAX ]" + ) ++#endif + ); + + GST_DEBUG_CATEGORY_STATIC (gst_tidmaivideosink_debug); +@@ -664,6 +678,11 @@ + vattrs->framerate = 60; + break; + ++ #if defined(Platform_omapl138) ++ case VideoStd_QVGA: ++ vattrs->framerate = 30; ++ break; ++ #endif + #if defined(Platform_omap3530) + case VideoStd_VGA: + vattrs->framerate = 60; +@@ -1035,6 +1054,12 @@ + sink->dAttrs.colorSpace = colorSpace; + break; + #endif ++ #if defined(Platform_omapl138) ++ case Cpu_Device_OMAPL138: ++ sink->dAttrs = Display_Attrs_OMAPL138_OSD_DEFAULT; ++ sink->dAttrs.colorSpace = colorSpace; ++ break; ++ #endif + default: + sink->dAttrs = Display_Attrs_DM6446_DM355_VID_DEFAULT; + break; +@@ -1291,8 +1316,10 @@ + ColorSpace_Type inBufColorSpace; + gint framerateDen; + gint framerateNum; ++ const gchar *mime; + + structure = gst_caps_get_structure(caps, 0); ++ mime = gst_structure_get_name(structure); + + /* The width and height of the input buffer are collected here so that it + * can be checked against the width and height of the display buffer. +@@ -1300,24 +1327,38 @@ + gst_structure_get_int(structure, "width", &width); + gst_structure_get_int(structure, "height", &height); + +- /* Map input buffer fourcc to dmai color space */ +- gst_structure_get_fourcc(structure, "format", &fourcc); ++ if (!strcmp(mime, "video/x-raw-rgb")) { ++ gint rm,gm,bm; + +- switch (fourcc) { +- case GST_MAKE_FOURCC('U', 'Y', 'V', 'Y'): +- inBufColorSpace = ColorSpace_UYVY; +- break; +- case GST_MAKE_FOURCC('Y', '8', 'C', '8'): +- inBufColorSpace = ColorSpace_YUV422PSEMI; +- break; +- #if defined(Platform_dm365) +- case GST_MAKE_FOURCC('N', 'V', '1', '2'): +- inBufColorSpace = ColorSpace_YUV420PSEMI; +- break; +- #endif +- default: +- GST_ERROR("unsupported fourcc\n"); ++ gst_structure_get_int(structure,"red_mask",&rm); ++ gst_structure_get_int(structure,"green_mask",&gm); ++ gst_structure_get_int(structure,"blue_mask",&bm); ++ if ((rm == 63488) && (gm == 2016) && (bm == 31)){ ++ inBufColorSpace = ColorSpace_RGB565; ++ } else { ++ GST_ERROR("unsupported color space\n"); + return FALSE; ++ } ++ } else { ++ /* Map input buffer fourcc to dmai color space */ ++ gst_structure_get_fourcc(structure, "format", &fourcc); ++ ++ switch (fourcc) { ++ case GST_MAKE_FOURCC('U', 'Y', 'V', 'Y'): ++ inBufColorSpace = ColorSpace_UYVY; ++ break; ++ case GST_MAKE_FOURCC('Y', '8', 'C', '8'): ++ inBufColorSpace = ColorSpace_YUV422PSEMI; ++ break; ++ #if defined(Platform_dm365) ++ case GST_MAKE_FOURCC('N', 'V', '1', '2'): ++ inBufColorSpace = ColorSpace_YUV420PSEMI; ++ break; ++ #endif ++ default: ++ GST_ERROR("unsupported fourcc\n"); ++ return FALSE; ++ } + } + + /* Read the frame rate */ diff --git a/recipes/ti/gstreamer-ti_svn.bb b/recipes/ti/gstreamer-ti_svn.bb index 063a615cff..d66c837031 100644 --- a/recipes/ti/gstreamer-ti_svn.bb +++ b/recipes/ti/gstreamer-ti_svn.bb @@ -1,14 +1,15 @@ DESCRIPTION = "Gstreamer plugin for TI Davinci and OMAP processors" DEPENDS = "ti-dmai gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly" -SRCREV = "459" +SRCREV = "563" # Again, no '.' in PWD allowed :( PV = "svnr${SRCREV}" -PR = "r37" +PR = "r39" GST_TI_RC_SCRIPT_omap3 = "gstreamer-ti-omap3530-rc.sh" GST_TI_RC_SCRIPT_dm6446="gstreamer-ti-dm6446-rc.sh" GST_TI_RC_SCRIPT_dm355="gstreamer-ti-dm355-rc.sh" +GST_TI_RC_SCRIPT_omapl138="gstreamer-ti-omapl138-rc.sh" SRC_URI = "svn://gforge.ti.com/svn/gstreamer_ti/trunk;module=gstreamer_ti;proto=https;user=anonymous;pswd='' \ file://gstreamer-ti-tracker-462.patch;patch=1 \ @@ -20,6 +21,10 @@ SRC_URI_append_omap3 = " \ file://gstreamer-ti-add-omapfb.patch;patch=1 \ " +SRC_URI_append_omapl138 = " \ + file://gstreamer-ti-omapl138.patch;patch=1 \ +" + S = "${WORKDIR}/gstreamer_ti/ti_build/ticodecplugin" inherit autotools update-rc.d @@ -28,10 +33,12 @@ require ti-paths.inc XDC_TARGET = "gnu.targets.arm.GCArmv5T" XDC_PLATFORM_dm6446 = "ti.platforms.evmDM6446" -XDC_PLATFORM_omapl137 = "ti.platforms.omapl137" +XDC_PLATFORM_omapl137 = "ti.platforms.evmOMAPL137" +XDC_PLATFORM_omapl138 = "ti.platforms.evmOMAPL138" PLATFORM_XDC = "${XDC_PLATFORM}" PLATFORM_dm6446 = "dm6446" -PLATFORM_omapl137 = "ol137" +PLATFORM_omapl137 = "omapl137" +PLATFORM_omapl138 = "omapl138" export XDC_TARGET export XDC_PLATFORM @@ -52,12 +59,14 @@ do_install_prepend () { # install gstreamer demo scripts install -d ${D}/${installdir}/gst cp -r ${WORKDIR}/gstreamer_ti/gstreamer_demo/shared ${D}/${installdir}/gst - cp -r ${WORKDIR}/gstreamer_ti/gstreamer_demo/${PLATFORM} ${D}/${installdir}/gst - # default loadmodule script is hard-coded for insmod, change to modprobe - sed -i 's/insmod/modprobe/g' ${D}/${installdir}/gst/${PLATFORM}/loadmodules.sh - sed -i 's/.ko//g' ${D}/${installdir}/gst/${PLATFORM}/loadmodules.sh - if [ "${PLATFORM}" = "omap3530" ]; then - echo "modprobe sdmak" >> ${D}/${installdir}/gst/${PLATFORM}/loadmodules.sh + if [ -d ${WORKDIR}/gstreamer_ti/gstreamer_demo/${PLATFORM} ] ; then + cp -r ${WORKDIR}/gstreamer_ti/gstreamer_demo/${PLATFORM} ${D}/${installdir}/gst + # default loadmodule script is hard-coded for insmod, change to modprobe + sed -i 's/insmod/modprobe/g' ${D}/${installdir}/gst/${PLATFORM}/loadmodules.sh + sed -i 's/.ko//g' ${D}/${installdir}/gst/${PLATFORM}/loadmodules.sh + if [ "${PLATFORM}" = "omap3530" ]; then + echo "modprobe sdmak" >> ${D}/${installdir}/gst/${PLATFORM}/loadmodules.sh + fi fi chmod 0755 ${D}/${installdir}/gst -R install -d ${D}${sysconfdir}/init.d/ |