diff options
author | John Toomey <john.toomey@amd.com> | 2023-07-21 16:40:21 +0100 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-07-31 18:18:33 -0500 |
commit | e9f31d49b10c066ba225815cc9e4be2fa804b543 (patch) | |
tree | 7afcaf41d2d7efea2e298be85feb19c30d4e5806 | |
parent | 76acc49c42cfaf0dda6f33744598f573275ba5d6 (diff) | |
download | meta-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.bb | 5 | ||||
-rw-r--r-- | meta-dpdk/recipes-extended/dpdk/libmcdi_0.1.0.bb | 33 |
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 @@ | |||
1 | include dpdk.inc | 1 | include dpdk.inc |
2 | 2 | ||
3 | SRC_URI = "git://github.com/Xilinx-CNS/cns-dpdk-next-sfc;branch=${BRANCH};protocol=https \ | 3 | SRC_URI = "git://github.com/Xilinx-CNS/cns-dpdk-next-sfc.git;branch=${BRANCH};protocol=https" |
4 | " | ||
5 | 4 | ||
6 | BRANCH = "cdx_22.11" | 5 | BRANCH = "cdx_22.11" |
7 | SRCREV = "e0cfb566341221dd08a5a0d7fdefce5432b41735" | 6 | SRCREV = "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 |
11 | EXTRA_OEMESON = " \ | 10 | EXTRA_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 | ||
16 | COMPATIBLE_MACHINE = "null" | 15 | COMPATIBLE_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 @@ | |||
1 | DESCRIPTION = "Management Controller Driver Interface library" | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=838c366f69b72c5df05c96dff79b35f2" | ||
5 | |||
6 | SRC_URI = "git://github.com/Xilinx-CNS/mcdi-lib.git;branch=${BRANCH};protocol=https" | ||
7 | BRANCH = "master" | ||
8 | SRCREV = "00e8422cbfc62c90b3a925b734b6c0caa2481540" | ||
9 | |||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | COMPATIBLE_MACHINE = "^$" | ||
13 | COMPATIBLE_MACHINE:versal-net = "${MACHINE}" | ||
14 | |||
15 | INSTALL_PATH = "${prefix}/share/${PN}/examples" | ||
16 | |||
17 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
18 | |||
19 | do_compile() { | ||
20 | oe_runmake all CC="${CC}" CROSS_COMPILE="${TARGET_PREFIX}" | ||
21 | } | ||
22 | |||
23 | do_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 | |||
33 | FILES:${PN} = "${INSTALL_PATH}/* ${libdir}/*" | ||