diff options
Diffstat (limited to 'recipes-bsp/isp-imx/isp-imx_4.2.2.22.0.bb')
-rw-r--r-- | recipes-bsp/isp-imx/isp-imx_4.2.2.22.0.bb | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/recipes-bsp/isp-imx/isp-imx_4.2.2.22.0.bb b/recipes-bsp/isp-imx/isp-imx_4.2.2.22.0.bb new file mode 100644 index 00000000..59a4c14d --- /dev/null +++ b/recipes-bsp/isp-imx/isp-imx_4.2.2.22.0.bb | |||
@@ -0,0 +1,93 @@ | |||
1 | # Copyright 2020-2023 NXP | ||
2 | |||
3 | DESCRIPTION = "i.MX Verisilicon Software ISP" | ||
4 | LICENSE = "Proprietary" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=63a38e9f392d8813d6f1f4d0d6fbe657" | ||
6 | DEPENDS = "boost libdrm virtual/libg2d libtinyxml2" | ||
7 | |||
8 | SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" | ||
9 | |||
10 | SRC_URI[md5sum] = "693e76b20985de607208c21d996019f8" | ||
11 | SRC_URI[sha256sum] = "c2f450502390442926920d6457bbf24378c0338a445be180130ec6b1b12d1056" | ||
12 | |||
13 | inherit fsl-eula-unpack cmake systemd use-imx-headers | ||
14 | |||
15 | # Build the sub-folder appshell | ||
16 | OECMAKE_SOURCEPATH = "${S}/appshell" | ||
17 | |||
18 | # Use make instead of ninja | ||
19 | OECMAKE_GENERATOR = "Unix Makefiles" | ||
20 | |||
21 | # Workaround for linking issues seen with gold linker | ||
22 | LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | ||
23 | |||
24 | SYSTEMD_SERVICE:${PN} = "imx8-isp.service" | ||
25 | |||
26 | EXTRA_OECMAKE += " \ | ||
27 | -DSDKTARGETSYSROOT=${STAGING_DIR_HOST} \ | ||
28 | -DCMAKE_BUILD_TYPE=release \ | ||
29 | -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \ | ||
30 | -DISP_VERSION=ISP8000NANO_V1802 \ | ||
31 | -DPLATFORM=ARM64 \ | ||
32 | -DAPPMODE=V4L2 \ | ||
33 | -DTUNINGEXT=1 \ | ||
34 | -DQTLESS=1 \ | ||
35 | -DFULL_SRC_COMPILE=1 \ | ||
36 | -DWITH_DRM=1 \ | ||
37 | -DWITH_DWE=1 \ | ||
38 | -DSERVER_LESS=1 \ | ||
39 | -DSUBDEV_V4L2=1 \ | ||
40 | -DENABLE_IRQ=1 \ | ||
41 | -DPARTITION_BUILD=0 \ | ||
42 | -D3A_SRC_BUILD=0 \ | ||
43 | -DIMX_G2D=ON \ | ||
44 | -Wno-dev \ | ||
45 | " | ||
46 | |||
47 | do_install() { | ||
48 | install -d ${D}/${libdir} | ||
49 | install -d ${D}/${includedir} | ||
50 | install -d ${D}/opt/imx8-isp/bin | ||
51 | install -d ${D}/opt/imx8-isp/bin/dewarp_config | ||
52 | |||
53 | cp -r ${B}/generated/release/bin/*_test ${D}/opt/imx8-isp/bin | ||
54 | cp -r ${B}/generated/release/bin/*.xml ${D}/opt/imx8-isp/bin | ||
55 | cp -r ${B}/generated/release/bin/*.drv ${D}/opt/imx8-isp/bin | ||
56 | cp -r ${B}/generated/release/bin/tuningext ${D}/opt/imx8-isp/bin | ||
57 | cp -r ${B}/generated/release/bin/isp_media_server ${D}/opt/imx8-isp/bin | ||
58 | cp -r ${B}/generated/release/bin/vvext ${D}/opt/imx8-isp/bin | ||
59 | |||
60 | cp -r ${B}/generated/release/lib/*.so* ${D}/${libdir} | ||
61 | cp -r ${B}/generated/release/include/* ${D}/${includedir} | ||
62 | |||
63 | cp -r ${S}/dewarp/dewarp_config/ ${D}/opt/imx8-isp/bin | ||
64 | cp ${S}/imx/run.sh ${D}/opt/imx8-isp/bin | ||
65 | cp ${S}/imx/start_isp.sh ${D}/opt/imx8-isp/bin | ||
66 | |||
67 | chmod +x ${D}/opt/imx8-isp/bin/run.sh | ||
68 | chmod +x ${D}/opt/imx8-isp/bin/start_isp.sh | ||
69 | |||
70 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
71 | install -d ${D}${systemd_system_unitdir} | ||
72 | install -m 0644 ${S}/imx/imx8-isp.service ${D}${systemd_system_unitdir} | ||
73 | fi | ||
74 | } | ||
75 | |||
76 | # The build contains a mix of versioned and unversioned libraries, so | ||
77 | # the default packaging configuration needs some modification so that | ||
78 | # unversioned .so libraries go to the main package and versioned .so | ||
79 | # symlinks go to -dev. | ||
80 | FILES_SOLIBSDEV = "" | ||
81 | FILES:${PN} += "/opt ${libdir}/lib*${SOLIBSDEV}" | ||
82 | FILES:${PN}-dev += "${FILES_SOLIBS_VERSIONED}" | ||
83 | FILES_SOLIBS_VERSIONED = " \ | ||
84 | ${libdir}/libcppnetlib-client-connections.so \ | ||
85 | ${libdir}/libcppnetlib-server-parsers.so \ | ||
86 | ${libdir}/libcppnetlib-uri.so \ | ||
87 | ${libdir}/libjsoncpp.so \ | ||
88 | ${libdir}/libos08a20.so \ | ||
89 | " | ||
90 | |||
91 | RDEPENDS:${PN} = "libdrm" | ||
92 | |||
93 | COMPATIBLE_MACHINE = "(mx8mp-nxp-bsp)" | ||