forked from Xilinx/XRT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding vdu kernel module/firmware/library to apu (Xilinx#6884)
* adding vdu kernel module to apu * cleaning up * stopped calling modprobe f vdu modules
- Loading branch information
1 parent
6bbd1c9
commit 8c3c7df
Showing
6 changed files
with
153 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# When updating Petalinux build please file a SH ticket to retain the build | ||
# https://jira.xilinx.com/secure/CreateIssue!default.jspa | ||
PETALINUX="/proj/petalinux/2022.2/petalinux-v2022.2_06081049/tool/petalinux-v2022.2-final" | ||
PETALINUX="/proj/petalinux/2022.2/petalinux-v2022.2_07291250/tool/petalinux-v2022.2-final" |
30 changes: 30 additions & 0 deletions
30
src/runtime_src/tools/scripts/apu_recipes/kernel-module-vdu.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
SUMMARY = "Linux kernel module for Video Decode Unit" | ||
DESCRIPTION = "Out-of-tree VDU decoder common kernel modules provider for Telluride" | ||
SECTION = "kernel/modules" | ||
LICENSE = "GPLv2" | ||
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=eb723b61539feef013de476e68b5c50a" | ||
|
||
XILINX_VDU_VERSION = "1.0.0" | ||
PV = "${XILINX_VDU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
BRANCH ?= "master-vnc" | ||
REPO ?= "git://gitenterprise.xilinx.com/xilinx-vcu/vdu-modules.git;protocol=https" | ||
SRCREV ?= "${AUTOREV}" | ||
|
||
BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
SRC_URI = "${REPO};${BRANCHARG}" | ||
|
||
inherit module | ||
|
||
EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}" | ||
|
||
RDEPENDS:${PN} = "vdu-firmware" | ||
|
||
COMPATIBLE_MACHINE = "^$" | ||
COMPATIBLE_MACHINE:versal = "versal" | ||
|
||
PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" | ||
|
||
KERNEL_MODULE_AUTOLOAD += "dmaproxy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
SUMMARY = "Control Software for VDU" | ||
DESCRIPTION = "Control software libraries, test applications and headers provider for VDU" | ||
LICENSE = "Proprietary" | ||
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=4c17252c6e9cea63b97af29362d9886a" | ||
|
||
XILINX_VDU_VERSION = "1.0.0" | ||
PV = "${XILINX_VDU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | ||
|
||
BRANCH ?= "master-vnc" | ||
REPO ?= "git://gitenterprise.xilinx.com/xilinx-vcu/vdu-ctrl-sw.git;protocol=https" | ||
SRCREV ?= "${AUTOREV}" | ||
|
||
BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
SRC_URI = "${REPO};${BRANCHARG}" | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
COMPATIBLE_MACHINE = "^$" | ||
COMPATIBLE_MACHINE:versal = "versal" | ||
|
||
PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" | ||
|
||
RDEPENDS:${PN} = "kernel-module-vdu" | ||
|
||
EXTRA_OEMAKE = "CC='${CC}' CXX='${CXX} ${CXXFLAGS}'" | ||
|
||
do_install() { | ||
install -d ${D}${libdir} | ||
install -d ${D}${includedir}/allegro-vdu-ctrl-sw/include | ||
|
||
install -Dm 0755 ${S}/bin/AL_Decoder.exe ${D}/${bindir}/AL_Decoder.exe | ||
|
||
oe_runmake install_headers INSTALL_HDR_PATH=${D}${includedir}/allegro-vdu-ctrl-sw/include | ||
oe_libinstall -C ${S}/bin/ -so liballegro_decode ${D}/${libdir}/ | ||
} | ||
|
||
# These libraries shouldn't get installed in world builds unless something | ||
# explicitly depends upon them. | ||
|
||
EXCLUDE_FROM_WORLD = "1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
SUMMARY = "Firmware for VDU" | ||
DESCRIPTION = "Firmware binaries provider for VDU" | ||
LICENSE = "Proprietary" | ||
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=4c17252c6e9cea63b97af29362d9886a" | ||
|
||
XILINX_VDU_VERSION = "1.0.0" | ||
PV = "${XILINX_VDU_VERSION}-xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
BRANCH ?= "master-vnc" | ||
REPO ?= "git://gitenterprise.xilinx.com/xilinx-vcu/vdu-firmware.git;protocol=https" | ||
SRCREV ?= "${AUTOREV}" | ||
|
||
BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
SRC_URI = "${REPO};${BRANCHARG}" | ||
|
||
COMPATIBLE_MACHINE = "^$" | ||
COMPATIBLE_MACHINE:versal = "versal" | ||
|
||
PACKAGE_ARCH = "${SOC_FAMILY_ARCH}" | ||
|
||
do_install() { | ||
install -Dm 0644 ${S}/${XILINX_VDU_VERSION}/lib/firmware/al5d_b.fw ${D}/lib/firmware/al5d_b.fw | ||
install -Dm 0644 ${S}/${XILINX_VDU_VERSION}/lib/firmware/al5d.fw ${D}/lib/firmware/al5d.fw | ||
} | ||
|
||
# Inhibit warnings about files being stripped | ||
INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
INHIBIT_PACKAGE_STRIP = "1" | ||
FILES:${PN} = "/lib/firmware/*" | ||
|
||
# These libraries shouldn't get installed in world builds unless something | ||
# explicitly depends upon them. | ||
EXCLUDE_FROM_WORLD = "1" | ||
|
||
INSANE_SKIP:${PN} = "ldflags" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters