diff options
Diffstat (limited to 'recipes-bsp/isp-imx/isp-imx_4.2.2.18.0.bb')
| -rw-r--r-- | recipes-bsp/isp-imx/isp-imx_4.2.2.18.0.bb | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/recipes-bsp/isp-imx/isp-imx_4.2.2.18.0.bb b/recipes-bsp/isp-imx/isp-imx_4.2.2.18.0.bb new file mode 100644 index 000000000..177caa14a --- /dev/null +++ b/recipes-bsp/isp-imx/isp-imx_4.2.2.18.0.bb | |||
| @@ -0,0 +1,88 @@ | |||
| 1 | # Copyright 2020-2022 NXP | ||
| 2 | |||
| 3 | DESCRIPTION = "i.MX Verisilicon Software ISP" | ||
| 4 | LICENSE = "Proprietary" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d3c315c6eaa43e07d8c130dc3a04a011" | ||
| 6 | DEPENDS = "libdrm virtual/libg2d libtinyxml2" | ||
| 7 | |||
| 8 | SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" | ||
| 9 | SRC_URI[md5sum] = "a20171db4bf2be423a587f3b610f0a69" | ||
| 10 | SRC_URI[sha256sum] = "468ae51223d1873a1a756a1e64a53c0c61ebd640b3810f3a9e912b6a0de6c3c8" | ||
| 11 | |||
| 12 | inherit fsl-eula-unpack cmake systemd use-imx-headers | ||
| 13 | |||
| 14 | # Build the sub-folder appshell | ||
| 15 | OECMAKE_SOURCEPATH = "${S}/appshell" | ||
| 16 | |||
| 17 | # Use make instead of ninja | ||
| 18 | OECMAKE_GENERATOR = "Unix Makefiles" | ||
| 19 | |||
| 20 | # Workaround for linking issues seen with gold linker | ||
| 21 | LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" | ||
| 22 | |||
| 23 | SYSTEMD_SERVICE:${PN} = "imx8-isp.service" | ||
| 24 | |||
| 25 | EXTRA_OECMAKE += " \ | ||
| 26 | -DSDKTARGETSYSROOT=${STAGING_DIR_HOST} \ | ||
| 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 | -DIMX_G2D=ON \ | ||
| 41 | -Wno-dev \ | ||
| 42 | " | ||
| 43 | |||
| 44 | do_install() { | ||
| 45 | install -d ${D}/${libdir} | ||
| 46 | install -d ${D}/${includedir} | ||
| 47 | install -d ${D}/opt/imx8-isp/bin | ||
| 48 | |||
| 49 | cp -r ${B}/generated/release/bin/*_test ${D}/opt/imx8-isp/bin | ||
| 50 | cp -r ${B}/generated/release/bin/*2775* ${D}/opt/imx8-isp/bin | ||
| 51 | cp -r ${B}/generated/release/bin/*.xml ${D}/opt/imx8-isp/bin | ||
| 52 | cp -r ${B}/generated/release/bin/*.drv ${D}/opt/imx8-isp/bin | ||
| 53 | cp -r ${B}/generated/release/bin/isp_media_server ${D}/opt/imx8-isp/bin | ||
| 54 | cp -r ${B}/generated/release/bin/vvext ${D}/opt/imx8-isp/bin | ||
| 55 | cp -r ${B}/generated/release/lib/*.so* ${D}/${libdir} | ||
| 56 | cp -r ${B}/generated/release/include/* ${D}/${includedir} | ||
| 57 | |||
| 58 | cp ${S}/imx/run.sh ${D}/opt/imx8-isp/bin | ||
| 59 | cp ${S}/imx/start_isp.sh ${D}/opt/imx8-isp/bin | ||
| 60 | |||
| 61 | chmod +x ${D}/opt/imx8-isp/bin/run.sh | ||
| 62 | chmod +x ${D}/opt/imx8-isp/bin/start_isp.sh | ||
| 63 | |||
| 64 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
| 65 | install -d ${D}${systemd_system_unitdir} | ||
| 66 | install -m 0644 ${S}/imx/imx8-isp.service ${D}${systemd_system_unitdir} | ||
| 67 | fi | ||
| 68 | } | ||
| 69 | |||
| 70 | # The build contains a mix of versioned and unversioned libraries, so | ||
| 71 | # the default packaging configuration needs some modification so that | ||
| 72 | # unversioned .so libraries go to the main package and versioned .so | ||
| 73 | # symlinks go to -dev. | ||
| 74 | FILES_SOLIBSDEV = "" | ||
| 75 | FILES_SOLIBS_VERSIONED = " \ | ||
| 76 | ${libdir}/libar1335.so \ | ||
| 77 | ${libdir}/libjsoncpp.so \ | ||
| 78 | ${libdir}/libos08a20.so \ | ||
| 79 | ${libdir}/libov2775.so \ | ||
| 80 | " | ||
| 81 | FILES:${PN} += "/opt ${libdir}/lib*${SOLIBSDEV}" | ||
| 82 | FILES:${PN}-dev += "${FILES_SOLIBS_VERSIONED}" | ||
| 83 | |||
| 84 | INSANE_SKIP:${PN} = "rpaths" | ||
| 85 | |||
| 86 | RDEPENDS:${PN} = "libdrm" | ||
| 87 | |||
| 88 | COMPATIBLE_MACHINE = "(mx8mp-nxp-bsp)" | ||
