Merge pull request #6806 from SupervisedThinking/up_qa_checks

[le11] libdrm: fix QA issues by conditionally removing test programs
This commit is contained in:
CvH 2022-08-18 17:08:42 +02:00 committed by GitHub
commit 354884ab0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,11 +48,13 @@ listcontains "${GRAPHIC_DRIVERS}" "etnaviv" &&
post_makeinstall_target() {
# Remove all test programs installed by install-test-programs=true except modetest
# Do not "not use" the ninja install and replace this with a simple "cp modetest"
# as ninja strips the unnecessary build rpath during the install.
safe_remove ${INSTALL}/usr/bin/amdgpu_stress
safe_remove ${INSTALL}/usr/bin/drmdevice
safe_remove ${INSTALL}/usr/bin/modeprint
safe_remove ${INSTALL}/usr/bin/proptest
safe_remove ${INSTALL}/usr/bin/vbltest
for PKG_LIBDRM_TEST in \
drmdevice modeprint proptest vbltest
do
safe_remove ${INSTALL}/usr/bin/${PKG_LIBDRM_TEST}
done
if listcontains "${GRAPHIC_DRIVERS}" "radeonsi"; then
safe_remove ${INSTALL}/usr/bin/amdgpu_stress
fi
}