diff options
8 files changed, 352 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-multimedia/vcu/kernel-module-vcu_2023.2.bb b/meta-xilinx-core/recipes-multimedia/vcu/kernel-module-vcu_2023.2.bb new file mode 100644 index 00000000..77dabe19 --- /dev/null +++ b/meta-xilinx-core/recipes-multimedia/vcu/kernel-module-vcu_2023.2.bb | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | SUMMARY = "Linux kernel module for Video Code Unit" | ||
| 2 | DESCRIPTION = "Out-of-tree VCU decoder, encoder and common kernel modules provider for MPSoC EV devices" | ||
| 3 | SECTION = "kernel/modules" | ||
| 4 | LICENSE = "GPL-2.0-only" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=eb723b61539feef013de476e68b5c50a" | ||
| 6 | |||
| 7 | XILINX_VCU_VERSION = "1.0.0" | ||
| 8 | PV = "${XILINX_VCU_VERSION}-xilinx-v${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}+git${SRCPV}" | ||
| 9 | |||
| 10 | S = "${WORKDIR}/git" | ||
| 11 | |||
| 12 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | ||
| 13 | |||
| 14 | BRANCH = "master" | ||
| 15 | REPO = "git://github.com/Xilinx/vcu-modules.git;protocol=https" | ||
| 16 | SRCREV = "9295f18e8a1a1bcb1a5287b3c1093f98bf9e922f" | ||
| 17 | |||
| 18 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 19 | SRC_URI = " \ | ||
| 20 | ${REPO};${BRANCHARG} \ | ||
| 21 | file://99-vcu-enc-dec.rules \ | ||
| 22 | " | ||
| 23 | |||
| 24 | inherit module features_check | ||
| 25 | |||
| 26 | REQUIRED_MACHINE_FEATURES = "vcu" | ||
| 27 | |||
| 28 | EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}" | ||
| 29 | |||
| 30 | RDEPENDS:${PN} = "vcu-firmware" | ||
| 31 | |||
| 32 | KERNEL_MODULE_AUTOLOAD += "dmaproxy" | ||
| 33 | |||
| 34 | do_install:append() { | ||
| 35 | install -d ${D}${sysconfdir}/udev/rules.d | ||
| 36 | install -m 0644 ${WORKDIR}/99-vcu-enc-dec.rules ${D}${sysconfdir}/udev/rules.d/ | ||
| 37 | } | ||
| 38 | |||
| 39 | FILES:${PN} = "${sysconfdir}/udev/rules.d/*" | ||
diff --git a/meta-xilinx-core/recipes-multimedia/vcu/libomxil-xlnx_2023.2.bb b/meta-xilinx-core/recipes-multimedia/vcu/libomxil-xlnx_2023.2.bb new file mode 100644 index 00000000..4e2cd86a --- /dev/null +++ b/meta-xilinx-core/recipes-multimedia/vcu/libomxil-xlnx_2023.2.bb | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | SUMMARY = "OpenMAX Integration layer for VCU" | ||
| 2 | DESCRIPTION = "OMX IL Libraries,test applications and headers for VCU" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5375796c5ae4ee85ea1f2c1603e58509" | ||
| 5 | |||
| 6 | XILINX_VCU_VERSION = "1.0.0" | ||
| 7 | PV = "${XILINX_VCU_VERSION}-xilinx-v${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}+git${SRCPV}" | ||
| 8 | |||
| 9 | BRANCH ?= "master" | ||
| 10 | REPO ?= "git://github.com/Xilinx/vcu-omx-il.git;protocol=https" | ||
| 11 | SRCREV = "59c4131db87b8c2426ea7e304eeb2847f30c4ded" | ||
| 12 | |||
| 13 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 14 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | inherit features_check | ||
| 19 | |||
| 20 | REQUIRED_MACHINE_FEATURES = "vcu" | ||
| 21 | |||
| 22 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 23 | |||
| 24 | DEPENDS = "libvcu-xlnx" | ||
| 25 | RDEPENDS:${PN} = "kernel-module-vcu libvcu-xlnx" | ||
| 26 | |||
| 27 | EXTERNAL_INCLUDE="${STAGING_INCDIR}/vcu-ctrl-sw/include" | ||
| 28 | |||
| 29 | EXTRA_OEMAKE = " \ | ||
| 30 | CC='${CC}' CXX='${CXX} ${CXXFLAGS}' \ | ||
| 31 | EXTERNAL_INCLUDE='${EXTERNAL_INCLUDE}' \ | ||
| 32 | " | ||
| 33 | |||
| 34 | do_install() { | ||
| 35 | install -d ${D}${libdir} | ||
| 36 | install -d ${D}${includedir}/vcu-omx-il | ||
| 37 | |||
| 38 | install -m 0644 ${S}/omx_header/*.h ${D}${includedir}/vcu-omx-il | ||
| 39 | |||
| 40 | install -Dm 0755 ${S}/bin/omx_decoder ${D}/${bindir}/omx_decoder | ||
| 41 | install -Dm 0755 ${S}/bin/omx_encoder ${D}/${bindir}/omx_encoder | ||
| 42 | |||
| 43 | oe_libinstall -C ${S}/bin/ -so libOMX.allegro.core ${D}/${libdir}/ | ||
| 44 | oe_libinstall -C ${S}/bin/ -so libOMX.allegro.video_decoder ${D}/${libdir}/ | ||
| 45 | oe_libinstall -C ${S}/bin/ -so libOMX.allegro.video_encoder ${D}/${libdir}/ | ||
| 46 | } | ||
| 47 | |||
| 48 | # These libraries shouldn't get installed in world builds unless something | ||
| 49 | # explicitly depends upon them. | ||
| 50 | |||
| 51 | EXCLUDE_FROM_WORLD = "1" | ||
diff --git a/meta-xilinx-core/recipes-multimedia/vcu/libvcu-xlnx_2023.2.bb b/meta-xilinx-core/recipes-multimedia/vcu/libvcu-xlnx_2023.2.bb new file mode 100644 index 00000000..b2931886 --- /dev/null +++ b/meta-xilinx-core/recipes-multimedia/vcu/libvcu-xlnx_2023.2.bb | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | SUMMARY = "Control Software for VCU" | ||
| 2 | DESCRIPTION = "Control software libraries, test applications and headers provider for VCU" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5375796c5ae4ee85ea1f2c1603e58509" | ||
| 5 | |||
| 6 | XILINX_VCU_VERSION = "1.0.0" | ||
| 7 | PV = "${XILINX_VCU_VERSION}-xilinx-v${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}+git${SRCPV}" | ||
| 8 | |||
| 9 | BRANCH ?= "master" | ||
| 10 | REPO ?= "git://github.com/Xilinx/vcu-ctrl-sw.git;protocol=https" | ||
| 11 | SRCREV = "83aabb84c26667f7d6aee632654c63e504838061" | ||
| 12 | |||
| 13 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 14 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | inherit features_check | ||
| 19 | |||
| 20 | REQUIRED_MACHINE_FEATURES = "vcu" | ||
| 21 | |||
| 22 | RDEPENDS:${PN} = "kernel-module-vcu" | ||
| 23 | |||
| 24 | EXTRA_OEMAKE = "CC='${CC}' CXX='${CXX} ${CXXFLAGS}'" | ||
| 25 | |||
| 26 | do_install() { | ||
| 27 | install -d ${D}${libdir} | ||
| 28 | install -d ${D}${includedir}/vcu-ctrl-sw/include | ||
| 29 | |||
| 30 | install -Dm 0755 ${S}/bin/ctrlsw_encoder ${D}/${bindir}/ctrlsw_encoder | ||
| 31 | install -Dm 0755 ${S}/bin/ctrlsw_decoder ${D}/${bindir}/ctrlsw_decoder | ||
| 32 | |||
| 33 | oe_runmake install_headers INSTALL_HDR_PATH=${D}${includedir}/vcu-ctrl-sw/include | ||
| 34 | oe_libinstall -C ${S}/bin/ -so liballegro_decode ${D}/${libdir}/ | ||
| 35 | oe_libinstall -C ${S}/bin/ -so liballegro_encode ${D}/${libdir}/ | ||
| 36 | } | ||
| 37 | |||
| 38 | # These libraries shouldn't get installed in world builds unless something | ||
| 39 | # explicitly depends upon them. | ||
| 40 | |||
| 41 | EXCLUDE_FROM_WORLD = "1" | ||
| 42 | |||
| 43 | # Disable buildpaths QA check warnings. | ||
| 44 | INSANE_SKIP:${PN} += "buildpaths" | ||
diff --git a/meta-xilinx-core/recipes-multimedia/vcu/vcu-firmware_2023.2.bb b/meta-xilinx-core/recipes-multimedia/vcu/vcu-firmware_2023.2.bb new file mode 100644 index 00000000..5a4852f8 --- /dev/null +++ b/meta-xilinx-core/recipes-multimedia/vcu/vcu-firmware_2023.2.bb | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | SUMMARY = "Firmware for VCU" | ||
| 2 | DESCRIPTION = "Firmware binaries provider for VCU" | ||
| 3 | LICENSE = "Proprietary" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=6da65299754e921b31f03e9b11d77a74" | ||
| 5 | |||
| 6 | XILINX_VCU_VERSION = "1.0.0" | ||
| 7 | PV = "${XILINX_VCU_VERSION}-xilinx-v${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or ''}+git${SRCPV}" | ||
| 8 | |||
| 9 | S = "${WORKDIR}/git" | ||
| 10 | |||
| 11 | BRANCH ?= "master" | ||
| 12 | REPO ?= "git://github.com/Xilinx/vcu-firmware.git;protocol=https" | ||
| 13 | SRCREV = "c90288595ac9a12ff401de6dfa680b1f9adce5f6" | ||
| 14 | |||
| 15 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 16 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 17 | |||
| 18 | inherit features_check | ||
| 19 | |||
| 20 | REQUIRED_MACHINE_FEATURES = "vcu" | ||
| 21 | |||
| 22 | do_install() { | ||
| 23 | install -Dm 0644 ${S}/${XILINX_VCU_VERSION}/lib/firmware/al5d_b.fw ${D}/lib/firmware/al5d_b.fw | ||
| 24 | install -Dm 0644 ${S}/${XILINX_VCU_VERSION}/lib/firmware/al5d.fw ${D}/lib/firmware/al5d.fw | ||
| 25 | install -Dm 0644 ${S}/${XILINX_VCU_VERSION}/lib/firmware/al5e_b.fw ${D}/lib/firmware/al5e_b.fw | ||
| 26 | install -Dm 0644 ${S}/${XILINX_VCU_VERSION}/lib/firmware/al5e.fw ${D}/lib/firmware/al5e.fw | ||
| 27 | } | ||
| 28 | |||
| 29 | # Inhibit warnings about files being stripped | ||
| 30 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
| 31 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 32 | FILES:${PN} = "/lib/firmware/*" | ||
| 33 | |||
| 34 | # These libraries shouldn't get installed in world builds unless something | ||
| 35 | # explicitly depends upon them. | ||
| 36 | EXCLUDE_FROM_WORLD = "1" | ||
| 37 | |||
| 38 | INSANE_SKIP:${PN} = "ldflags" | ||
diff --git a/meta-xilinx-core/recipes-multimedia/vdu/kernel-module-vdu_2023.2.bb b/meta-xilinx-core/recipes-multimedia/vdu/kernel-module-vdu_2023.2.bb new file mode 100755 index 00000000..a9aff458 --- /dev/null +++ b/meta-xilinx-core/recipes-multimedia/vdu/kernel-module-vdu_2023.2.bb | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | SUMMARY = "Linux kernel module for Video Decode Unit" | ||
| 2 | DESCRIPTION = "Out-of-tree VDU decoder common kernel modules" | ||
| 3 | SECTION = "kernel/modules" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=eb723b61539feef013de476e68b5c50a" | ||
| 6 | |||
| 7 | XILINX_VDU_VERSION = "1.0.0" | ||
| 8 | PV = "${XILINX_VDU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | ||
| 9 | |||
| 10 | S = "${WORKDIR}/git" | ||
| 11 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | ||
| 12 | |||
| 13 | BRANCH ?= "master" | ||
| 14 | REPO ?= "git://github.com/Xilinx/vdu-modules.git;protocol=https" | ||
| 15 | SRCREV ?= "82d06e395c93a1e941b83cccbb6f2e4e6d966f1c" | ||
| 16 | |||
| 17 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 18 | SRC_URI = "${REPO};${BRANCHARG} \ | ||
| 19 | file://99-vdu-enc-dec.rules \ | ||
| 20 | " | ||
| 21 | |||
| 22 | inherit module features_check | ||
| 23 | |||
| 24 | REQUIRED_MACHINE_FEATURES = "vdu" | ||
| 25 | |||
| 26 | EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}" | ||
| 27 | |||
| 28 | RDEPENDS:${PN} = "vdu-firmware" | ||
| 29 | |||
| 30 | COMPATIBLE_MACHINE = "^$" | ||
| 31 | COMPATIBLE_MACHINE:versal-ai-core = "versal-ai-core" | ||
| 32 | COMPATIBLE_MACHINE:versal-ai-edge = "versal-ai-edge" | ||
| 33 | |||
| 34 | PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" | ||
| 35 | |||
| 36 | do_install:append() { | ||
| 37 | install -d ${D}${sysconfdir}/udev/rules.d | ||
| 38 | install -m 0644 ${WORKDIR}/99-vdu-enc-dec.rules ${D}${sysconfdir}/udev/rules.d/ | ||
| 39 | } | ||
| 40 | |||
| 41 | FILES:${PN} = "${sysconfdir}/udev/rules.d/*" | ||
diff --git a/meta-xilinx-core/recipes-multimedia/vdu/libvdu-ctrlsw_2023.2.bb b/meta-xilinx-core/recipes-multimedia/vdu/libvdu-ctrlsw_2023.2.bb new file mode 100755 index 00000000..db7dde27 --- /dev/null +++ b/meta-xilinx-core/recipes-multimedia/vdu/libvdu-ctrlsw_2023.2.bb | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | SUMMARY = "Control Software for VDU" | ||
| 2 | DESCRIPTION = "Control software libraries, test applications and headers provider for VDU" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=aaf483d309243c4596f6373eb9c8325f" | ||
| 5 | |||
| 6 | XILINX_VDU_VERSION = "1.0.0" | ||
| 7 | PV = "${XILINX_VDU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | ||
| 8 | |||
| 9 | inherit autotools features_check | ||
| 10 | |||
| 11 | REQUIRED_MACHINE_FEATURES = "vdu" | ||
| 12 | |||
| 13 | BRANCH ?= "master" | ||
| 14 | REPO ?= "git://github.com/Xilinx/vdu-ctrl-sw.git;protocol=https" | ||
| 15 | SRCREV ?= "7f87371a010c22fb0019abe92c7590cd3c08d13f" | ||
| 16 | |||
| 17 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 18 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/git" | ||
| 21 | |||
| 22 | COMPATIBLE_MACHINE = "^$" | ||
| 23 | COMPATIBLE_MACHINE:versal-ai-core = "versal-ai-core" | ||
| 24 | COMPATIBLE_MACHINE:versal-ai-edge = "versal-ai-edge" | ||
| 25 | |||
| 26 | PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" | ||
| 27 | |||
| 28 | RDEPENDS:${PN} = "kernel-module-vdu" | ||
| 29 | |||
| 30 | do_compile[dirs] = "${S}" | ||
| 31 | do_install[dirs] = "${S}" | ||
| 32 | |||
| 33 | EXTRA_OEMAKE = "CC='${CC}' CXX='${CXX} ${CXXFLAGS}'" | ||
| 34 | EXTRA_OEMAKE +=" INSTALL_HDR_PATH=${D}${includedir}/vdu-ctrl-sw/include INSTALL_PATH=${D}${bindir}" | ||
| 35 | |||
| 36 | do_install:append() { | ||
| 37 | |||
| 38 | oe_libinstall -C ${S}/bin/ -so liballegro_decode ${D}/${libdir}/ | ||
| 39 | } | ||
| 40 | |||
| 41 | # These libraries shouldn't get installed in world builds unless something | ||
| 42 | # explicitly depends upon them. | ||
| 43 | |||
| 44 | EXCLUDE_FROM_WORLD = "1" | ||
diff --git a/meta-xilinx-core/recipes-multimedia/vdu/libvdu-omxil_2023.2.bb b/meta-xilinx-core/recipes-multimedia/vdu/libvdu-omxil_2023.2.bb new file mode 100755 index 00000000..4b140ab0 --- /dev/null +++ b/meta-xilinx-core/recipes-multimedia/vdu/libvdu-omxil_2023.2.bb | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | SUMMARY = "OpenMAX Integration layer for VDU" | ||
| 2 | DESCRIPTION = "OMX IL Libraries,test application and headers for VDU" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=aaf483d309243c4596f6373eb9c8325f" | ||
| 5 | |||
| 6 | XILINX_VDU_VERSION = "1.0.0" | ||
| 7 | PV = "${XILINX_VDU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | ||
| 8 | |||
| 9 | BRANCH ?= "master" | ||
| 10 | REPO ?= "git://github.com/Xilinx/vdu-omx-il.git;protocol=https" | ||
| 11 | SRCREV ?= "811eefac953fd5e098c69cada97a0dd35f5e9015" | ||
| 12 | |||
| 13 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 14 | SRC_URI = "${REPO};${BRANCHARG} \ | ||
| 15 | " | ||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | inherit autotools features_check | ||
| 19 | |||
| 20 | REQUIRED_MACHINE_FEATURES = "vdu" | ||
| 21 | |||
| 22 | COMPATIBLE_MACHINE = "^$" | ||
| 23 | COMPATIBLE_MACHINE:versal-ai-core = "versal-ai-core" | ||
| 24 | COMPATIBLE_MACHINE:versal-ai-edge = "versal-ai-edge" | ||
| 25 | |||
| 26 | PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" | ||
| 27 | |||
| 28 | DEPENDS = "libvdu-ctrlsw" | ||
| 29 | RDEPENDS:${PN} = "kernel-module-vdu libvdu-ctrlsw" | ||
| 30 | |||
| 31 | EXTERNAL_INCLUDE="${STAGING_INCDIR}/vdu-ctrl-sw/include" | ||
| 32 | |||
| 33 | do_compile[dirs] = "${S}" | ||
| 34 | do_install[dirs] = "${S}" | ||
| 35 | |||
| 36 | EXTRA_OEMAKE = " \ | ||
| 37 | CC='${CC}' CXX='${CXX} ${CXXFLAGS}' \ | ||
| 38 | EXTERNAL_INCLUDE='${EXTERNAL_INCLUDE}' \ | ||
| 39 | INSTALL_PATH=${D}${bindir} \ | ||
| 40 | INCLUDE_INST_PATH=${D}${includedir} \ | ||
| 41 | " | ||
| 42 | |||
| 43 | do_install:append() { | ||
| 44 | install -d ${D}${libdir} | ||
| 45 | |||
| 46 | oe_libinstall -C ${S}/bin/ -so libOMX.allegro.core ${D}/${libdir}/ | ||
| 47 | oe_libinstall -C ${S}/bin/ -so libOMX.allegro.video_decoder ${D}/${libdir}/ | ||
| 48 | } | ||
| 49 | |||
| 50 | # These libraries shouldn't get installed in world builds unless something | ||
| 51 | # explicitly depends upon them. | ||
| 52 | |||
| 53 | EXCLUDE_FROM_WORLD = "1" | ||
diff --git a/meta-xilinx-core/recipes-multimedia/vdu/vdu-firmware_2023.2.bb b/meta-xilinx-core/recipes-multimedia/vdu/vdu-firmware_2023.2.bb new file mode 100755 index 00000000..39265a5d --- /dev/null +++ b/meta-xilinx-core/recipes-multimedia/vdu/vdu-firmware_2023.2.bb | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | SUMMARY = "Firmware for VDU" | ||
| 2 | DESCRIPTION = "Firmware binaries provider for VDU" | ||
| 3 | LICENSE = "Proprietary" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=c5784f63397086d836580d8785d1deb9" | ||
| 5 | |||
| 6 | XILINX_VDU_VERSION = "1.0.0" | ||
| 7 | PV = "${XILINX_VDU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | ||
| 8 | |||
| 9 | S = "${WORKDIR}/git" | ||
| 10 | |||
| 11 | inherit autotools features_check | ||
| 12 | |||
| 13 | REQUIRED_MACHINE_FEATURES = "vdu" | ||
| 14 | |||
| 15 | BRANCH ?= "master" | ||
| 16 | REPO ?= "git://github.com/Xilinx/vdu-firmware.git;protocol=https" | ||
| 17 | SRCREV ?= "63fe2fce6e46d5bf03e33300a58a37d8568722ee" | ||
| 18 | |||
| 19 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 20 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 21 | |||
| 22 | COMPATIBLE_MACHINE = "^$" | ||
| 23 | COMPATIBLE_MACHINE:versal-ai-core = "versal-ai-core" | ||
| 24 | COMPATIBLE_MACHINE:versal-ai-edge = "versal-ai-edge" | ||
| 25 | |||
| 26 | PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" | ||
| 27 | EXTRA_OEMAKE +="INSTALL_PATH=${D}/lib/firmware" | ||
| 28 | |||
| 29 | do_compile[noexec] = "1" | ||
| 30 | do_install[dirs] = "${S}" | ||
| 31 | |||
| 32 | # Inhibit warnings about files being stripped | ||
| 33 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
| 34 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 35 | FILES:${PN} = "/lib/firmware/*" | ||
| 36 | |||
| 37 | |||
| 38 | # These libraries shouldn't get installed in world builds unless something | ||
| 39 | # explicitly depends upon them. | ||
| 40 | EXCLUDE_FROM_WORLD = "1" | ||
| 41 | |||
| 42 | INSANE_SKIP:${PN} = "ldflags" | ||
