blob: 8e26092d97087c99fae3b4bf92e18eb4f9d20bda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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}
}
|