aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHe Zhe <zhe.he@windriver.com>2018-01-02 15:55:34 +0800
committerCalifornia Sullivan <california.l.sullivan@intel.com>2018-01-05 12:32:44 -0800
commite20c4f5977132f11c116af79ef649197ac28d9f5 (patch)
tree73a02d692fece1ed11b09e6d272b689aa8260f3e
parentc79ec498acb701fbdf784ba791aeeb42c215c586 (diff)
downloadmeta-dpdk-e20c4f5977132f11c116af79ef649197ac28d9f5.tar.gz
meta-dpdk-e20c4f5977132f11c116af79ef649197ac28d9f5.tar.bz2
meta-dpdk-e20c4f5977132f11c116af79ef649197ac28d9f5.zip
dpdk: Add dpdk-test to include test programs
Install and ship test programs into dpdk-test. Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
-rw-r--r--recipes-extended/dpdk/dpdk.inc22
1 files changed, 21 insertions, 1 deletions
diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index 216293c..37d66b1 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -96,6 +96,11 @@ do_compile () {
oe_runmake EXTRA_LDFLAGS="-L${STAGING_LIBDIR} --hash-style=gnu -fuse-ld=bfd" \
EXTRA_CFLAGS="--sysroot=${STAGING_DIR_HOST} -I${STAGING_INCDIR}" \
CROSS="${TARGET_PREFIX}" O="${S}/examples/$@/"
+
+ cd ${S}/test/
+ oe_runmake EXTRA_LDFLAGS="-L${STAGING_LIBDIR} --hash-style=gnu -fuse-ld=bfd" \
+ EXTRA_CFLAGS="--sysroot=${STAGING_DIR_HOST} -I${STAGING_INCDIR}" \
+ CROSS="${TARGET_PREFIX}" O="${S}/test/$@/"
}
do_install () {
@@ -113,9 +118,20 @@ do_install () {
install -m 755 ${appname} ${D}/${INSTALL_PATH}/examples/`basename ${dirname}`/
done
done
+
+ # Install test
+ for dirname in ${S}/test/app/*
+ do
+ install -m 0755 -d ${D}/${INSTALL_PATH}/test
+
+ for appname in `find ${dirname} -regex ".*test\/app\/[-0-9a-zA-Z0-9/_]*$"`
+ do
+ install -m 755 ${appname} ${D}/${INSTALL_PATH}/test
+ done
+ done
}
-PACKAGES += "${PN}-examples"
+PACKAGES += "${PN}-examples ${PN}-test"
FILES_${PN}-dbg += " \
${INSTALL_PATH}/.debug \
@@ -144,3 +160,7 @@ FILES_${PN} += " ${INSTALL_PATH}/usertools/ \
FILES_${PN}-examples += " \
${INSTALL_PATH}/examples/* \
"
+
+FILES_${PN}-test += " \
+ ${INSTALL_PATH}/test \
+ "