Bug 6656 - Add ability to edit an existing recipe using development wrapper tool
Summary: Add ability to edit an existing recipe using development wrapper tool
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.7
Hardware: All Multiple
: Medium+ enhancement
Target Milestone: 1.8 M2
Assignee: Paul Eggleton
QA Contact: Alexandru Georgescu
URL:
Whiteboard:
Depends on: 6653
Blocks: 6662
  Show dependency tree
 
Reported: 2014-08-24 17:19 UTC by Paul Eggleton
Modified: 2015-06-08 18:25 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2014-08-24 17:19:07 UTC
Extending the tool in bug 6653, add the ability to "edit" an existing recipe and point it an external source tree managed with git. This will need the ability to translate from a set of patch files in the recipe to commits in a git tree and vice-versa.
Comment 1 Paul Eggleton 2014-08-24 21:10:27 UTC
This may obviate bug 6561.
Comment 2 Paul Eggleton 2014-10-01 11:19:24 UTC
And possibly bug 1652.
Comment 3 Alexandru Georgescu 2014-11-20 09:23:43 UTC
To be discussed internally with Lucian and Costin.
Comment 4 Paul Eggleton 2014-12-26 12:28:41 UTC
A new "devtool" utility with a "modify" command was added to master in the following commit (a number of earlier supporting commits are also required):

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=cd5ca4a11daff2089ba3031103b9b9dab5b3c94e

Some basic QA tests have been added in meta/lib/oeqa/selftest/devtool.py. Documentation is still pending.
Comment 5 Alexandru Georgescu 2015-03-19 10:17:30 UTC
Verified with devtool selftest.

[fed@fed build]$ oe-selftest --run-tests devtool                                                                                                                                                                   │·················
2015-03-19 11:38:13,645 - selftest - INFO - Checking that everything is in order before running the tests                                                                                                          │·················
2015-03-19 11:38:14,415 - selftest - INFO - Running bitbake -p                                                                                                                                                     │·················
2015-03-19 11:38:16,613 - selftest - INFO - Loading tests from: oeqa.selftest.devtool                                                                                                                              │·················
2015-03-19 11:38:16,622 - selftest - INFO - Adding: "include selftest.inc" in local.conf                                                                                                                           │·················
test_create_workspace (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                                  │·················
test_devtool_add (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                                       │·················
test_devtool_add_library (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                               │·················
test_devtool_extract (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                                   │·················
test_devtool_modify (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                                    │·················
test_devtool_modify_git (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                                │·················
test_devtool_update_recipe (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                             │·················
test_devtool_update_recipe_git (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                         │·················
test_recipetool_create (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                                 │·················
test_recipetool_create_git (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                             │·················
                                                                                                                                                                                                                   │·················
----------------------------------------------------------------------                                                                                                                                             │·················
Ran 10 tests in 586.325s                                                                                                                                                                                           │·················
                                                                                                                                                                                                                   │·················
OK