From d849b6449f0eea25a3d44aaad76b33d5c27c42d5 Mon Sep 17 00:00:00 2001 From: Yeoh Ee Peng Date: Thu, 26 Mar 2020 16:08:08 +0800 Subject: recipes-support/libipt: Enable test package Enable libipt test package: - include ptdump, pttc - include sample test files for pttc Signed-off-by: Yeoh Ee Peng Signed-off-by: Anuj Mittal --- recipes-support/libipt/libipt_2.0.1.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/recipes-support/libipt/libipt_2.0.1.bb b/recipes-support/libipt/libipt_2.0.1.bb index 1b3e1e64..68f6d5c5 100644 --- a/recipes-support/libipt/libipt_2.0.1.bb +++ b/recipes-support/libipt/libipt_2.0.1.bb @@ -14,3 +14,19 @@ S = "${WORKDIR}/git" SRC_URI = "git://github.com/intel/libipt.git;protocol=https;branch=stable/v2.0" SRCREV = "916d777123bf60d323890557347570e5e19dfa12" + +EXTRA_OECMAKE += " \ + -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" -- cgit v1.2.3-54-g00ecf