diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-09-03 15:08:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-09-04 12:38:44 +0100 |
commit | d75b116aabd7329bc6ac1236e37d9bb4191ce9ec (patch) | |
tree | 0b9e79d14603115af541587a40659ffd6f44c8e9 | |
parent | a57341d6ea3a9d65b0ecf6c1c46abe8a5c7b9207 (diff) | |
download | poky-d75b116aabd7329bc6ac1236e37d9bb4191ce9ec.tar.gz |
elfutils: Drop obsolete ptest conditional in do_install
The PTEST_ENABLED conditional is no longer needed since the task is deleted
if ptest isn't enabled.
(From OE-Core rev: 48af648d9855fec70a1b4baba0970876a0b3163d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.191.bb | 70 |
1 files changed, 34 insertions, 36 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.191.bb b/meta/recipes-devtools/elfutils/elfutils_0.191.bb index 76bd2b3a99..95364cef97 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() { | |||
66 | PTEST_PARALLEL_MAKE = "" | 66 | PTEST_PARALLEL_MAKE = "" |
67 | 67 | ||
68 | do_install_ptest() { | 68 | do_install_ptest() { |
69 | if [ ${PTEST_ENABLED} = "1" ]; then | 69 | # copy the files which needed by the cases |
70 | # copy the files which needed by the cases | 70 | TEST_FILES="strip strip.o addr2line elfcmp objdump readelf size.o nm.o nm elflint elfcompress elfclassify stack unstrip srcfiles" |
71 | TEST_FILES="strip strip.o addr2line elfcmp objdump readelf size.o nm.o nm elflint elfcompress elfclassify stack unstrip srcfiles" | 71 | install -d -m 755 ${D}${PTEST_PATH}/src |
72 | install -d -m 755 ${D}${PTEST_PATH}/src | 72 | install -d -m 755 ${D}${PTEST_PATH}/lib |
73 | install -d -m 755 ${D}${PTEST_PATH}/lib | 73 | install -d -m 755 ${D}${PTEST_PATH}/libelf |
74 | install -d -m 755 ${D}${PTEST_PATH}/libelf | 74 | install -d -m 755 ${D}${PTEST_PATH}/libdw |
75 | install -d -m 755 ${D}${PTEST_PATH}/libdw | 75 | install -d -m 755 ${D}${PTEST_PATH}/libdwfl |
76 | install -d -m 755 ${D}${PTEST_PATH}/libdwfl | 76 | install -d -m 755 ${D}${PTEST_PATH}/libdwelf |
77 | install -d -m 755 ${D}${PTEST_PATH}/libdwelf | 77 | install -d -m 755 ${D}${PTEST_PATH}/libasm |
78 | install -d -m 755 ${D}${PTEST_PATH}/libasm | 78 | install -d -m 755 ${D}${PTEST_PATH}/libcpu |
79 | install -d -m 755 ${D}${PTEST_PATH}/libcpu | 79 | install -d -m 755 ${D}${PTEST_PATH}/libebl |
80 | install -d -m 755 ${D}${PTEST_PATH}/libebl | 80 | for test_file in ${TEST_FILES}; do |
81 | for test_file in ${TEST_FILES}; do | 81 | if [ -f ${B}/src/${test_file} ]; then |
82 | if [ -f ${B}/src/${test_file} ]; then | 82 | cp -r ${B}/src/${test_file} ${D}${PTEST_PATH}/src |
83 | cp -r ${B}/src/${test_file} ${D}${PTEST_PATH}/src | 83 | fi |
84 | fi | 84 | done |
85 | done | 85 | cp ${D}${libdir}/libelf-${PV}.so ${D}${PTEST_PATH}/libelf/libelf.so |
86 | cp ${D}${libdir}/libelf-${PV}.so ${D}${PTEST_PATH}/libelf/libelf.so | 86 | cp ${D}${libdir}/libdw-${PV}.so ${D}${PTEST_PATH}/libdw/libdw.so |
87 | cp ${D}${libdir}/libdw-${PV}.so ${D}${PTEST_PATH}/libdw/libdw.so | 87 | cp ${D}${libdir}/libasm-${PV}.so ${D}${PTEST_PATH}/libasm/libasm.so |
88 | cp ${D}${libdir}/libasm-${PV}.so ${D}${PTEST_PATH}/libasm/libasm.so | 88 | cp ${B}/libcpu/libcpu.a ${D}${PTEST_PATH}/libcpu/ |
89 | cp ${B}/libcpu/libcpu.a ${D}${PTEST_PATH}/libcpu/ | 89 | cp ${B}/libebl/libebl.a ${D}${PTEST_PATH}/libebl/ |
90 | cp ${B}/libebl/libebl.a ${D}${PTEST_PATH}/libebl/ | 90 | cp ${B}/lib/libeu.a ${D}${PTEST_PATH}/lib/ |
91 | cp ${B}/lib/libeu.a ${D}${PTEST_PATH}/lib/ | 91 | cp ${S}/libelf/*.h ${D}${PTEST_PATH}/libelf/ |
92 | cp ${S}/libelf/*.h ${D}${PTEST_PATH}/libelf/ | 92 | cp ${S}/libdw/*.h ${D}${PTEST_PATH}/libdw/ |
93 | cp ${S}/libdw/*.h ${D}${PTEST_PATH}/libdw/ | 93 | cp ${S}/libdwfl/*.h ${D}${PTEST_PATH}/libdwfl/ |
94 | cp ${S}/libdwfl/*.h ${D}${PTEST_PATH}/libdwfl/ | 94 | cp ${S}/libdwelf/*.h ${D}${PTEST_PATH}/libdwelf/ |
95 | cp ${S}/libdwelf/*.h ${D}${PTEST_PATH}/libdwelf/ | 95 | cp ${S}/libasm/*.h ${D}${PTEST_PATH}/libasm/ |
96 | cp ${S}/libasm/*.h ${D}${PTEST_PATH}/libasm/ | 96 | cp -r ${S}/tests/ ${D}${PTEST_PATH} |
97 | cp -r ${S}/tests/ ${D}${PTEST_PATH} | 97 | cp -r ${B}/tests/* ${D}${PTEST_PATH}/tests |
98 | cp -r ${B}/tests/* ${D}${PTEST_PATH}/tests | 98 | cp -r ${B}/config.h ${D}${PTEST_PATH} |
99 | cp -r ${B}/config.h ${D}${PTEST_PATH} | 99 | cp -r ${B}/backends ${D}${PTEST_PATH} |
100 | cp -r ${B}/backends ${D}${PTEST_PATH} | 100 | cp -r ${B}/debuginfod ${D}${PTEST_PATH} |
101 | cp -r ${B}/debuginfod ${D}${PTEST_PATH} | 101 | sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile |
102 | sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile | 102 | find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {} |
103 | find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {} | ||
104 | fi | ||
105 | } | 103 | } |
106 | 104 | ||
107 | EXTRA_OEMAKE:class-native = "" | 105 | EXTRA_OEMAKE:class-native = "" |