]> code.ossystems Code Review - openembedded-core.git/commit
devtool: upgrade: automatically handle changes to source subdirectory
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 30 Oct 2017 04:16:56 +0000 (17:16 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Nov 2017 14:44:31 +0000 (14:44 +0000)
commitd29881a652bf03627d257a1eac5f02ec17315b8b
treef9ff441bcc5dc31bc2899ed70d660650ffe43616
parent9cf2089bd22b9fc4eb0eec8d4924e44519412dad
devtool: upgrade: automatically handle changes to source subdirectory

If the directory where the source code extracts to changes (for
example, when upgrading iucode-tool from 1.5 to 2.1.1, the subdirectory
in the tarball changed from "iucode_tool-${PV}" to "iucode-tool-${PV}")
then handle this automatically. Also handle when it changes to match the
default S value (i.e. "${WORKDIR}/${BP}") in which case we just drop
setting S in the recipe.

Fixes [YOCTO #10939].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/devtool/standard.py
scripts/lib/devtool/upgrade.py