kernel-yocto: fix diffconfig/kernel_configme breakage
authorChristopher Larson <kergoth@gmail.com>
Thu, 6 Mar 2014 18:10:43 +0000 (11:10 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Mar 2014 14:45:22 +0000 (14:45 +0000)
commit0b1a6008a5a77ef8aa388c93ab6b70efb8dc37e3
treee24f3aec53026a7aa7b0812a5f8947247bec091f
parentd88eda3bc6d0b0d6973b5a5b8c0dba0f6ba70fae
kernel-yocto: fix diffconfig/kernel_configme breakage

The bbclass did the following:

    do_diffconfig[depends] += "virtual/kernel:do_kernel_configme"

This clearly introduces a cross-kernel task dependency if the recipe
inheriting this class isn't the preferred provider of virtual/kernel, which is
obviously wrong, but further, will break the build if a kernel-yocto based
kernel is parsed and not skipped, but virtual/kernel refers to
a non-kernel-yocto recipe, which would not have the do_kernel_configme task.

Work around this by adding the in-recipe task dep programmatically with
bb.build.addtask when do_diffconfig exists.

(From OE-Core rev: 0e6881146d87f0d214d80bc92e54c113906db63a)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass