[Buildroot] [PATCH 07/12] package/freescale-imx/isp-vvcam-module: add package
Chris Dimich
chris.dimich at boundarydevices.com
Wed Oct 6 20:41:30 UTC 2021
Verisilicon ISP that can be found in i.MX processors such as the i.MX 8M Plus.
Signed-off-by: Chris Dimich <chris.dimich at boundarydevices.com>
---
package/freescale-imx/Config.in | 1 +
.../freescale-imx/isp-vvcam-module/Config.in | 8 ++++++
.../isp-vvcam-module/isp-vvcam-module.hash | 2 ++
.../isp-vvcam-module/isp-vvcam-module.mk | 26 +++++++++++++++++++
4 files changed, 37 insertions(+)
create mode 100644 package/freescale-imx/isp-vvcam-module/Config.in
create mode 100644 package/freescale-imx/isp-vvcam-module/isp-vvcam-module.hash
create mode 100644 package/freescale-imx/isp-vvcam-module/isp-vvcam-module.mk
diff --git a/package/freescale-imx/Config.in b/package/freescale-imx/Config.in
index 4a4237fb42..5f02d24909 100644
--- a/package/freescale-imx/Config.in
+++ b/package/freescale-imx/Config.in
@@ -116,6 +116,7 @@ source "package/freescale-imx/firmware-imx/Config.in"
source "package/freescale-imx/imx-sc-firmware/Config.in"
source "package/freescale-imx/imx-seco/Config.in"
source "package/freescale-imx/imx-vpu-hantro-vc/Config.in"
+source "package/freescale-imx/isp-vvcam-module/Config.in"
if (BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX51 || BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53)
source "package/freescale-imx/gpu-amd-bin-mx51/Config.in"
source "package/freescale-imx/libz160/Config.in"
diff --git a/package/freescale-imx/isp-vvcam-module/Config.in b/package/freescale-imx/isp-vvcam-module/Config.in
new file mode 100644
index 0000000000..d3a96c0d02
--- /dev/null
+++ b/package/freescale-imx/isp-vvcam-module/Config.in
@@ -0,0 +1,8 @@
+comment "bdsdmac_module needs a Linux kernel to be built"
+ depends on !BR2_LINUX_KERNEL
+
+config BR2_PACKAGE_ISP_VVCAM_MODULE
+ bool "ISP-VVCAM Kernel module"
+ depends on BR2_LINUX_KERNEL
+ help
+ Verisilicon ISP that can be found in i.MX processors such as the i.MX 8M Plus.
diff --git a/package/freescale-imx/isp-vvcam-module/isp-vvcam-module.hash b/package/freescale-imx/isp-vvcam-module/isp-vvcam-module.hash
new file mode 100644
index 0000000000..4b2fc15a81
--- /dev/null
+++ b/package/freescale-imx/isp-vvcam-module/isp-vvcam-module.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 e52166a29a7d58b1f7d30639b451eb8f38971903c898c24e8fcc03dbfc7a503f isp-vvcam-module-47588cb88cc75400b5d2c35a17527e99b752d9be-br1.tar.gz
diff --git a/package/freescale-imx/isp-vvcam-module/isp-vvcam-module.mk b/package/freescale-imx/isp-vvcam-module/isp-vvcam-module.mk
new file mode 100644
index 0000000000..652250c65e
--- /dev/null
+++ b/package/freescale-imx/isp-vvcam-module/isp-vvcam-module.mk
@@ -0,0 +1,26 @@
+################################################################################
+#
+# ISP_VVCAM_MODULE
+#
+################################################################################
+
+ISP_VVCAM_MODULE_VERSION = 47588cb88cc75400b5d2c35a17527e99b752d9be
+ISP_VVCAM_MODULE_SITE = https://source.codeaurora.org/external/imx/isp-vvcam
+ISP_VVCAM_MODULE_SITE_METHOD = git
+ISP_VVCAM_MODULE_LICENSE = GPL-2.0
+ISP_VVCAM_MODULE_DEPENDENCIES = linux
+
+define ISP_VVCAM_MODULE_BUILD_CMDS
+ cd $(@D)/vvcam/v4l2; \
+ $(TARGET_MAKE_ENV) $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" \
+ ARCH=$(KERNEL_ARCH) KERNEL_SRC=$(LINUX_DIR)
+endef
+
+define ISP_VVCAM_MODULE_INSTALL_TARGET_CMDS
+ cd $(@D)/vvcam/v4l2; \
+ $(TARGET_MAKE_ENV) $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" \
+ ARCH=$(KERNEL_ARCH) KERNEL_SRC=$(LINUX_DIR) \
+ INSTALL_MOD_PATH=$(TARGET_DIR) modules_install
+endef
+
+$(eval $(generic-package))
--
2.31.1
More information about the buildroot
mailing list