diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-11-21 13:54:05 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-11-21 13:54:05 -0600 |
commit | 1241013c7bce4262a6128eb4ccb3db410831746d (patch) | |
tree | da79ab94a5b4ae9abf6211d8289a4bf5dbdcde9f /meta-xilinx-core/recipes-bsp/dfx-mgr | |
parent | 6e3a214d268c7d75a42a9a329b5621fb5a49a89a (diff) | |
parent | 10531c26195f97f9565e9770c21977805e53c46b (diff) | |
download | meta-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')
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" | |||
19 | COMPATIBLE_MACHINE:versal = "versal" | 19 | COMPATIBLE_MACHINE:versal = "versal" |
20 | COMPATIBLE_MACHINE:versal-net = "versal-net" | 20 | COMPATIBLE_MACHINE:versal-net = "versal-net" |
21 | 21 | ||
22 | S = "${UNPACKDIR}/git" | 22 | S = "${WORKDIR}/git" |
23 | 23 | ||
24 | inherit cmake update-rc.d systemd | 24 | inherit 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" | |||
19 | COMPATIBLE_MACHINE:versal = "versal" | 19 | COMPATIBLE_MACHINE:versal = "versal" |
20 | COMPATIBLE_MACHINE:versal-net = "versal-net" | 20 | COMPATIBLE_MACHINE:versal-net = "versal-net" |
21 | 21 | ||
22 | S = "${UNPACKDIR}/git" | 22 | S = "${WORKDIR}/git" |
23 | 23 | ||
24 | inherit cmake update-rc.d systemd | 24 | inherit 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" | |||
19 | COMPATIBLE_MACHINE:versal = "versal" | 19 | COMPATIBLE_MACHINE:versal = "versal" |
20 | COMPATIBLE_MACHINE:versal-net = "versal-net" | 20 | COMPATIBLE_MACHINE:versal-net = "versal-net" |
21 | 21 | ||
22 | S = "${UNPACKDIR}/git" | 22 | S = "${WORKDIR}/git" |
23 | 23 | ||
24 | inherit cmake update-rc.d systemd | 24 | inherit 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" | |||
19 | COMPATIBLE_MACHINE:versal = "versal" | 19 | COMPATIBLE_MACHINE:versal = "versal" |
20 | COMPATIBLE_MACHINE:versal-net = "versal-net" | 20 | COMPATIBLE_MACHINE:versal-net = "versal-net" |
21 | 21 | ||
22 | S = "${UNPACKDIR}/git" | 22 | S = "${WORKDIR}/git" |
23 | 23 | ||
24 | inherit cmake update-rc.d systemd | 24 | inherit 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 @@ | |||
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 = "xlnx_rel_v2024.2" | ||
12 | SRCREV = "839e8e646c54a63326e36c48a7bd879f5e8efa31" | ||
13 | SOMAJOR = "2" | ||
14 | SOMINOR = "0" | ||
15 | SOVERSION = "${SOMAJOR}.${SOMINOR}" | ||
16 | |||
17 | # Don't allow building for Zynq and Microblaze MACHINE unless it is supported. | ||
18 | COMPATIBLE_MACHINE = "^$" | ||
19 | COMPATIBLE_MACHINE:zynqmp = ".*" | ||
20 | COMPATIBLE_MACHINE:versal = ".*" | ||
21 | COMPATIBLE_MACHINE:versal-net = ".*" | ||
22 | |||
23 | S = "${WORKDIR}/git" | ||
24 | |||
25 | inherit cmake update-rc.d systemd | ||
26 | |||
27 | DEPENDS += " libwebsockets inotify-tools libdfx zocl libdrm systemd" | ||
28 | RDEPENDS:${PN} += " freeipmi" | ||
29 | EXTRA_OECMAKE += " \ | ||
30 | -DCMAKE_SYSROOT:PATH=${RECIPE_SYSROOT} \ | ||
31 | " | ||
32 | |||
33 | INITSCRIPT_NAME = "dfx-mgr.sh" | ||
34 | INITSCRIPT_PARAMS = "start 99 S ." | ||
35 | |||
36 | SYSTEMD_PACKAGES="${PN}" | ||
37 | SYSTEMD_SERVICE:${PN}="dfx-mgr.service" | ||
38 | SYSTEMD_AUTO_ENABLE:${PN}="enable" | ||
39 | |||
40 | |||
41 | do_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 | |||
70 | PACKAGES =+ "libdfx-mgr" | ||
71 | |||
72 | FILES:${PN} += "${base_libdir}/firmware/xilinx" | ||
73 | FILES:${PN} += "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','${sysconfdir}/init.d/dfx-mgr.sh', '', d)} ${systemd_system_unitdir}" | ||
74 | FILES:libdfx-mgr = "${libdir}/libdfx-mgr.so.${SOVERSION} ${libdir}/libdfx-mgr.so.${SOMAJOR}" | ||