diff mbox series

[2/2] elfutils: Drop obsolete ptest conditional in do_install

Message ID 20240903140945.625408-2-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit 48af648d9855fec70a1b4baba0970876a0b3163d
Headers show
Series [1/2] gettext: Drop obsolete ptest conditional in do_install | expand

Commit Message

Richard Purdie Sept. 3, 2024, 2:09 p.m. UTC
The PTEST_ENABLED conditional is no longer needed since the task is deleted
if ptest isn't enabled.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 .../elfutils/elfutils_0.191.bb                | 70 +++++++++----------
 1 file changed, 34 insertions(+), 36 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/elfutils/elfutils_0.191.bb b/meta/recipes-devtools/elfutils/elfutils_0.191.bb
index 76bd2b3a99c..95364cef975 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.191.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.191.bb
@@ -66,42 +66,40 @@  do_compile_ptest() {
 PTEST_PARALLEL_MAKE = ""
 
 do_install_ptest() {
-	if [ ${PTEST_ENABLED} = "1" ]; then
-		# copy the files which needed by the cases
-		TEST_FILES="strip strip.o addr2line elfcmp objdump readelf size.o nm.o nm elflint elfcompress elfclassify stack unstrip srcfiles"
-		install -d -m 755                       ${D}${PTEST_PATH}/src
-		install -d -m 755                       ${D}${PTEST_PATH}/lib
-		install -d -m 755                       ${D}${PTEST_PATH}/libelf
-		install -d -m 755                       ${D}${PTEST_PATH}/libdw
-		install -d -m 755                       ${D}${PTEST_PATH}/libdwfl
-		install -d -m 755                       ${D}${PTEST_PATH}/libdwelf
-		install -d -m 755                       ${D}${PTEST_PATH}/libasm
-		install -d -m 755                       ${D}${PTEST_PATH}/libcpu
-		install -d -m 755                       ${D}${PTEST_PATH}/libebl
-		for test_file in ${TEST_FILES}; do
-			if [ -f ${B}/src/${test_file} ]; then
-				cp -r ${B}/src/${test_file} ${D}${PTEST_PATH}/src
-			fi
-		done
-		cp ${D}${libdir}/libelf-${PV}.so ${D}${PTEST_PATH}/libelf/libelf.so
-		cp ${D}${libdir}/libdw-${PV}.so ${D}${PTEST_PATH}/libdw/libdw.so
-		cp ${D}${libdir}/libasm-${PV}.so ${D}${PTEST_PATH}/libasm/libasm.so
-		cp ${B}/libcpu/libcpu.a ${D}${PTEST_PATH}/libcpu/
-		cp ${B}/libebl/libebl.a ${D}${PTEST_PATH}/libebl/
-		cp ${B}/lib/libeu.a ${D}${PTEST_PATH}/lib/
-		cp ${S}/libelf/*.h             ${D}${PTEST_PATH}/libelf/
-		cp ${S}/libdw/*.h              ${D}${PTEST_PATH}/libdw/
-		cp ${S}/libdwfl/*.h            ${D}${PTEST_PATH}/libdwfl/
-		cp ${S}/libdwelf/*.h           ${D}${PTEST_PATH}/libdwelf/
-		cp ${S}/libasm/*.h             ${D}${PTEST_PATH}/libasm/
-		cp -r ${S}/tests/                       ${D}${PTEST_PATH}
-		cp -r ${B}/tests/*                      ${D}${PTEST_PATH}/tests
-		cp -r ${B}/config.h                     ${D}${PTEST_PATH}
-		cp -r ${B}/backends                     ${D}${PTEST_PATH}
-		cp -r ${B}/debuginfod                   ${D}${PTEST_PATH}
-		sed -i '/^Makefile:/c Makefile:'        ${D}${PTEST_PATH}/tests/Makefile
-		find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {}
-	fi
+	# copy the files which needed by the cases
+	TEST_FILES="strip strip.o addr2line elfcmp objdump readelf size.o nm.o nm elflint elfcompress elfclassify stack unstrip srcfiles"
+	install -d -m 755                       ${D}${PTEST_PATH}/src
+	install -d -m 755                       ${D}${PTEST_PATH}/lib
+	install -d -m 755                       ${D}${PTEST_PATH}/libelf
+	install -d -m 755                       ${D}${PTEST_PATH}/libdw
+	install -d -m 755                       ${D}${PTEST_PATH}/libdwfl
+	install -d -m 755                       ${D}${PTEST_PATH}/libdwelf
+	install -d -m 755                       ${D}${PTEST_PATH}/libasm
+	install -d -m 755                       ${D}${PTEST_PATH}/libcpu
+	install -d -m 755                       ${D}${PTEST_PATH}/libebl
+	for test_file in ${TEST_FILES}; do
+		if [ -f ${B}/src/${test_file} ]; then
+			cp -r ${B}/src/${test_file} ${D}${PTEST_PATH}/src
+		fi
+	done
+	cp ${D}${libdir}/libelf-${PV}.so ${D}${PTEST_PATH}/libelf/libelf.so
+	cp ${D}${libdir}/libdw-${PV}.so ${D}${PTEST_PATH}/libdw/libdw.so
+	cp ${D}${libdir}/libasm-${PV}.so ${D}${PTEST_PATH}/libasm/libasm.so
+	cp ${B}/libcpu/libcpu.a ${D}${PTEST_PATH}/libcpu/
+	cp ${B}/libebl/libebl.a ${D}${PTEST_PATH}/libebl/
+	cp ${B}/lib/libeu.a ${D}${PTEST_PATH}/lib/
+	cp ${S}/libelf/*.h             ${D}${PTEST_PATH}/libelf/
+	cp ${S}/libdw/*.h              ${D}${PTEST_PATH}/libdw/
+	cp ${S}/libdwfl/*.h            ${D}${PTEST_PATH}/libdwfl/
+	cp ${S}/libdwelf/*.h           ${D}${PTEST_PATH}/libdwelf/
+	cp ${S}/libasm/*.h             ${D}${PTEST_PATH}/libasm/
+	cp -r ${S}/tests/                       ${D}${PTEST_PATH}
+	cp -r ${B}/tests/*                      ${D}${PTEST_PATH}/tests
+	cp -r ${B}/config.h                     ${D}${PTEST_PATH}
+	cp -r ${B}/backends                     ${D}${PTEST_PATH}
+	cp -r ${B}/debuginfod                   ${D}${PTEST_PATH}
+	sed -i '/^Makefile:/c Makefile:'        ${D}${PTEST_PATH}/tests/Makefile
+	find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {}
 }
 
 EXTRA_OEMAKE:class-native = ""