kernel: Prevent from installing so files into source dir
PATCH 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.
--- meta/classes/kernel.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +1 -1
@@ -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
Quoted 2 lines · Yang Shi
vdso build could generate so files, avoid installing such so files into kernel source dir.
Looks good. I never did hit this myself, but this will cover my .so.dbg case, and the non debug variant.
That being said, you mentioned that we get a QA error on the .so file (about it being stripped) .. that would be useful to have captured in this commit log.
Bruce
Quoted 20 lines
Signed-off-by Yang Shi <[email protected]>--- meta/classes/kernel.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/classes/kernel.bbclass +1
-1@@ -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"
Quoted 10 lines · Bruce Ashfield
Quoted 2 lines · Yang Shi
vdso build could generate so files, avoid installing such so files into kernel source dir.
Looks good. I never did hit this myself, but this will cover my .so.dbg case, and the non debug variant.
That being said, you mentioned that we get a QA error on the .so file (about it being stripped) .. that would be useful to have captured in this commit log.
OK, V2 is going to be sent soon with the error message captured in the commit log.
Thanks,
Yang
Quoted 29 lines
Bruce
Quoted 23 lines
Signed-off-by Yang Shi <[email protected]>--- meta/classes/kernel.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/classes/kernel.bbclass +0
-1@@ -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
meta/classes/kernel.bbclass +1
-1-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"