diff options
Diffstat (limited to 'recipes-bsp/isp-imx/isp-imx_4.2.2.6.0.bb')
-rw-r--r-- | recipes-bsp/isp-imx/isp-imx_4.2.2.6.0.bb | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/recipes-bsp/isp-imx/isp-imx_4.2.2.6.0.bb b/recipes-bsp/isp-imx/isp-imx_4.2.2.6.0.bb new file mode 100644 index 00000000..fcf9a14a --- /dev/null +++ b/recipes-bsp/isp-imx/isp-imx_4.2.2.6.0.bb | |||
@@ -0,0 +1,80 @@ | |||
1 | # Copyright 2020 NXP | ||
2 | |||
3 | DESCRIPTION = "i.MX Verisilicon Software ISP" | ||
4 | LICENSE = "Proprietary" | ||
5 | LIC_FILES_CHKSUM = "file://${WORKDIR}/${PN}-${PV}/COPYING;md5=cf3f9b8d09bc3926b1004ea71f7a248a" | ||
6 | |||
7 | |||
8 | inherit fsl-eula-unpack cmake systemd | ||
9 | |||
10 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true \ | ||
11 | file://0001-start_isp.sh-fix-test-to-be-generic.patch;patchdir=.. \ | ||
12 | file://0001-BufferManager.h-add-missing-header-file.patch;patchdir=.. \ | ||
13 | " | ||
14 | |||
15 | SRC_URI[md5sum] = "2246009411af32b1e02fbb0b242a0fc0" | ||
16 | SRC_URI[sha256sum] = "7a245abb5fee23319f59b970db0bb014a2932fd6d5bd44f16f7dd31bbe25003a" | ||
17 | |||
18 | S = "${WORKDIR}/${PN}-${PV}/appshell" | ||
19 | |||
20 | DEPENDS = "python3 libdrm" | ||
21 | |||
22 | OECMAKE_GENERATOR = "Unix Makefiles" | ||
23 | |||
24 | SYSTEMD_SERVICE_${PN} = "imx8-isp.service" | ||
25 | |||
26 | EXTRA_OECMAKE += " \ | ||
27 | -DCMAKE_BUILD_TYPE=release \ | ||
28 | -DISP_VERSION=ISP8000NANO_V1802 \ | ||
29 | -DPLATFORM=ARM64 \ | ||
30 | -DAPPMODE=V4L2 \ | ||
31 | -DQTLESS=1 \ | ||
32 | -DFULL_SRC_COMPILE=1 \ | ||
33 | -DWITH_DRM=1 \ | ||
34 | -DWITH_DWE=1 \ | ||
35 | -DSERVER_LESS=1 \ | ||
36 | -DSUBDEV_V4L2=1 \ | ||
37 | -DENABLE_IRQ=1 \ | ||
38 | -DPARTITION_BUILD=0 \ | ||
39 | -D3A_SRC_BUILD=0 \ | ||
40 | -Wno-dev \ | ||
41 | " | ||
42 | |||
43 | do_configure_prepend() { | ||
44 | export SDKTARGETSYSROOT=${STAGING_DIR_HOST} | ||
45 | } | ||
46 | |||
47 | do_install() { | ||
48 | install -d ${D}/${libdir} | ||
49 | install -d ${D}/${includedir} | ||
50 | install -d ${D}/opt/imx8-isp/bin | ||
51 | |||
52 | cp -r ${WORKDIR}/build/generated/release/bin/*_test ${D}/opt/imx8-isp/bin | ||
53 | cp -r ${WORKDIR}/build/generated/release/bin/*2775* ${D}/opt/imx8-isp/bin | ||
54 | cp -r ${WORKDIR}/build/generated/release/bin/isp_media_server ${D}/opt/imx8-isp/bin | ||
55 | cp -r ${WORKDIR}/build/generated/release/bin/vvext ${D}/opt/imx8-isp/bin | ||
56 | cp -r ${WORKDIR}/${PN}-${PV}/mediacontrol/case/ ${D}/opt/imx8-isp/bin | ||
57 | cp -r ${WORKDIR}/build/generated/release/lib/*.so* ${D}/${libdir} | ||
58 | cp -r ${WORKDIR}/build/generated/release/include/* ${D}/${includedir} | ||
59 | |||
60 | cp ${WORKDIR}/${PN}-${PV}/imx/run.sh ${D}/opt/imx8-isp/bin | ||
61 | cp ${WORKDIR}/${PN}-${PV}/imx/start_isp.sh ${D}/opt/imx8-isp/bin | ||
62 | |||
63 | chmod +x ${D}/opt/imx8-isp/bin/run.sh | ||
64 | chmod +x ${D}/opt/imx8-isp/bin/start_isp.sh | ||
65 | |||
66 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
67 | install -d ${D}${systemd_system_unitdir} | ||
68 | install -m 0644 ${WORKDIR}/${PN}-${PV}/imx/imx8-isp.service ${D}${systemd_system_unitdir} | ||
69 | fi | ||
70 | } | ||
71 | |||
72 | RDEPENDS_${PN} = "libdrm libpython3 bash" | ||
73 | |||
74 | PACKAGES = "${PN} ${PN}-dev ${PN}-dbg" | ||
75 | |||
76 | FILES_${PN} = "${libdir} /opt ${systemd_system_unitdir}/imx8-isp.service" | ||
77 | FILES_${PN}-dbg += "${libdir}/.debug" | ||
78 | |||
79 | INSANE_SKIP_${PN} += "rpaths dev-deps dev-so" | ||
80 | INSANE_SKIP_${PN}-dev += "rpaths dev-elf" | ||