blob: 0cb894e703978f307e73d4d893b2e3139bb6e127 (
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
|
DESCRIPTION = "DVSDK Demo applications for TI ARM/DSP processors"
SECTION = "multimedia"
LICENSE = "TI"
INC_PR = "r5"
DEPENDS += "ti-dmai"
DEPENDS += "alsa-lib libpng freetype jpeg"
SRC_URI = "http://gt_tspa_dev.gt.design.ti.com/dev/DVSDK/310_DVSDK/3_10_00/dvsdk_demos_${PV}.tar.gz;name=dvsdkdemostarball"
S = "${WORKDIR}/dvsdk_demos_${PV}"
require ti-paths.inc
require ti-staging.inc
DEMOSPLATFORM_dm355 = "dm355"
DEMOSPLATFORM_dm365 = "dm365"
DEMOSPLATFORM_dm6446 = "dm6446"
DEMOSPLATFORM_dm6467 = "dm6467"
DEMOSPLATFORM_omap3 = "omap3530"
DEMOSPLATFORM_omapl137 = "ol137"
DEMOSPLATFORM_omapl138 = "ol138"
do_configure_prepend() {
sed -i -e 's:INSTALLSUBDIRS = $(addsuffix .install, $(SUBDIRS)):INSTALLSUBDIRS = $(addsuffix .install, $(PLATFORM)):g' ${S}/Makefile
}
do_compile () {
cd ${S}
make -e clean
make -e PLATFORM=${DEMOSPLATFORM} \
VERBOSE="true" \
DMAI_INSTALL_DIR="${DMAI_INSTALL_DIR}" \
XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
CE_INSTALL_DIR="${CE_INSTALL_DIR}" \
FC_INSTALL_DIR="${FC_INSTALL_DIR}" \
CODEC_INSTALL_DIR="${CODEC_INSTALL_DIR}" \
CODEGEN_INSTALL_DIR="${CODEGEN_INSTALL_DIR}" \
BIOS_INSTALL_DIR="${BIOS_INSTALL_DIR}"\
CROSS_COMPILE="${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}" \
XDAIS_INSTALL_DIR="${XDAIS_INSTALL_DIR}" \
LINK_INSTALL_DIR="${LINK_INSTALL_DIR}" \
CMEM_INSTALL_DIR="${CMEM_INSTALL_DIR}" \
LPM_INSTALL_DIR="${LPM_INSTALL_DIR}" \
LINUXKERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" \
LINUXLIBS_INSTALL_DIR="${STAGING_DIR_TARGET}/usr" \
MVTOOL_DIR="${TOOLCHAIN_PATH}" \
${DEMOSPLATFORM}
}
do_install () {
install -d ${D}${DVSDK_DEMOS_INSTALL_DIR_RECIPE}
cp -pPrf ${S}/* ${D}${DVSDK_DEMOS_INSTALL_DIR_RECIPE}
cd ${S}
make -e EXEC_DIR=${D}/${installdir}/dvsdk-demos \
PLATFORM=${DEMOSPLATFORM} \
install
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
RDEPENDS_ti-dvsdk-demos_dm355 += "ti-dm355mm-module ti-cmem-module alsa-lib libpng freetype jpeg libpng12"
RDEPENDS_ti-dvsdk-demos_dm365 += "ti-dm365mm-module ti-cmem-module alsa-lib libpng freetype jpeg ti-codecs-dm365 ti-edma-module ti-irq-module libpng12"
FILES_${PN} = "${installdir}/dvsdk-demos/*"
BASE_SRC_URI ?= "http://install.source.dir.local"
PACKAGE_STRIP = "no"
INSANE_SKIP_${PN} = "True"
|