diff options
author | Koen Kooi <koen@openembedded.org> | 2009-03-24 19:22:13 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-03-24 19:22:13 +0100 |
commit | 5a03b8a7b4bab46eaf0074e383b38c82919ac808 (patch) | |
tree | 73a45af141bb1802a76a3628293129d7e0d54515 /recipes/dsplink/ti-dmai_svn.bb | |
parent | df49f5e7f5a14c6736806f3163787608c958f4c9 (diff) |
ti-dmai: fetch from svn
* gets us some buildfixes for free
* no need to download it from my.ti.com, which requires a login
Diffstat (limited to 'recipes/dsplink/ti-dmai_svn.bb')
-rw-r--r-- | recipes/dsplink/ti-dmai_svn.bb | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/recipes/dsplink/ti-dmai_svn.bb b/recipes/dsplink/ti-dmai_svn.bb new file mode 100644 index 0000000000..f6ff173a42 --- /dev/null +++ b/recipes/dsplink/ti-dmai_svn.bb @@ -0,0 +1,76 @@ +DESCRIPTION = "Davinci (and OMAP) Multimedia Application Interface" +DEPENDS = "virtual/kernel ti-codec-engine ti-codec-combos" +LICENCE = "unknown" + +require ti-paths.inc + +SRC_URI = "svn://gforge.ti.com/svn/dmai/branches;module=BRIJESH_GIT_022309;proto=https;user=anonymous;pswd='' \ + file://dmai-built-with-angstrom.patch;patch=1 \ + file://loadmodules-ti-dmai-apps.sh \ + file://unloadmodules-ti-dmai-apps.sh \ + " + +SRCREV = "36" + +S = "${WORKDIR}/BRIJESH_GIT_022309/davinci_multimedia_application_interface/dmai" +# Yes, the xdc stuff still breaks with a '.' in PWD +PV = "120+svnr${SRCREV}" +PR = "r15" + +TARGET = "all" +TARGET_neuros-osd2 = " dm6446_al dm6446_db" +TARGET_beagleboard = " o3530_al" +TARGET_omap3evm = " o3530_al" + +export CE_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-engine" +export FC_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-engine/cetools" +export CODEC_INSTALL_DIR="${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-codec-combos" + +do_compile() { + cd packages/ti/sdo/dmai + oe_runmake clean + oe_runmake ${TARGET} C_FLAGS="-O2 -I${STAGING_INCDIR}" + cd apps + oe_runmake clean + oe_runmake ${TARGET} +} + +do_install () { + install -d ${D}/${datadir}/ti-dmai/apps + + export EXEC_DIR="${D}/${datadir}/ti-dmai/apps" + oe_runmake install + + #test app module un/load scripts + install ${WORKDIR}/loadmodules-ti-dmai-apps.sh ${D}/${datadir}/ti-dmai + install ${WORKDIR}/unloadmodules-ti-dmai-apps.sh ${D}/${datadir}/ti-dmai +} + +do_stage () { + install -d ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-dmai + cp -pPrf ${S}/* ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ti-dmai +} + +PACKAGES =+ "ti-dmai-apps" + +ALLOW_EMPTY_${PN} = "1" +RRECOMMENDS_${PN} = "ti-dmai-apps" + +FILES_ti-dmai-apps = "${datadir}/ti-dmai/*" + +pkg_postinst_ti-dmai-apps () { + if [ -n "$D" ]; then + exit 1 + fi + ln -sf /usr/share/ti-codec-combos/* /usr/share/ti-dmai/apps +} + +INHIBIT_PACKAGE_STRIP = "1" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +#add run-time dependencies - note for kernel module we can only use RRECOMMENDS, since modules might be built into the kernel +# and for now we make codecs RRECOMMENDS as well, since not everyone will have them +#RDEPENDS_ti-dmai-apps += "ti-codec-combos" +RRECOMMENDS_ti-dmai-apps += "ti-cmem-module ti-lpm-module ti-dsplink-module ti-codec-combos" + |