summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2023-08-04 09:20:30 -0600
committerMark Hatle <mark.hatle@amd.com>2023-08-08 11:22:17 -0500
commit6e5fff1d387abee216b2d8da035a9cbe65a625a8 (patch)
treecdf8dd9c0717145302c048056454fc1f877e2263
parent6b0ebfcd73fba718344af2aa3081fd6775257bdb (diff)
downloadmeta-xilinx-6e5fff1d387abee216b2d8da035a9cbe65a625a8.tar.gz
libmcdi: Rename the examples path to make it more clear
INSTALL_PATH variable name is imprecise, Hence rename INSTALL_PATH to MCDI_PATH_EXAMPLES. Also use ${datadir} path variable. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Kept the .h files in the -dev package Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-dpdk/recipes-extended/dpdk/libmcdi_0.1.0.bb12
1 files changed, 7 insertions, 5 deletions
diff --git a/meta-dpdk/recipes-extended/dpdk/libmcdi_0.1.0.bb b/meta-dpdk/recipes-extended/dpdk/libmcdi_0.1.0.bb
index 31b3b7a2..5036a8d7 100644
--- a/meta-dpdk/recipes-extended/dpdk/libmcdi_0.1.0.bb
+++ b/meta-dpdk/recipes-extended/dpdk/libmcdi_0.1.0.bb
@@ -12,7 +12,7 @@ S = "${WORKDIR}/git"
12COMPATIBLE_MACHINE = "^$" 12COMPATIBLE_MACHINE = "^$"
13COMPATIBLE_MACHINE:versal-net = "${MACHINE}" 13COMPATIBLE_MACHINE:versal-net = "${MACHINE}"
14 14
15INSTALL_PATH = "${prefix}/share/${PN}/examples" 15MCDI_PATH_EXAMPLES = "${datadir}/${BPN}/examples"
16 16
17do_compile() { 17do_compile() {
18 oe_runmake all CC="${CC}" CROSS_COMPILE="${TARGET_PREFIX}" 18 oe_runmake all CC="${CC}" CROSS_COMPILE="${TARGET_PREFIX}"
@@ -21,9 +21,11 @@ do_compile() {
21do_install() { 21do_install() {
22 oe_runmake install prefix="${prefix}" DESTDIR="${D}" 22 oe_runmake install prefix="${prefix}" DESTDIR="${D}"
23 23
24 install -d ${D}/${INSTALL_PATH} 24 install -d ${D}/${MCDI_PATH_EXAMPLES}
25 install -m 0755 ${B}/example/mcdi_example_app ${D}/${INSTALL_PATH} 25 install -m 0755 ${B}/example/mcdi_example_app ${D}/${MCDI_PATH_EXAMPLES}
26 install -m 0755 ${B}/init/init_app ${D}/${INSTALL_PATH} 26 install -m 0755 ${B}/init/init_app ${D}/${MCDI_PATH_EXAMPLES}
27} 27}
28 28
29FILES:${PN} = "${INSTALL_PATH}/* ${libdir}/*" 29FILES:${PN} += " \
30 ${MCDI_PATH_EXAMPLES}/* \
31 "