Enable libipt test package:
 - include unit test, ptdump, pttc
 - include sample test files for pttc

Signed-off-by: Yeoh Ee Peng <[email protected]>
---
 recipes-support/libipt/libipt_2.0.1.bb | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/recipes-support/libipt/libipt_2.0.1.bb 
b/recipes-support/libipt/libipt_2.0.1.bb
index 1b3e1e6..2712406 100644
--- a/recipes-support/libipt/libipt_2.0.1.bb
+++ b/recipes-support/libipt/libipt_2.0.1.bb
@@ -14,3 +14,20 @@ S = "${WORKDIR}/git"
 SRC_URI = "git://github.com/intel/libipt.git;protocol=https;branch=stable/v2.0"
 
 SRCREV = "916d777123bf60d323890557347570e5e19dfa12"
+
+EXTRA_OECMAKE += " \
+                  -DPTUNIT=ON \
+                  -DPTDUMP=ON  \
+                  -DPTTC=ON \
+                  "
+
+do_install_append() {
+    install -d ${D}${bindir}/libipt
+    install -d ${D}${bindir}/libipt/tests
+
+    cp -r ${B}/bin/* ${D}${bindir}/libipt/
+    cp -r ${WORKDIR}/git/test/src/* ${D}${bindir}/libipt/tests
+}
+
+FILES_${PN}-test = "${bindir}"
+PACKAGES =+ "${PN}-test"
-- 
2.7.4

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#6441): 
https://lists.yoctoproject.org/g/meta-intel/message/6441
Mute This Topic: https://lists.yoctoproject.org/mt/72536386/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to