summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/recipes-bsp/dfx-mgr
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2024-11-21 13:54:05 -0600
committerMark Hatle <mark.hatle@amd.com>2024-11-21 13:54:05 -0600
commit1241013c7bce4262a6128eb4ccb3db410831746d (patch)
treeda79ab94a5b4ae9abf6211d8289a4bf5dbdcde9f /meta-xilinx-core/recipes-bsp/dfx-mgr
parent6e3a214d268c7d75a42a9a329b5621fb5a49a89a (diff)
parent10531c26195f97f9565e9770c21977805e53c46b (diff)
downloadmeta-xilinx-1241013c7bce4262a6128eb4ccb3db410831746d.tar.gz
Merge remote-tracking branch 'origin/scarthgap' into yocto-master
This moves the system to scarthgap. It is known to NOT work with Styhead and master, Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/recipes-bsp/dfx-mgr')
-rw-r--r--meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_1.0.bb2
-rw-r--r--meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2023.1.bb2
-rw-r--r--meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2023.2.bb2
-rw-r--r--meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2024.1.bb2
-rw-r--r--meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2024.2.bb74
5 files changed, 78 insertions, 4 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
index 9e0f07ac..386e1b79 100644
--- 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
@@ -19,7 +19,7 @@ COMPATIBLE_MACHINE:zynqmp = "zynqmp"
19COMPATIBLE_MACHINE:versal = "versal" 19COMPATIBLE_MACHINE:versal = "versal"
20COMPATIBLE_MACHINE:versal-net = "versal-net" 20COMPATIBLE_MACHINE:versal-net = "versal-net"
21 21
22S = "${UNPACKDIR}/git" 22S = "${WORKDIR}/git"
23 23
24inherit cmake update-rc.d systemd 24inherit cmake update-rc.d systemd
25 25
diff --git a/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2023.1.bb b/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2023.1.bb
index 2699a55d..f25201bd 100644
--- a/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2023.1.bb
+++ b/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2023.1.bb
@@ -19,7 +19,7 @@ COMPATIBLE_MACHINE:zynqmp = "zynqmp"
19COMPATIBLE_MACHINE:versal = "versal" 19COMPATIBLE_MACHINE:versal = "versal"
20COMPATIBLE_MACHINE:versal-net = "versal-net" 20COMPATIBLE_MACHINE:versal-net = "versal-net"
21 21
22S = "${UNPACKDIR}/git" 22S = "${WORKDIR}/git"
23 23
24inherit cmake update-rc.d systemd 24inherit cmake update-rc.d systemd
25 25
diff --git a/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2023.2.bb b/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2023.2.bb
index da2f3e26..b55ce8c0 100644
--- a/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2023.2.bb
+++ b/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2023.2.bb
@@ -19,7 +19,7 @@ COMPATIBLE_MACHINE:zynqmp = "zynqmp"
19COMPATIBLE_MACHINE:versal = "versal" 19COMPATIBLE_MACHINE:versal = "versal"
20COMPATIBLE_MACHINE:versal-net = "versal-net" 20COMPATIBLE_MACHINE:versal-net = "versal-net"
21 21
22S = "${UNPACKDIR}/git" 22S = "${WORKDIR}/git"
23 23
24inherit cmake update-rc.d systemd 24inherit cmake update-rc.d systemd
25 25
diff --git a/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2024.1.bb b/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2024.1.bb
index 261156f9..c646228d 100644
--- a/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2024.1.bb
+++ b/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2024.1.bb
@@ -19,7 +19,7 @@ COMPATIBLE_MACHINE:zynqmp = "zynqmp"
19COMPATIBLE_MACHINE:versal = "versal" 19COMPATIBLE_MACHINE:versal = "versal"
20COMPATIBLE_MACHINE:versal-net = "versal-net" 20COMPATIBLE_MACHINE:versal-net = "versal-net"
21 21
22S = "${UNPACKDIR}/git" 22S = "${WORKDIR}/git"
23 23
24inherit cmake update-rc.d systemd 24inherit cmake update-rc.d systemd
25 25
diff --git a/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2024.2.bb b/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2024.2.bb
new file mode 100644
index 00000000..88dec7b8
--- /dev/null
+++ b/meta-xilinx-core/recipes-bsp/dfx-mgr/dfx-mgr_2024.2.bb
@@ -0,0 +1,74 @@
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 = "xlnx_rel_v2024.2"
12SRCREV = "839e8e646c54a63326e36c48a7bd879f5e8efa31"
13SOMAJOR = "2"
14SOMINOR = "0"
15SOVERSION = "${SOMAJOR}.${SOMINOR}"
16
17# Don't allow building for Zynq and Microblaze MACHINE unless it is supported.
18COMPATIBLE_MACHINE = "^$"
19COMPATIBLE_MACHINE:zynqmp = ".*"
20COMPATIBLE_MACHINE:versal = ".*"
21COMPATIBLE_MACHINE:versal-net = ".*"
22
23S = "${WORKDIR}/git"
24
25inherit cmake update-rc.d systemd
26
27DEPENDS += " libwebsockets inotify-tools libdfx zocl libdrm systemd"
28RDEPENDS:${PN} += " freeipmi"
29EXTRA_OECMAKE += " \
30 -DCMAKE_SYSROOT:PATH=${RECIPE_SYSROOT} \
31 "
32
33INITSCRIPT_NAME = "dfx-mgr.sh"
34INITSCRIPT_PARAMS = "start 99 S ."
35
36SYSTEMD_PACKAGES="${PN}"
37SYSTEMD_SERVICE:${PN}="dfx-mgr.service"
38SYSTEMD_AUTO_ENABLE:${PN}="enable"
39
40
41do_install(){
42 install -d ${D}${bindir}
43 install -d ${D}${libdir}
44 install -d ${D}${includedir}
45 install -d ${D}${base_libdir}/firmware/xilinx
46 install -d ${D}${sysconfdir}/dfx-mgrd
47
48 cp ${B}/example/sys/linux/dfx-mgrd-static ${D}${bindir}/dfx-mgrd
49 cp ${B}/example/sys/linux/dfx-mgr-client-static ${D}${bindir}/dfx-mgr-client
50 chrpath -d ${D}${bindir}/dfx-mgrd
51 chrpath -d ${D}${bindir}/dfx-mgr-client
52 install -m 0644 ${S}/src/dfxmgr_client.h ${D}${includedir}
53
54 oe_soinstall ${B}/src/libdfx-mgr.so.${SOVERSION} ${D}${libdir}
55
56 install -m 0755 ${S}/src/daemon.conf ${D}${sysconfdir}/dfx-mgrd/
57
58 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
59 install -d ${D}${sysconfdir}/init.d/
60 install -m 0755 ${S}/src/dfx-mgr.sh ${D}${sysconfdir}/init.d/
61 fi
62
63 install -m 0755 ${S}/src/dfx-mgr.sh ${D}${bindir}
64 install -m 0755 ${S}/src/scripts/xlnx-firmware-detect ${D}${bindir}
65
66 install -d ${D}${systemd_system_unitdir}
67 install -m 0644 ${S}/src/dfx-mgr.service ${D}${systemd_system_unitdir}
68}
69
70PACKAGES =+ "libdfx-mgr"
71
72FILES:${PN} += "${base_libdir}/firmware/xilinx"
73FILES:${PN} += "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','${sysconfdir}/init.d/dfx-mgr.sh', '', d)} ${systemd_system_unitdir}"
74FILES:libdfx-mgr = "${libdir}/libdfx-mgr.so.${SOVERSION} ${libdir}/libdfx-mgr.so.${SOMAJOR}"