summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Toomey <john.toomey@amd.com>2023-07-21 16:40:21 +0100
committerMark Hatle <mark.hatle@amd.com>2023-07-31 18:18:33 -0500
commite9f31d49b10c066ba225815cc9e4be2fa804b543 (patch)
tree7afcaf41d2d7efea2e298be85feb19c30d4e5806
parent76acc49c42cfaf0dda6f33744598f573275ba5d6 (diff)
downloadmeta-xilinx-e9f31d49b10c066ba225815cc9e4be2fa804b543.tar.gz
libmcdi: Add new recipe
Build and install the mcdi library components independently from DPDK and remmove these components from the original dpdk recipe. Signed-off-by: John Toomey <john.toomey@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-dpdk/recipes-extended/dpdk/dpdk_22.11.0.bb5
-rw-r--r--meta-dpdk/recipes-extended/dpdk/libmcdi_0.1.0.bb33
2 files changed, 35 insertions, 3 deletions
diff --git a/meta-dpdk/recipes-extended/dpdk/dpdk_22.11.0.bb b/meta-dpdk/recipes-extended/dpdk/dpdk_22.11.0.bb
index a79b0511..48034085 100644
--- a/meta-dpdk/recipes-extended/dpdk/dpdk_22.11.0.bb
+++ b/meta-dpdk/recipes-extended/dpdk/dpdk_22.11.0.bb
@@ -1,7 +1,6 @@
1include dpdk.inc 1include dpdk.inc
2 2
3SRC_URI = "git://github.com/Xilinx-CNS/cns-dpdk-next-sfc;branch=${BRANCH};protocol=https \ 3SRC_URI = "git://github.com/Xilinx-CNS/cns-dpdk-next-sfc.git;branch=${BRANCH};protocol=https"
4"
5 4
6BRANCH = "cdx_22.11" 5BRANCH = "cdx_22.11"
7SRCREV = "e0cfb566341221dd08a5a0d7fdefce5432b41735" 6SRCREV = "e0cfb566341221dd08a5a0d7fdefce5432b41735"
@@ -10,7 +9,7 @@ S = "${WORKDIR}/git"
10# kernel module is provide by dpdk-module recipe, so disable here 9# kernel module is provide by dpdk-module recipe, so disable here
11EXTRA_OEMESON = " \ 10EXTRA_OEMESON = " \
12 -Denable_kmods=false \ 11 -Denable_kmods=false \
13 -Dexamples=cdma_demo,cdx_test,mcdi/mcdi_test,mcdi/mcdi_init \ 12 -Dexamples=cdma_demo,cdx_test \
14" 13"
15 14
16COMPATIBLE_MACHINE = "null" 15COMPATIBLE_MACHINE = "null"
diff --git a/meta-dpdk/recipes-extended/dpdk/libmcdi_0.1.0.bb b/meta-dpdk/recipes-extended/dpdk/libmcdi_0.1.0.bb
new file mode 100644
index 00000000..a154664f
--- /dev/null
+++ b/meta-dpdk/recipes-extended/dpdk/libmcdi_0.1.0.bb
@@ -0,0 +1,33 @@
1DESCRIPTION = "Management Controller Driver Interface library"
2
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=838c366f69b72c5df05c96dff79b35f2"
5
6SRC_URI = "git://github.com/Xilinx-CNS/mcdi-lib.git;branch=${BRANCH};protocol=https"
7BRANCH = "master"
8SRCREV = "00e8422cbfc62c90b3a925b734b6c0caa2481540"
9
10S = "${WORKDIR}/git"
11
12COMPATIBLE_MACHINE = "^$"
13COMPATIBLE_MACHINE:versal-net = "${MACHINE}"
14
15INSTALL_PATH = "${prefix}/share/${PN}/examples"
16
17TARGET_CC_ARCH += "${LDFLAGS}"
18
19do_compile() {
20 oe_runmake all CC="${CC}" CROSS_COMPILE="${TARGET_PREFIX}"
21}
22
23do_install() {
24 install -d ${D}/${libdir}/
25 install -m 0644 ${B}/lib/libmcdi.so.${PV} ${D}/${libdir}/
26 ln -sf ${PN}.so ${D}/${libdir}/${PN}.so.${PV}
27
28 install -d ${D}/${INSTALL_PATH}
29 install -m 0755 ${B}/example/mcdi_example_app ${D}/${INSTALL_PATH}
30 install -m 0755 ${B}/init/init_app ${D}/${INSTALL_PATH}
31}
32
33FILES:${PN} = "${INSTALL_PATH}/* ${libdir}/*"