summaryrefslogtreecommitdiff
path: root/recipes/ffmpeg/omapfbplay-cmem_git.bb
blob: d5785831868c00101fda0f74122305e007ccaf4c (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
DESCRIPTION = "Simple ffmpeg-based player that uses the omapfb overlays"
DEPENDS = "ti-linuxutils bzip2 lame ffmpeg virtual/kernel"
LICENSE = "MIT"

PR = "r1"
PV = "0.0+${PR}+gitr${SRCREV}"

SRCREV = "70bc185cfc3dd64399dc664a90a56a15796fb2e8"
SRC_URI = "git://git.mansr.com/omapfbplay;protocol=git \
"

S = "${WORKDIR}/git"

require ../ti/ti-paths.inc

PACKAGE_ARCH = "${MACHINE_ARCH}"

SDMA_CFLAGS = " -I${LINUXUTILS_INSTALL_DIR}/packages/ti/sdo/linuxutils/sdma/include/"
CMEM_CFLAGS = " -I${LINUXUTILS_INSTALL_DIR}/packages/ti/sdo/linuxutils/cmem/include/"
CFLAGS += " -I. -I${STAGING_KERNEL_DIR}/include ${SDMA_CFLAGS} ${CMEM_CFLAGS}"

export SDMA_LIBS = "-L${LINUXUTILS_INSTALL_DIR}/packages/ti/sdo/linuxutils/sdma/lib -l:sdma.a470MV"
export CMEM_LIBS = "-L${LINUXUTILS_INSTALL_DIR}/packages/ti/sdo/linuxutils/cmem/lib -l:cmem.a470MV"

do_compile() {
	cp ${STAGING_KERNEL_DIR}/arch/arm/plat-omap/include/mach/omapfb.h ${S} || true
	cp ${STAGING_KERNEL_DIR}/include/asm-arm/arch-omap/omapfb.h ${S} || true
	cp ${STAGING_KERNEL_DIR}/include/linux/omapfb.h ${S} || true
	oe_runmake arm=y OMAPFB=y NETSYNC=y CMEM=y SDMA=y -e
}

do_install() {
	install -d ${D}/${bindir}
	install -m 0755 ${S}/omapfbplay ${D}/${bindir}/${PN}
}