blob: c3501915020e9d92efbad88dc0e059e2b4bc4e8d (
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
DESCRIPTION = "TI Codecs (and Server Combo) for OMAPL137"
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent"
SECTION = "multimedia"
LICENSE = "TI"
# TODO :: Move to common .inc (omap3 and omapl ready)
# TODO :: Rename to generic OMAPL codecs (instead of omapl137/138)
PV = "1_00_00"
SRC_URI[l137codecsbin.md5sum] = "64a53cd55bc63d3a6f4db742aff90de9"
SRC_URI[l137codecsbin.sha256sum] = "4fb1075ad83f6017616410eff35ada7d567f1ee1b5b23624a817e8fc7dda3f8a"
PR = "r5"
require ti-paths.inc
require ti-staging.inc
require ti-eula-unpack.inc
PROVIDES += "ti-codecs-omapl137-server"
S = "${WORKDIR}/OMAP_L138_arm_1_00_00_08/cs1omapl138_${PV}"
SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/sdk/omap_l138/1_00/latest/exports/${BINFILE};name=l137codecsbin \
file://ti-codecs-omapl138-1-00-00-fixDman3Config.patch;patch=1"
BINFILE = "cs1omapl138_${PV}-v2_setup_linux.bin"
TI_BIN_UNPK_CMDS = "y:Y: qY:workdir"
DEPENDS = "ti-cgt6x ti-xdctools ti-dspbios ti-codec-engine ti-linuxutils"
#generic codec
DSPSUFFIX_omapl137 = "x64P"
do_configure() {
# Reconfig this package for L137
sed -i 's/L138/L137/g' config.bld
sed -i 's/L138/L137/g' packages/ti/sdo/server/cs/package.bld
sed -i 's/L138/L137/g' packages/ti/sdo/server/cs/server.tcf
}
do_prepsources() {
make \
CE_INSTALL_DIR=${CE_INSTALL_DIR} \
FC_INSTALL_DIR=${FC_INSTALL_DIR} \
LINK_INSTALL_DIR=${LINK_INSTALL_DIR} \
CMEM_INSTALL_DIR=${CMEM_INSTALL_DIR} \
LPM_INSTALL_DIR=${LPM_INSTALL_DIR} \
BIOS_INSTALL_DIR=${BIOS_INSTALL_DIR} \
CODEGEN_INSTALL_DIR=${CODEGEN_INSTALL_DIR} \
XDC_INSTALL_DIR=${XDC_INSTALL_DIR} \
CODEC_INSTALL_DIR="${S}" \
XDCARGS="prod" \
clean
}
addtask prepsources after do_configure before do_compile
do_compile() {
make \
CE_INSTALL_DIR=${CE_INSTALL_DIR} \
FC_INSTALL_DIR=${FC_INSTALL_DIR} \
LINK_INSTALL_DIR=${LINK_INSTALL_DIR} \
CMEM_INSTALL_DIR=${CMEM_INSTALL_DIR} \
LPM_INSTALL_DIR=${LPM_INSTALL_DIR} \
BIOS_INSTALL_DIR=${BIOS_INSTALL_DIR} \
CODEGEN_INSTALL_DIR=${CODEGEN_INSTALL_DIR} \
XDC_INSTALL_DIR=${XDC_INSTALL_DIR} \
CODEC_INSTALL_DIR="${S}" \
XDCARGS="prod" \
all
}
do_install() {
install -d ${D}/${installdir}/ti-codecs-server
cd ${S}
# Install the DSP Server Binary
for file in `find . -name *.${DSPSUFFIX}`; do
cp ${file} ${D}/${installdir}/ti-codecs-server
done
# Install docs (codec qualiTI test reports, server config datasheet, etc)
for file in `find . -name *.html`; do
cp ${file} ${D}/${installdir}/ti-codecs-server
done
install -d ${D}${CODEC_INSTALL_DIR_RECIPE}
cp -pPrf ${S}/* ${D}${CODEC_INSTALL_DIR_RECIPE}
}
PACKAGES += "ti-codecs-omapl137-server"
FILES_ti-codecs-omapl137-server = "${installdir}/ti-codecs-server/*"
|