diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2024-05-22 20:32:03 -0500 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2024-05-29 07:35:48 -0600 |
| commit | 062b95c17d1e6b8a7e567555143dbfb367bc261b (patch) | |
| tree | 72cad5ece1c01a46122f351ff24d63dc5ddc0360 /meta-xilinx-multimedia | |
| parent | 698e43218d7c7fe5ab6e6667bd815a0f44444657 (diff) | |
| download | meta-xilinx-062b95c17d1e6b8a7e567555143dbfb367bc261b.tar.gz | |
vcu2: Move to new meta-xilinx-multimedia
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-multimedia')
6 files changed, 218 insertions, 0 deletions
diff --git a/meta-xilinx-multimedia/recipes-multimedia/vcu2/files/99-vcu2-codec.rules b/meta-xilinx-multimedia/recipes-multimedia/vcu2/files/99-vcu2-codec.rules new file mode 100644 index 00000000..54ae765d --- /dev/null +++ b/meta-xilinx-multimedia/recipes-multimedia/vcu2/files/99-vcu2-codec.rules | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | # Allegro VCU2 Encode, Decoder module drivers | ||
| 2 | SUBSYSTEM=="allegro_encode_class", KERNEL=="al_e2xx", MODE="0660", GROUP="video" | ||
| 3 | SUBSYSTEM=="allegro_decode_class", KERNEL=="al_d3xx", MODE="0660", GROUP="video" | ||
| 4 | |||
diff --git a/meta-xilinx-multimedia/recipes-multimedia/vcu2/kernel-module-vcu2_2024.1.bb b/meta-xilinx-multimedia/recipes-multimedia/vcu2/kernel-module-vcu2_2024.1.bb new file mode 100644 index 00000000..c6ce6e11 --- /dev/null +++ b/meta-xilinx-multimedia/recipes-multimedia/vcu2/kernel-module-vcu2_2024.1.bb | |||
| @@ -0,0 +1,36 @@ | |||
| 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 | PV .= "+git" | ||
| 8 | |||
| 9 | S = "${WORKDIR}/git" | ||
| 10 | |||
| 11 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | ||
| 12 | |||
| 13 | BRANCH = "xlnx_rel_v2024.1" | ||
| 14 | REPO = "git://github.com/Xilinx/vcu2-modules.git;protocol=https" | ||
| 15 | SRCREV = "28a8d32f22224f8c344b1d73b2f9e30db228b4fc" | ||
| 16 | |||
| 17 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 18 | SRC_URI = " \ | ||
| 19 | ${REPO};${BRANCHARG} \ | ||
| 20 | file://99-vcu2-codec.rules \ | ||
| 21 | " | ||
| 22 | |||
| 23 | inherit module features_check | ||
| 24 | |||
| 25 | REQUIRED_MACHINE_FEATURES = "vcu2" | ||
| 26 | |||
| 27 | EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR} KDIR=${STAGING_KERNEL_BUILDDIR}" | ||
| 28 | |||
| 29 | RDEPENDS:${PN} = "vcu2-firmware" | ||
| 30 | |||
| 31 | do_install:append() { | ||
| 32 | install -d ${D}${sysconfdir}/udev/rules.d | ||
| 33 | install -m 0644 ${WORKDIR}/99-vcu2-codec.rules ${D}${sysconfdir}/udev/rules.d/ | ||
| 34 | } | ||
| 35 | |||
| 36 | FILES:${PN} = "${sysconfdir}/udev/rules.d/*" | ||
diff --git a/meta-xilinx-multimedia/recipes-multimedia/vcu2/libvcu2-ctrlsw_1.0.62-xilinx-v2024.1.bb b/meta-xilinx-multimedia/recipes-multimedia/vcu2/libvcu2-ctrlsw_1.0.62-xilinx-v2024.1.bb new file mode 100644 index 00000000..343b72c9 --- /dev/null +++ b/meta-xilinx-multimedia/recipes-multimedia/vcu2/libvcu2-ctrlsw_1.0.62-xilinx-v2024.1.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | SUMMARY = "VCU2 decoder/encoder API Includes" | ||
| 2 | DESCRIPTION = "Include directory for VCU2 encoder/decoder software API" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=003bf8ee942bb6256905b58e9b1b19c2" | ||
| 5 | |||
| 6 | PV .= "+git" | ||
| 7 | |||
| 8 | BRANCH ?= "xlnx_rel_v2024.1" | ||
| 9 | REPO ?= "git://github.com/Xilinx/vcu2-ctrl-sw.git;protocol=https" | ||
| 10 | SRCREV = "c696fa059781a7a21e8bbf7d9073ce5080155c8a" | ||
| 11 | |||
| 12 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 13 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 14 | |||
| 15 | S = "${WORKDIR}/git" | ||
| 16 | |||
| 17 | inherit features_check | ||
| 18 | |||
| 19 | REQUIRED_MACHINE_FEATURES = "vcu2" | ||
| 20 | |||
| 21 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 22 | |||
| 23 | #RDEPENDS:${PN} = "kernel-module-vcu2" | ||
| 24 | |||
| 25 | EXTRA_OEMAKE = "CC='${CC}' CXX='${CXX} ${CXXFLAGS}'" | ||
| 26 | |||
| 27 | # skip compile (compiled as part of vcu2-app recipe) | ||
| 28 | do_compile[noexec] = '1' | ||
| 29 | |||
| 30 | do_install() { | ||
| 31 | install -d ${D}${includedir}/vcu2-ctrl-sw/ | ||
| 32 | oe_runmake install_headers INSTALL_HDR_PATH=${D}${includedir}/vcu2-ctrl-sw/ | ||
| 33 | } | ||
| 34 | |||
| 35 | FILES:${PN} = "usr/include/vcu2-ctrl-sw/*" | ||
| 36 | |||
| 37 | # These libraries shouldn't get installed in world builds unless something | ||
| 38 | # explicitly depends upon them. | ||
| 39 | |||
| 40 | EXCLUDE_FROM_WORLD = "1" | ||
| 41 | |||
| 42 | # Disable buildpaths QA check warnings. | ||
| 43 | INSANE_SKIP:${PN} += "buildpaths" | ||
diff --git a/meta-xilinx-multimedia/recipes-multimedia/vcu2/libvcu2-omxil_1.1.2-xilinx-v2024.1.bb b/meta-xilinx-multimedia/recipes-multimedia/vcu2/libvcu2-omxil_1.1.2-xilinx-v2024.1.bb new file mode 100644 index 00000000..281044a7 --- /dev/null +++ b/meta-xilinx-multimedia/recipes-multimedia/vcu2/libvcu2-omxil_1.1.2-xilinx-v2024.1.bb | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | SUMMARY = "OpenMAX Integration layer for VCU2" | ||
| 2 | DESCRIPTION = "OMX IL Libraries,test applications and headers for VCU2" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=002a0a92906100955ea6ed02dcd2c2cd" | ||
| 5 | |||
| 6 | # Version from core/core_version.mk | ||
| 7 | PV .= "+git" | ||
| 8 | |||
| 9 | BRANCH ?= "xlnx_rel_v2024.1" | ||
| 10 | REPO ?= "git://github.com/Xilinx/vcu2-omx-il.git;protocol=https" | ||
| 11 | SRCREV = "da9554a071f20d5376bb1e2ef8dfd4551efccf60" | ||
| 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 = "vcu2" | ||
| 21 | |||
| 22 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 23 | |||
| 24 | DEPENDS = "libvcu2-ctrlsw vcu2-app" | ||
| 25 | RDEPENDS:${PN} = "vcu2-app" | ||
| 26 | |||
| 27 | EXTERNAL_INCLUDE="${STAGING_INCDIR}/vcu2-ctrl-sw/" | ||
| 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}/vcu2-omx-il | ||
| 37 | |||
| 38 | install -m 0644 ${S}/omx_header/*.h ${D}${includedir}/vcu2-omx-il | ||
| 39 | |||
| 40 | install -Dm 0755 ${S}/bin/omx_decoder.exe ${D}/${bindir}/omx_decoder | ||
| 41 | install -Dm 0755 ${S}/bin/omx_encoder.exe ${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-multimedia/recipes-multimedia/vcu2/vcu2-app_1.0.62-xilinx-v2024.1.bb b/meta-xilinx-multimedia/recipes-multimedia/vcu2/vcu2-app_1.0.62-xilinx-v2024.1.bb new file mode 100644 index 00000000..8352da3d --- /dev/null +++ b/meta-xilinx-multimedia/recipes-multimedia/vcu2/vcu2-app_1.0.62-xilinx-v2024.1.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | SUMMARY = "VCU2 decoder/encoder API Includes" | ||
| 2 | DESCRIPTION = "Include directory for VCU2 encoder/decoder software API" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=003bf8ee942bb6256905b58e9b1b19c2" | ||
| 5 | |||
| 6 | PV .= "+git" | ||
| 7 | |||
| 8 | BRANCH ?= "xlnx_rel_v2024.1" | ||
| 9 | # vcu2-app has not been populated yet: get sources from vcu2-ctrlsw instead | ||
| 10 | #REPO ?= "git://github.com/Xilinx/vcu2-app.git;protocol=https" | ||
| 11 | #SRCREV = "59c6beb262f09f8e368826a39612844642777924" | ||
| 12 | REPO ?= "git://github.com/Xilinx/vcu2-ctrl-sw.git;protocol=https" | ||
| 13 | SRCREV = "c696fa059781a7a21e8bbf7d9073ce5080155c8a" | ||
| 14 | |||
| 15 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 16 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/git" | ||
| 19 | |||
| 20 | inherit features_check | ||
| 21 | |||
| 22 | REQUIRED_MACHINE_FEATURES = "vcu2" | ||
| 23 | |||
| 24 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 25 | |||
| 26 | #RDEPENDS:${PN} = "kernel-module-vcu2" | ||
| 27 | |||
| 28 | EXTRA_OEMAKE = "V=1 CC='${CC}' CXX='${CXX} ${CXXFLAGS}'" | ||
| 29 | |||
| 30 | do_install() { | ||
| 31 | install -Dm 0755 ${S}/bin/AL_Encoder.exe ${D}/${bindir}/ctrlsw_encoder | ||
| 32 | install -Dm 0755 ${S}/bin/AL_Decoder.exe ${D}/${bindir}/ctrlsw_decoder | ||
| 33 | oe_libinstall -C ${S}/bin/ -so liballegro_decode ${D}/${libdir}/ | ||
| 34 | oe_libinstall -C ${S}/bin/ -so liballegro_encode ${D}/${libdir}/ | ||
| 35 | oe_libinstall -C ${S}/bin/ -so liballegro_app ${D}/${libdir}/ | ||
| 36 | oe_libinstall -C ${S}/bin/ -so liballegro_conv_yuv ${D}/${libdir}/ | ||
| 37 | } | ||
| 38 | |||
| 39 | # These libraries shouldn't get installed in world builds unless something | ||
| 40 | # explicitly depends upon them. | ||
| 41 | |||
| 42 | EXCLUDE_FROM_WORLD = "1" | ||
| 43 | |||
| 44 | # Disable buildpaths QA check warnings. | ||
| 45 | INSANE_SKIP:${PN} += "buildpaths" | ||
diff --git a/meta-xilinx-multimedia/recipes-multimedia/vcu2/vcu2-firmware_20240329-xilinx-v2024.1.bb b/meta-xilinx-multimedia/recipes-multimedia/vcu2/vcu2-firmware_20240329-xilinx-v2024.1.bb new file mode 100644 index 00000000..25029829 --- /dev/null +++ b/meta-xilinx-multimedia/recipes-multimedia/vcu2/vcu2-firmware_20240329-xilinx-v2024.1.bb | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | SUMMARY = "Firmware for VCU2" | ||
| 2 | DESCRIPTION = "Firmware binaries provider for VCU2" | ||
| 3 | LICENSE = "Proprietary" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=323caf712b1e8006fbec07506fe71db0" | ||
| 5 | |||
| 6 | PV .= "+git" | ||
| 7 | |||
| 8 | S = "${WORKDIR}/git" | ||
| 9 | |||
| 10 | BRANCH ?="xlnx_rel_v2024.1" | ||
| 11 | REPO ?= "git://github.com/Xilinx/vcu2-firmware.git;protocol=https" | ||
| 12 | SRCREV = "79e8d90a22eb38de9dc9725bffda57a29bd75f10" | ||
| 13 | |||
| 14 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 15 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 16 | |||
| 17 | inherit features_check | ||
| 18 | |||
| 19 | REQUIRED_MACHINE_FEATURES = "vcu2" | ||
| 20 | |||
| 21 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 22 | |||
| 23 | do_compile[noexec] = "1" | ||
| 24 | |||
| 25 | do_install() { | ||
| 26 | install -Dm 0644 ${S}/decoder_firmware.bin ${D}${nonarch_base_libdir}/firmware/ald3xx.fw | ||
| 27 | install -Dm 0644 ${S}/encoder_firmware.bin ${D}${nonarch_base_libdir}/firmware/ale2xx.fw | ||
| 28 | } | ||
| 29 | |||
| 30 | # Inhibit warnings about files being stripped | ||
| 31 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
| 32 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 33 | FILES:${PN} = "${nonarch_base_libdir}/firmware/*" | ||
| 34 | |||
| 35 | # These libraries shouldn't get installed in world builds unless something | ||
| 36 | # explicitly depends upon them. | ||
| 37 | EXCLUDE_FROM_WORLD = "1" | ||
| 38 | |||
| 39 | INSANE_SKIP:${PN} = "ldflags" | ||
