summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen2/recipes-multimedia/dtv-module/dtv-user-module.bb
blob: 0bfc9aff8fe5a1d4e9e1992bb7e91688238dd1af (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
require ../../include/rcar-gen2-modules-common.inc

LICENSE = "CLOSED"
PN = "dtv"
PR = "r0"
SRC_URI = "file://dtv.tar.bz2"
PACKAGE_ARCH = "${MACHINE_ARCH}"

S = "${WORKDIR}"

do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_populate_lic[noexec] = "1"

do_install() {
    # Create share folders
    mkdir -p ${D}${RENESAS_DATADIR}/include/ ${D}${RENESAS_DATADIR}/lib ${D}${RENESAS_DATADIR}/src/dtv/reference

    # Copy share files to destination
    cp -f ${WORKDIR}/dtv/include/*.h ${D}${RENESAS_DATADIR}/include/
    cp -f ${WORKDIR}/dtv/lib/libdtv.a ${D}${RENESAS_DATADIR}/lib
    cp -f ${WORKDIR}/dtv/userfunc/* ${D}${RENESAS_DATADIR}/src/dtv/reference
}

SYSROOT_PREPROCESS_FUNCS += "do_populate_reference_src"

do_populate_reference_src () {
	sysroot_stage_dir ${D}${RENESAS_DATADIR} ${SYSROOT_DESTDIR}${RENESAS_DATADIR}
}

PACKAGES = "\
    ${PN} \
    ${PN}-dev \
    ${PN}-staticdev \
"

FILES_${PN} = ""
ALLOW_EMPTY_${PN} = "1"

FILES_${PN}-dev = " \
    ${RENESAS_DATADIR}/include/*.h \
    ${RENESAS_DATADIR}/src/dtv/reference/*.c \
    ${RENESAS_DATADIR}/src/dtv/reference/*.h \
"

FILES_${PN}-staticdev = " \
    ${RENESAS_DATADIR}/lib/*.a \
"

INHIBIT_PACKAGE_DEBUG_SPLIT = "1"

do_configure[noexec] = "1"