]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
devtool: add upgrade feature
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Tue, 8 Sep 2015 10:39:09 +0000 (11:39 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Sep 2015 13:25:04 +0000 (14:25 +0100)
commit4020f5d91b3e4d011150d5081d36215f8eab732e
tree756edeafe8851fd455f66116fab18fc04a40abbc
parent9383af78adc854a6f6de8b1520edf3cea0c477a6
devtool: add upgrade feature

Upgrades a recipe to a particular version and downloads the source code
into a folder. User can avoid patching the source code.

These are the general steps of the upgrade function:

   - Extract current recipe source code into srctree and create a branch
   - Extract upgrade recipe source code into srctree and rebase with
     previous branch. In case the rebase is not correctly applied, source
     code will not be deleted, so user correct the patches
   - Creates the new recipe under the workspace

[YOCTO #7642]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/recipes-test/devtool/devtool-upgrade_0.1.bb [new file with mode: 0644]
meta-selftest/recipes-test/devtool/files/0001-helloword.c-exit-with-EXIT_SUCCESS-instead-of-a-magi.patch [new file with mode: 0644]
meta-selftest/recipes-test/devtool/files/devtool-upgrade-0.1.tar.gz [new file with mode: 0644]
meta-selftest/recipes-test/devtool/files/devtool-upgrade-0.2.tar.gz [new file with mode: 0644]
meta/lib/oeqa/selftest/devtool.py
scripts/lib/devtool/standard.py
scripts/lib/devtool/upgrade.py [new file with mode: 0644]