Skip to contentSkip to conversation

kernel: Prevent from installing so files into source dir

PATCH In review Yang Shi 2 participants 2 messages Aug 19, 2014 – Aug 20, 2014

lore
Share & tools
lore

Yang Shi

author
#0 lore raw

PATCH v3 1/1 kernel: Prevent from installing so files into source dir

vdso build could generate so files, avoid installing such so files into kernel source dir, otherwise the below package QA error might be hit:

ERROR: QA Issue: File '/usr/src/kernel/arch/x86/vdso/vdso64.so' from linux-yocto was already stripped, this will prevent future debugging! [already-stripped]

---
 meta/classes/kernel.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +1 -1
index 819c302..435b6f0 100644
@@ -253,7 +253,7 @@ kernel_do_install() {
 	# dir. This ensures the original Makefiles are used and not the
 	# redirecting Makefiles in the build directory.
 	#
-	find . -depth -not -name "*.cmd" -not -name "*.o" -not -name "*.so.dbg" -not -path "./Documentation*" -not -path "./source*" -not -path "./.*" -print0 | cpio --null -pdlu $kerneldir
+	find . -depth -not -name "*.cmd" -not -name "*.o" -not -name "*.so.dbg" -not -name "*.so" -not -path "./Documentation*" -not -path "./source*" -not -path "./.*" -print0 | cpio --null -pdlu $kerneldir
 	cp .config $kerneldir
 	if [ "${S}" != "${B}" ]; then
 		pwd="$PWD"
Signature · 1 line
2.0.2
Acked-by on v3 1/1
#1 lore raw
Quoted 6 lines · Yang Shi

vdso build could generate so files, avoid installing such so files into kernel source dir, otherwise the below package QA error might be hit:

ERROR: QA Issue: File '/usr/src/kernel/arch/x86/vdso/vdso64.so' from linux-yocto was already stripped, this will prevent future debugging! [already-stripped]

Quoted 20 lines
---
  meta/classes/kernel.bbclass | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +1 -1
index 819c302..435b6f0 100644
@@ -253,7 +253,7 @@ kernel_do_install() {
  	# dir. This ensures the original Makefiles are used and not the
  	# redirecting Makefiles in the build directory.
  	#
-	find . -depth -not -name "*.cmd" -not -name "*.o" -not -name "*.so.dbg" -not -path "./Documentation*" -not -path "./source*" -not -path "./.*" -print0 | cpio --null -pdlu $kerneldir
+	find . -depth -not -name "*.cmd" -not -name "*.o" -not -name "*.so.dbg" -not -name "*.so" -not -path "./Documentation*" -not -path "./source*" -not -path "./.*" -print0 | cpio --null -pdlu $kerneldir
  	cp .config $kerneldir
  	if [ "${S}" != "${B}" ]; then
  		pwd="$PWD"