diff options
| -rw-r--r-- | meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_1.0.bb | 55 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-bsp/libdfx/libdfx_1.0.bb | 34 |
2 files changed, 89 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_1.0.bb b/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_1.0.bb new file mode 100644 index 00000000..7f77fd38 --- /dev/null +++ b/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_1.0.bb | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | SUMMARY = "Xilinx dfx-mgr libraries" | ||
| 2 | DESCRIPTION = "Xilinx Runtime User Space Libraries and Binaries" | ||
| 3 | |||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d67bcef754e935bf77b6d7051bd62b5e" | ||
| 6 | |||
| 7 | REPO ?= "git://github.com/Xilinx/dfx-mgr.git;protocol=https" | ||
| 8 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 9 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 10 | |||
| 11 | BRANCH = "master" | ||
| 12 | SRCREV = "4e6eef210db4dc0399a70688f17413850012f3a1" | ||
| 13 | SOMAJOR = "1" | ||
| 14 | SOMINOR = "0" | ||
| 15 | SOVERSION = "${SOMAJOR}.${SOMINOR}" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/git" | ||
| 18 | |||
| 19 | inherit cmake update-rc.d | ||
| 20 | |||
| 21 | #DEPENDS += " libwebsockets inotify-tools libdfx xrt zocl libdrm" | ||
| 22 | DEPENDS += " libwebsockets inotify-tools libdfx xrt libdrm" | ||
| 23 | EXTRA_OECMAKE += " \ | ||
| 24 | -DCMAKE_SYSROOT:PATH=${RECIPE_SYSROOT} \ | ||
| 25 | " | ||
| 26 | INITSCRIPT_NAME = "dfx-mgr.sh" | ||
| 27 | INITSCRIPT_PARAMS = "start 99 S ." | ||
| 28 | |||
| 29 | do_install(){ | ||
| 30 | install -d ${D}${bindir} | ||
| 31 | install -d ${D}${libdir} | ||
| 32 | install -d ${D}${includedir} | ||
| 33 | install -d ${D}${sysconfdir}/init.d/ | ||
| 34 | install -d ${D}${base_libdir}/firmware/xilinx | ||
| 35 | install -d ${D}${sysconfdir}/dfx-mgrd | ||
| 36 | |||
| 37 | cp ${B}/example/sys/linux/dfx-mgrd-static ${D}${bindir}/dfx-mgrd | ||
| 38 | cp ${B}/example/sys/linux/dfx-mgr-client-static ${D}${bindir}/dfx-mgr-client | ||
| 39 | chrpath -d ${D}${bindir}/dfx-mgrd | ||
| 40 | chrpath -d ${D}${bindir}/dfx-mgr-client | ||
| 41 | install -m 0755 ${S}/src/dfx-mgr.sh ${D}${sysconfdir}/init.d/ | ||
| 42 | install -m 0755 ${S}/src/daemon.conf ${D}${sysconfdir}/dfx-mgrd/ | ||
| 43 | install -m 0644 ${S}/src/dfxmgr_client.h ${D}${includedir} | ||
| 44 | |||
| 45 | oe_soinstall ${B}/src/libdfx-mgr.so.${SOVERSION} ${D}${libdir} | ||
| 46 | |||
| 47 | install -m 0644 ${S}/opendfx-graph/include/graph_api.h ${D}${includedir} | ||
| 48 | oe_soinstall ${B}/opendfx-graph/libdfxgraph.so.${SOVERSION} ${D}${libdir} | ||
| 49 | } | ||
| 50 | |||
| 51 | PACKAGES =+ "libdfx-mgr libdfxgraph" | ||
| 52 | |||
| 53 | FILES:${PN} += "${base_libdir}/firmware/xilinx" | ||
| 54 | FILES:libdfx-mgr = "${libdir}/libdfx-mgr.so.${SOVERSION} ${libdir}/libdfx-mgr.so.${SOMAJOR}" | ||
| 55 | FILES:libdfxgraph = "${libdir}/libdfxgraph.so.${SOVERSION} ${libdir}/libdfxgraph.so.${SOMAJOR}" | ||
diff --git a/meta-xilinx-core/recipes-bsp/libdfx/libdfx_1.0.bb b/meta-xilinx-core/recipes-bsp/libdfx/libdfx_1.0.bb new file mode 100644 index 00000000..1731c630 --- /dev/null +++ b/meta-xilinx-core/recipes-bsp/libdfx/libdfx_1.0.bb | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | SUMMARY = "Xilinx libdfx library" | ||
| 2 | DESCRIPTION = "Xilinx libdfx Library and headers" | ||
| 3 | |||
| 4 | LICENSE = "GPLv2" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=94aba86aec117f003b958a52f019f1a7" | ||
| 6 | |||
| 7 | BRANCH ?= "xlnx_rel_v2021.2" | ||
| 8 | REPO ?= "git://github.com/Xilinx/libdfx.git;protocol=https" | ||
| 9 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
| 10 | SRC_URI = "${REPO};${BRANCHARG}" | ||
| 11 | SRCREV = "f79ff436edc620e1933592822a25561ccb5bd6ec" | ||
| 12 | |||
| 13 | COMPATIBLE_MACHINE = "^$" | ||
| 14 | COMPATIBLE_MACHINE:zynqmp = "zynqmp" | ||
| 15 | COMPATIBLE_MACHINE:versal = "versal" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/git" | ||
| 18 | |||
| 19 | inherit cmake | ||
| 20 | |||
| 21 | RDEPENDS:${PN} = "${PN}-staticdev" | ||
| 22 | PACKAGES =+ "${PN}-examples" | ||
| 23 | |||
| 24 | do_install () { | ||
| 25 | install -d ${D}${libdir} | ||
| 26 | install -d ${D}${includedir} | ||
| 27 | install -d ${D}${bindir} | ||
| 28 | install -m 0644 ${B}/src/libdfx.a ${D}${libdir} | ||
| 29 | install -m 0644 ${B}/include/libdfx.h ${D}${includedir} | ||
| 30 | install -m 0755 ${B}/apps/dfx_app ${D}${bindir} | ||
| 31 | } | ||
| 32 | |||
| 33 | ALLOW_EMPTY:${PN} = "1" | ||
| 34 | ALLOW_EMPTY:${PN}-examples = "1" | ||
