diff options
author | Roger Monk <r-monk@ti.com> | 2010-02-25 18:59:29 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-04-12 19:43:19 +0200 |
commit | 893cba6c8ad21270753654af0d16fbed0288cc91 (patch) | |
tree | 27a388fce7e9c14e489e22904fc1a136b4ab1ceb /recipes/ti/ti-dsplib_2.10.bb | |
parent | d472e932b63cdff4cc97958b76e83028d8ec5199 (diff) | |
download | openembedded-893cba6c8ad21270753654af0d16fbed0288cc91.tar.gz |
ti-dsplib: Add TI 64x+ DSPLIB support to OE
* Download, Unpack and Stage DSPLIB kernels
* Download is tgz, but named gz + contains IJ installer
* Add custom unpack for this
* Multimedia Common path addition (DSPLIB/CODEC)
Signed-off-by: Roger Monk <r-monk@ti.com>
Signed-off-by: Koen Kooi <k-kooi@ti.com>
Diffstat (limited to 'recipes/ti/ti-dsplib_2.10.bb')
-rw-r--r-- | recipes/ti/ti-dsplib_2.10.bb | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/recipes/ti/ti-dsplib_2.10.bb b/recipes/ti/ti-dsplib_2.10.bb new file mode 100644 index 0000000000..8e26092d97 --- /dev/null +++ b/recipes/ti/ti-dsplib_2.10.bb @@ -0,0 +1,79 @@ +DESCRIPTION = "TI DSPLIB Optimised DSP Library" +HOMEPAGE = "http://focus.ti.com/docs/toolsw/folders/print/sprc265.html" +SECTION = "multimedia" + +# TODO : Add variants for 67x/674x/etc +# TODO : Add compile step to enable rebuild + +PV = "1_20" + +SRC_URI[dsplibgz.md5sum] = "0e9f0fc05b17d8eefc6117f36ecd576e" +SRC_URI[dsplibgz.sha256sum] = "96e320a3dcb8b238e5245a36b26c2f7f1d00a8467ab65d6c5c93f5f57c891252" + +PR = "r1" + +require ti-paths.inc +require ti-staging.inc +require ti-eula-unpack.inc + +S = "${WORKDIR}/C64x+DSPLIB/dsplib_v210" + +SRC_URI = "http://focus.ti.com/lit/sw/sprc834/sprc834.gz;name=dsplibgz" + +#Later this will have dependencies when we rebuild the libraries/examples +#DEPENDS = "ti-cgt6x ti-xdctools ti-dspbios ti-codec-engine" + +PRETARFILE="sprc834" +BINFILE="C64x+DSPLIB-2.1-Linux-Install.bin" +TI_BIN_UNPK_CMDS="Y:workdir:" + +python do_unpack () { + bb.build.exec_func('base_do_unpack', d) + bb.build.exec_func('ti_pretar_do_unpack', d) + bb.build.exec_func('ti_bin_do_unpack', d) +} + +python ti_pretar_do_unpack() { + + import os + + localdata = bb.data.createCopy(d) + bb.data.update_data(localdata) + + # Change to the working directory + save_cwd = os.getcwd() + workdir = bb.data.getVar('WORKDIR', localdata) + workdir = bb.data.expand(workdir, localdata) + os.chdir(workdir) + + # Expand the tarball that was created if required + tarfile = bb.data.getVar('PRETARFILE', localdata) + if bool(tarfile) == True: + tarfile = bb.data.expand(tarfile, localdata) + tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir) + os.system(tcmd) + + # Return to the previous directory + os.chdir(save_cwd) +} + +do_prepsources() { + echo "Do Nothing for Now" +} + +addtask prepsources after do_configure before do_compile + +do_compile() { + echo "Do Nothing for Now" +} + +do_install() { + + install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} + cp -pPrf ${S}/* ${D}${DSPLIB_INSTALL_DIR_RECIPE} +} + + + + + |