]> code.ossystems Code Review - openembedded-core.git/commit
archiver.bbclass: do not cause kernel rebuilds
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 5 May 2017 10:25:25 +0000 (12:25 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 May 2017 13:01:37 +0000 (14:01 +0100)
commitfed0ed82928e6a7846fbad233ac657bd17bcefc7
tree778fb779a5f9d86ecc6d2b4db0c4a9387bfcd23f
parent18aac553ca35049c80b6cc82ff0e69ce8a7a03a9
archiver.bbclass: do not cause kernel rebuilds

Adding or removing archiver.bbclass from a build configuration causes
rebuilds of linux-yocto-based kernels because of the
do_kernel_configme->do_unpack_and_patch task dependency.

This particular dependency can be ignored for the do_kernel_configme
sstate signature calculcation. Idea for the fix from Richard Purdie.

Note that building the kernel and adding archiver.bbclass later to
archive sources leads to do_unpack_and_patch running after
do_kernel_configme (because that already ran in the first build),
which might be problematic. This is independent of the change here.

The use case in YOCTO #11441 is to removed archiver.bbclass between a
production build with archiving enabled and builds via oe-selftests
without archiving. That direction is fine.

Fixes: YOCTO #11441
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/archiver.bbclass
meta/lib/oe/sstatesig.py