]> code.ossystems Code Review - openembedded-core.git/commit
linux-yocto/4.14/4.15: deterministic srcversion
authorBruce Ashfield <bruce.ashfield@windriver.com>
Mon, 9 Apr 2018 15:16:07 +0000 (11:16 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Apr 2018 15:55:24 +0000 (16:55 +0100)
commit7d92ed3dcd8c4b5f7cde2f521569c792d55fae65
tree3e7960a22bc9d2c7fc2e01cda8d9ac22c64d84f2
parent6c1ddbbb0eb9c86646fcb99520e4747cfcd2b418
linux-yocto/4.14/4.15: deterministic srcversion

   Author: Juro Bystricky <juro.bystricky@intel.com>
   Date:   Fri Mar 30 10:14:05 2018 -0700

       modpost: srcversion sometimes incorrect

       "srcversion" field inserted into module modinfo section contains a
       sum of the source files which made it. However, this field can
       be incorrect. Building the same module can end up having inconsistent
       srcversion field eventhough the sources remain the same.
       This can be reproduced by building modules in a deeply nested directory,
       but other factors contribute as well.

       The reason for incorrect srcversion is that some source files can be
       simply silently skipped from the checksum calculation due to limited
       buffer space for line parsing.

       This patch addresses two issues:

       1. Allocates a larger line buffer (32k vs 4k).
       2. Issues a warning if a line length exceeds the line buffer.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb
meta/recipes-kernel/linux/linux-yocto-rt_4.15.bb
meta/recipes-kernel/linux/linux-yocto-tiny_4.14.bb
meta/recipes-kernel/linux/linux-yocto-tiny_4.15.bb
meta/recipes-kernel/linux/linux-yocto_4.14.bb
meta/recipes-kernel/linux/linux-yocto_4.15.bb