kernel: Prevent from installing so files into source dir
PATCH v2 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-windriver 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
@@ -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 5 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-windriver was already stripped, this will prevent future
We wouldn't want to capture linux-windriver in the commit log .. I assume that this is possible to see with the stock linux-yocto kernel as well ?
Bruce
Quoted 21 lines
debugging! [already-stripped]
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 5 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-windriver was already stripped, this will prevent futureWe wouldn't want to capture linux-windriver in the commit log .. I assume that this is possible to see with the stock linux-yocto kernel as well ?
I didn't try it with linux-yocto. But, if we use externalsrc, I think linux-yocto should have the same problem.
Yang
Quoted 30 lines
Bruce
Quoted 24 lines
debugging! [already-stripped]
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"
Quoted 9 lines · Yang Shi
Quoted 8 lines · Bruce Ashfield
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-windriver was already stripped, this will prevent future
Quoted 6 lines
Quoted 3 lines
We wouldn't want to capture linux-windriver in the commit log .. I assume that this is possible to see with the stock linux-yocto kernel as well ?
I didn't try it with linux-yocto. But, if we use externalsrc, I think linux-yocto should have the same problem.
Shouldn't be too hard to confirm. We want the log to be based on oe-core components (as the tests should be), so it is worth a quick re-test and a v3 .. sorry for being a pain on this.
Bruce
Quoted 35 lines
Yang
Quoted 31 lines
Bruce
Quoted 25 lines
debugging! [already-stripped]
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"
Quoted 14 lines · Bruce Ashfield
Quoted 13 lines · Yang Shi
Quoted 11 lines · Bruce Ashfield
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-windriver was already stripped, this will prevent futureWe wouldn't want to capture linux-windriver in the commit log .. I assume that this is possible to see with the stock linux-yocto kernel as well ?
Quoted 6 lines
Quoted 2 lines
I didn't try it with linux-yocto. But, if we use externalsrc, I think linux-yocto should have the same problem.
Shouldn't be too hard to confirm. We want the log to be based on oe-core components (as the tests should be), so it is worth a quick re-test and a v3 .. sorry for being a pain on this.
Tested on oe-core, updated commit log accordingly. V3 is coming soon.
Yang
Quoted 41 lines
Bruce
Quoted 35 lines
Yang
Quoted 31 lines
Bruce
Quoted 25 lines
debugging! [already-stripped]
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"