kernel-devsrc: Don't package kernel meta-data
PATCH 1/1 kernel-devsrc: Don't package kernel meta-data
* The kernel meta-data doesn't need to be distributed in the kernel source package, so drop it
* Fix a typo
* Split long lines
--- meta/recipes-kernel/linux/kernel-devsrc.bb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
meta/recipes-kernel/linux/kernel-devsrc.bb +7 -3
@@ -41,13 +41,17 @@ do_install() { # # Copy the staging dir source (and module build support) into the devsrc structure. - # We can keep this copy simple and take everything, since a we'll clean up any build + # We can keep this copy simple and take everything, since we'll clean up any build # artifacts afterwards, and the extra i/o is not significant # cd ${B} - find . -type d -name '.git*' -prune -o -path '.debug' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir + find . -type d -name '.git*' -prune -o \ + -path '.debug' -prune -o \ + -type f -print0 | cpio --null -pdlu $kerneldir cd ${S} - find . -type d -name '.git*' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir + find . -type d -name '.git*' -prune -o \ + -type d -name '.kernel-meta' -prune -o \ + -type f -print0 | cpio --null -pdlu $kerneldir # Explicitly set KBUILD_OUTPUT to ensure that the image directory is cleaned and not # The main build artifacts. We clean the directory to avoid QA errors on mismatched
Signature · 1 line
2.7.4
Quoted 26 lines · Jacob Kroon
* The kernel meta-data doesn't need to be distributed in the kernel source package, so drop it
* Fix a typo
* Split long linesSigned-off-by Jacob Kroon <[email protected]>--- meta/recipes-kernel/linux/kernel-devsrc.bb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)meta/recipes-kernel/linux/kernel-devsrc.bb +2
-2@@ -41,13 +41,17 @@ do_install() { # # Copy the staging dir source (and module build support) into the devsrc structure. - # We can keep this copy simple and take everything, since a we'll clean up any build + # We can keep this copy simple and take everything, since we'll clean up any build # artifacts afterwards, and the extra i/o is not significant # cd ${B} - find . -type d -name '.git*' -prune -o -path '.debug' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir + find . -type d -name '.git*' -prune -o \
meta/recipes-kernel/linux/kernel-devsrc.bb do_install() { · line 57
Quoted 10 lines
meta/recipes-kernel/linux/kernel-devsrc.bb +5
-1+ -path '.debug' -prune -o \ + -type f -print0 | cpio --null -pdlu $kerneldir cd ${S} - find . -type d -name '.git*' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir + find . -type d -name '.git*' -prune -o \ + -type d -name '.kernel-meta' -prune -o \ + -type f -print0 | cpio --null -pdlu $kerneldir # Explicitly set KBUILD_OUTPUT to ensure that the image directory is cleaned and not # The main build artifacts. We clean the directory to avoid QA errors on mismatched
Ignore this patch, I'm suspecting that .kernel-meta/ directory shouldn't exist in ${STAGING_KERNEL_DIR} to begin with ? /Jacob
Quoted 42 lines · Jacob Kroon
Quoted 40 lines · Jacob Kroon
* The kernel meta-data doesn't need to be distributed in the kernel
source
package, so drop it
* Fix a typo
* Split long linesSigned-off-by Jacob Kroon <[email protected]>--- meta/recipes-kernel/linux/kernel-devsrc.bb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)meta/recipes-kernel/linux/kernel-devsrc.bb +0
-0@@ -41,13 +41,17 @@ do_install() { # # Copy the staging dir source (and module build support) intothe devsrc structure.
- # We can keep this copy simple and take everything, since a
we'll clean up any build
+ # We can keep this copy simple and take everything, since we'll
clean up any build# artifacts afterwards, and the extra i/o is not significant # cd ${B}meta/recipes-kernel/linux/kernel-devsrc.bb +6
-4- find . -type d -name '.git*' -prune -o -path '.debug' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir + find . -type d -name '.git*' -prune -o \ + -path '.debug' -prune -o \ + -type f -print0 | cpio --null -pdlu $kerneldir cd ${S} - find . -type d -name '.git*' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir + find . -type d -name '.git*' -prune -o \ + -type d -name '.kernel-meta' -prune -o \ + -type f -print0 | cpio --null -pdlu $kerneldir
Quoted 9 lines
Quoted 6 lines
# Explicitly set
KBUILD_OUTPUTto ensure that the image
directory is cleaned and not
# The main build artifacts. We clean the directory to avoid QA
errors on mismatchedIgnore this patch, I'm suspecting that .kernel-meta/ directory shouldn't exist in ${STAGING_KERNEL_DIR} to begin with ?
It doesn't hurt anything by being there, but you can either intercept it at the
time we stage the common kernel parts, or when you package devsrc .. either will work.
Bruce
Quoted 8 lines
/Jacob
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 2 lines · Bruce Ashfield
On Wed, Aug 3, 2016 at 5:33 AM, Jacob Kroon <[email protected] <mailto:[email protected]>> wrote:
[...]
Quoted 8 lines
Ignore this patch, I'm suspecting that .kernel-meta/ directory shouldn't exist in ${STAGING_KERNEL_DIR} to begin with ?
It doesn't hurt anything by being there, but you can either intercept it at the
time we stage the common kernel parts, or when you package devsrc .. either will work.
Since commit 3b49416fc7a7ee9bfe722f2e6089aa18df41dc58, linux-yocto.inc does:
do_install_append(){
if [ -n "${KMETA}" ]; then
rm -rf ${STAGING_KERNEL_DIR}/${KMETA}
fi
}But I think this accidentally got broken by a later commit 3b2b4eef0fd06099342fcc2dfa35ecf37840c090, which changed the directory name by conditionally prepending a ".":
kmeta = d.getVar( "KMETA", True ) or "meta"
if not os.path.exists(kmeta):
kmeta = "." + kmeta
So it seems to me that the right thing to do here would be to fix and move the do_install_append() to kernel-yocto.bbclass. Bruce, what do you think ?
Regards Jacob
Quoted 31 lines · Jacob Kroon
Quoted 3 lines · Bruce Ashfield
On Wed, Aug 3, 2016 at 5:33 AM, Jacob Kroon <[email protected] <mailto:[email protected]>> wrote:
[...]
Quoted 10 lines
Ignore this patch, I'm suspecting that .kernel-meta/ directory shouldn't exist in ${STAGING_KERNEL_DIR} to begin with ?
It doesn't hurt anything by being there, but you can either intercept it at the
time we stage the common kernel parts, or when you package devsrc .. either
will work.Since commit
3b49416fc7a7ee9bfe722f2e6089aa18df41dc58, linux-yocto.inc does:do_install_append(){ if [ -n "${KMETA}" ]; then rm -rf ${STAGING_KERNEL_DIR}/${KMETA} fi }But I think this accidentally got broken by a later commit
3b2b4eef0fd06099342fcc2dfa35ecf37840c090, which changed the directory name by conditionally prepending a ".":
Quoted 8 lines
kmeta =
d.getVar( "KMETA", True )or "meta"
if notos.path.exists(kmeta):kmeta = "." + kmetaSo it seems to me that the right thing to do here would be to fix and move the
do_install_append()to kernel-yocto.bbclass. Bruce, what do you think ?
Yep, that rm -rf could be both ${KMETA} and .${KMETA}. If either exist, they should be removed. Whether it is in the .inc or the bbclass isn't significant. I'd leave it where it is as smallest footprint action.
Bruce
Quoted 3 lines
Regards Jacob
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"