aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen2/recipes-multimedia/fdpm-module/fdpm-user-module.bb
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2015-03-25 10:47:45 +0900
committerNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2015-03-25 10:47:45 +0900
commit1c35920d85e424b3f65aa6df1dbde689dd6ec007 (patch)
tree58b2cacb3674111aad5a4ded694db0cef5cf55f3 /meta-rcar-gen2/recipes-multimedia/fdpm-module/fdpm-user-module.bb
commit BSP v1.8.0
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Diffstat (limited to 'meta-rcar-gen2/recipes-multimedia/fdpm-module/fdpm-user-module.bb')
-rw-r--r--meta-rcar-gen2/recipes-multimedia/fdpm-module/fdpm-user-module.bb68
1 files changed, 68 insertions, 0 deletions
diff --git a/meta-rcar-gen2/recipes-multimedia/fdpm-module/fdpm-user-module.bb b/meta-rcar-gen2/recipes-multimedia/fdpm-module/fdpm-user-module.bb
new file mode 100644
index 0000000..7146a2a
--- /dev/null
+++ b/meta-rcar-gen2/recipes-multimedia/fdpm-module/fdpm-user-module.bb
@@ -0,0 +1,68 @@
+require ../../include/rcar-gen2-modules-common.inc
+
+LICENSE = "CLOSED"
+DEPENDS = "fdpm-kernel-module mmngr-user-module"
+PN = "fdpm-user-module"
+SRC_URI = "file://fdpm.tar.bz2"
+
+S = "${WORKDIR}/fdpm"
+
+do_compile() {
+ # Build shared library
+ cd ${S}/if
+ rm -rf libfdpm.so*
+ make all ARCH=arm
+ # Copy shared library for reference from other modules
+ cp -P ${S}/if/libfdpm.so* ${LIBSHARED}
+ cp -rf ${S}/include/*h ${STAGING_INCDIR}
+}
+
+do_install() {
+ # Create destination folder
+ mkdir -p ${D}/usr/local/lib/ ${D}/usr/local/include/
+
+ # Copy shared library
+ cp -P ${S}/if/libfdpm.so* ${D}/usr/local/lib
+ cp -rf ${S}/include/*h ${D}/usr/local/include/
+}
+
+# Append function to clean extract source
+do_cleansstate_prepend() {
+ bb.build.exec_func('do_clean_source', d)
+}
+
+do_clean_source() {
+ rm -f ${LIBSHARED}/libfdpm.so*
+ rm -f ${STAGING_INCDIR}/fdpm_api.h
+ rm -f ${STAGING_INCDIR}/fdpm_drv.h
+ rm -f ${STAGING_INCDIR}/fdpm_if_fd.h
+ rm -f ${STAGING_INCDIR}/fdpm_if.h
+ rm -f ${STAGING_INCDIR}/fdpm_if_par.h
+ rm -f ${STAGING_INCDIR}/fdpm_if_priv.h
+ rm -f ${STAGING_INCDIR}/fdpm_public.h
+}
+
+PACKAGES = "\
+ ${PN} \
+ ${PN}-dev \
+"
+
+FILES_${PN} = " \
+ /usr/local/lib/libfdpm.so.* \
+"
+
+FILES_${PN}-dev = " \
+ /usr/local/lib/libfdpm.so \
+ /usr/local/include/*.h \
+"
+
+RPROVIDES_${PN} += "fdpm-user-module"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+INSANE_SKIP_${PN} += "libdir"
+INSANE_SKIP_${PN}-dev += "libdir"
+
+do_configure[noexec] = "1"
+
+python do_package_ipk_prepend () {
+ d.setVar('ALLOW_EMPTY', '1')
+}