summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_1.0.bb55
-rw-r--r--meta-xilinx-core/recipes-bsp/libdfx/libdfx_1.0.bb34
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 @@
1SUMMARY = "Xilinx dfx-mgr libraries"
2DESCRIPTION = "Xilinx Runtime User Space Libraries and Binaries"
3
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=d67bcef754e935bf77b6d7051bd62b5e"
6
7REPO ?= "git://github.com/Xilinx/dfx-mgr.git;protocol=https"
8BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
9SRC_URI = "${REPO};${BRANCHARG}"
10
11BRANCH = "master"
12SRCREV = "4e6eef210db4dc0399a70688f17413850012f3a1"
13SOMAJOR = "1"
14SOMINOR = "0"
15SOVERSION = "${SOMAJOR}.${SOMINOR}"
16
17S = "${WORKDIR}/git"
18
19inherit cmake update-rc.d
20
21#DEPENDS += " libwebsockets inotify-tools libdfx xrt zocl libdrm"
22DEPENDS += " libwebsockets inotify-tools libdfx xrt libdrm"
23EXTRA_OECMAKE += " \
24 -DCMAKE_SYSROOT:PATH=${RECIPE_SYSROOT} \
25 "
26INITSCRIPT_NAME = "dfx-mgr.sh"
27INITSCRIPT_PARAMS = "start 99 S ."
28
29do_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
51PACKAGES =+ "libdfx-mgr libdfxgraph"
52
53FILES:${PN} += "${base_libdir}/firmware/xilinx"
54FILES:libdfx-mgr = "${libdir}/libdfx-mgr.so.${SOVERSION} ${libdir}/libdfx-mgr.so.${SOMAJOR}"
55FILES: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 @@
1SUMMARY = "Xilinx libdfx library"
2DESCRIPTION = "Xilinx libdfx Library and headers"
3
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://LICENSE.md;md5=94aba86aec117f003b958a52f019f1a7"
6
7BRANCH ?= "xlnx_rel_v2021.2"
8REPO ?= "git://github.com/Xilinx/libdfx.git;protocol=https"
9BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
10SRC_URI = "${REPO};${BRANCHARG}"
11SRCREV = "f79ff436edc620e1933592822a25561ccb5bd6ec"
12
13COMPATIBLE_MACHINE = "^$"
14COMPATIBLE_MACHINE:zynqmp = "zynqmp"
15COMPATIBLE_MACHINE:versal = "versal"
16
17S = "${WORKDIR}/git"
18
19inherit cmake
20
21RDEPENDS:${PN} = "${PN}-staticdev"
22PACKAGES =+ "${PN}-examples"
23
24do_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
33ALLOW_EMPTY:${PN} = "1"
34ALLOW_EMPTY:${PN}-examples = "1"