]> code.ossystems Code Review - openembedded-core.git/commit
devtool: ensure recipes devtool is working on are unlocked within the eSDK
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 6 Sep 2017 09:55:01 +0000 (21:55 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Sep 2017 10:07:21 +0000 (11:07 +0100)
commit4e9a0be32fc30fb87d65da7cd1a4015c99533aff
tree0bbe4614ac3528651d1a3eee82d2cb61766434c7
parent830dbd66992cbb9e731b48d56fddf8f220349666
devtool: ensure recipes devtool is working on are unlocked within the eSDK

Alongside reworking the way devtool extracts source, we now need to
ensure that within the extensible SDK where task signatures are locked,
the signatures of the tasks for the recipes being worked on get unlocked
at the right time or otherwise we'll now get taskhash mismatches when
running devtool modify on a recipe that was included in the eSDK such as
the kernel (due to a separate bug). The existing mechanism for
auto-unlocking recipes was a little weak and was happening too late, so
I've reimplemented it so that:
(a) it gets triggered immediately when the recipe/append is created
(b) we avoid writing to the unlocked signatures file unnecessarily
    (since it's a global configuration file) and
(c) within the eSDK configuration we whitelist SIGGEN_UNLOCKED_RECIPES
    to avoid unnecessary reparses every time we perform one of the
    devtool operations that does need to change this list.

Fixes [YOCTO #11883] (not the underlying cause, but this manifestation
of the issue).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/classes/populate_sdk_ext.bbclass
scripts/devtool
scripts/lib/devtool/__init__.py
scripts/lib/devtool/standard.py
scripts/lib/devtool/upgrade.py