From 7b7d912e7a55d29832492726b909ba46f8de2f77 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 12 Aug 2025 17:05:47 -0700 Subject: [PATCH] oprofile: Adjust ptests for UNPACKDIR changes Location of S have moved under UNPACKDIR and this needs to reflect in ptest install structure as some of tests access the sourcedirs relative to itself during run, these locations are built into tests Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb b/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb index 45f70aa381..38bb957430 100644 --- a/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb +++ b/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb @@ -59,18 +59,18 @@ do_install_ptest() { find ${tooltest} -perm /u=x -type f| cpio -pvdu ${D}${PTEST_PATH} done - install -d ${D}${PTEST_PATH}/../${BP}/events ${D}${PTEST_PATH}/../${BP}/libutil++/tests + install -d ${D}${PTEST_PATH}/../sources/${BP}/events ${D}${PTEST_PATH}/../sources/${BP}/libutil++/tests # needed by libregex regex_test cp libregex/stl.pat ${D}${PTEST_PATH}/libregex cp libregex/tests/mangled-name ${D}${PTEST_PATH}/libregex/tests # needed by litutil++ file_manip_tests cp ${S}/libutil++/tests/file_manip_tests.cpp \ - libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/../${BP}/libutil++/tests + libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/../sources/${BP}/libutil++/tests cp ${S}/libutil++/tests/file_manip_tests.cpp \ libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/libutil++/tests # needed by some libop tests - cp -R --no-dereference --preserve=mode,links -v ${S}/events ${D}${PTEST_PATH}/../${BP} + cp -R --no-dereference --preserve=mode,links -v ${S}/events ${D}${PTEST_PATH}/../sources/${BP} } RDEPENDS:${PN} = "binutils-symlinks" @@ -78,4 +78,4 @@ RDEPENDS:${PN} = "binutils-symlinks" FILES:${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}" FILES:${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la" FILES:${PN}-staticdev += "${libdir}/${BPN}/lib*.a" -FILES:${PN}-ptest += "${libdir}/${BPN}/${BP}" +FILES:${PN}-ptest += "${libdir} ${libdir}/${BPN}/sources"