blob: 2c93caea5b3444c90df31af7347af44f876fc75a (
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
|
require ../../include/rcar-gen2-modules-common.inc
LICENSE = "CLOSED"
DEPENDS = "vspm-kernel-module"
PN = "vspm-user-module"
PR = "r0"
SRC_URI = "file://vspm-user.tar.bz2"
S = "${WORKDIR}"
# workaround for vspm-kernel-module header
CC += " -I${RECIPE_SYSROOT}/usr/src/kernel/include "
do_compile() {
# Build shared library
cd ${S}/vspm/if
rm -rf ${S}/vspm/if/libvspm.so*
make all ARCH=arm
# Copy shared library for reference from other modules
cp -P ${S}/vspm/if/libvspm.so* ${LIBSHARED}
}
do_install() {
# Create destination folder
mkdir -p ${D}${RENESAS_DATADIR}/lib/ ${D}${RENESAS_DATADIR}/include
# Copy shared library
cp -P ${S}/vspm/if/libvspm.so* ${D}${RENESAS_DATADIR}/lib/
# Copy shared header files
cp -f ${BUILDDIR}/include/vspm_public.h ${D}${RENESAS_DATADIR}/include
cp -f ${BUILDDIR}/include/vsp_drv.h ${D}${RENESAS_DATADIR}/include
cp -f ${BUILDDIR}/include/tddmac_drv.h ${D}${RENESAS_DATADIR}/include
}
do_clean_source() {
rm -f ${LIBSHARED}/libvspm.so*
rm -f ${BUILDDIR}/include/vspm_public.h
rm -f ${BUILDDIR}/include/vsp_drv.h
rm -f ${BUILDDIR}/include/tddmac_drv.h
}
PACKAGES = "\
${PN} \
${PN}-dev \
"
FILES_${PN} = " \
${RENESAS_DATADIR}/lib/libvspm.so.* \
"
FILES_${PN}-dev = " \
${RENESAS_DATADIR}/lib \
${RENESAS_DATADIR}/lib/libvspm.so \
${RENESAS_DATADIR}/lib/* \
${RENESAS_DATADIR}/include \
${RENESAS_DATADIR}/include/*.h \
"
RPROVIDES_${PN} += "vspm-user-module"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INSANE_SKIP_${PN} += "libdir"
INSANE_SKIP_${PN}-dev += "libdir"
|