diff options
author | Koen Kooi <k-kooi@ti.com> | 2009-11-16 10:17:24 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-12-04 19:46:02 +0100 |
commit | b788499815bfc1974d4277c0a261b9a7c24aa816 (patch) | |
tree | 6c0546c0891d884f835355d851ec07147165ddd2 /recipes/ti/gstreamer-ti_svn.bb | |
parent | 08dcecdc77ceb6a3673605216493905859f11982 (diff) |
recipes/ti: merge in updates
* New codec recipes from Arago team in Germantown
* Updated dm6446 and dm355 from Brijesh Singh
* cmem, gst-ti and dmai fixes from Brijesh Singh
angstrom: introduce SOC_FAMILY and start using it TI recipes as a testing ground
* SOC_FAMILY tells you which system on chip is used in the MACHINE, e.g. omap3, dm355, pxa25x, s3c24xx.
This avoids having to duplicate lots of overrides in machine specific recipes. This is *NOT*
intended to be used as a package arch.
Diffstat (limited to 'recipes/ti/gstreamer-ti_svn.bb')
-rw-r--r-- | recipes/ti/gstreamer-ti_svn.bb | 101 |
1 files changed, 48 insertions, 53 deletions
diff --git a/recipes/ti/gstreamer-ti_svn.bb b/recipes/ti/gstreamer-ti_svn.bb index 099ca1d91b..de09d36caa 100644 --- a/recipes/ti/gstreamer-ti_svn.bb +++ b/recipes/ti/gstreamer-ti_svn.bb @@ -1,90 +1,85 @@ DESCRIPTION = "Gstreamer plugin for TI Davinci and OMAP processors" - -require ti-paths.inc - -inherit update-rc.d -inherit autotools - DEPENDS = "ti-dmai gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly" -GST_TI_RC_SCRIPT_armv7a="gstreamer-ti-omap3530-rc.sh" - -# Fetch source from svn repo SRCREV = "459" +# Again, no '.' in PWD allowed :( +PV = "svnr${SRCREV}" +PR = "r37" + +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" + 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 \ file://gstreamer-ti-remove-mp3-decode-support-from-auddec1.patch;patch=1 \ - file://${GST_TI_RC_SCRIPT} \ + file://${GST_TI_RC_SCRIPT} \ " -SRC_URI_append_armv7a = " \ +SRC_URI_append_omap3 = " \ file://gstreamer-ti-add-omapfb.patch;patch=1 \ " -# Again, no '.' in PWD allowed :( -PR = "r37" -PV = "svnr${SRCREV}" - S = "${WORKDIR}/gstreamer_ti/ti_build/ticodecplugin" -INITSCRIPT_NAME = "gstti-init" -INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ." - -XDC_TARGET = gnu.targets.arm.GCArmv5T -XDC_PLATFORM_dm6446-evm = ti.platforms.evmDM6446 -XDC_PLATFORM_da830-omapl137-evm = ti.platforms.omapl137 -PLATFORM_XDC = ${XDC_PLATFORM} -export XDC_TARGET -export XDC_PLATFORM -export PLATFORM_XDC +inherit autotools update-rc.d -PLATFORM_dm6446-evm = "dm6446" -PLATFORM_da830-omapl137-evm = "ol137" - -CPPFLAGS_append = " -DPlatform_${PLATFORM}" +require ti-paths.inc -PACKAGE_ARCH = "${MACHINE_ARCH}" +XDC_TARGET = "gnu.targets.arm.GCArmv5T" +XDC_PLATFORM_dm6446 = "ti.platforms.evmDM6446" +XDC_PLATFORM_omapl137 = "ti.platforms.omapl137" +PLATFORM_XDC = "${XDC_PLATFORM}" +PLATFORM_dm6446 = "dm6446" +PLATFORM_omapl137 = "ol137" +export XDC_TARGET +export XDC_PLATFORM +export PLATFORM_XDC # export codec combo (or server) locations export HMJCP_COMBO = "${installdir}/codec-combo/hmjcp.accel" export CODEC_SERVER = "${installdir}/codec-combo/cs.x64P" -export ENCODE_COMBO = "${installdir}/codec-combo/encodeCombo.x64P" +export ENCODE_COMBO = "${installdir}/codec-combo/encodeCombo.x64P" export DECODE_COMBO = "${installdir}/codec-combo/decodeCombo.x64P" -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 - fi - chmod 0755 ${D}/${installdir}/gst -R - - install -d ${D}${sysconfdir}/init.d/ - install -m 0755 ${WORKDIR}/${GST_TI_RC_SCRIPT} ${D}${sysconfdir}/init.d/gstti-init -} +CPPFLAGS_append = " -DPlatform_${PLATFORM}" -pkg_postinst_gstreamer-ti-demo-script () { - ln -sf ${installdir}/codec-combo/* ${installdir}/gst/${PLATFORM}/ +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 + fi + chmod 0755 ${D}/${installdir}/gst -R + install -d ${D}${sysconfdir}/init.d/ + install -m 0755 ${WORKDIR}/${GST_TI_RC_SCRIPT} ${D}${sysconfdir}/init.d/gstti-init } +PACKAGE_ARCH = "${MACHINE_ARCH}" PACKAGES += "gstreamer-ti-demo-script" -FILES_gstreamer-ti-demo-script = "${installdir}/gst/*" -RDEPENDS_gstreamer-ti-demo-script = "gstreamer-ti" -RDEPENDS_${PN} = " \ +RDEPENDS_gstreamer-ti-demo-script = "${PN}" +RRECOMMENDS_${PN} = " \ gst-plugins-base-meta \ gst-plugins-good-meta \ gst-plugins-bad-meta \ gst-plugins-ugly-meta \ ti-dmai-apps" +FILES_gstreamer-ti-demo-script = "${installdir}/gst/*" FILES_${PN} += "${libdir}/gstreamer-0.10/*.so ${sysconfdir}" FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.a ${libdir}/gstreamer-0.10/*.la" FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug" +pkg_postinst_gstreamer-ti-demo-script () { + ln -sf ${installdir}/codec-combo/* ${installdir}/gst/${PLATFORM}/ +} + +INITSCRIPT_NAME = "gstti-init" +INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ." + |