* [PATCH 0/1] build.py: add clean option to 'devtool build' command
@ 2018-09-06 6:56 Chen Qi
2018-09-06 6:56 ` [PATCH 1/1] " Chen Qi
0 siblings, 1 reply; 2+ messages in thread
From: Chen Qi @ 2018-09-06 6:56 UTC (permalink / raw)
To: openembedded-core
*** BLURB HERE ***
The following changes since commit 74feaddda3b7cd5b3ab18d2f25bf5ef9581c9c47:
bitbake: server/process: Various server startup logging fixes (2018-09-05 18:01:37 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib ChenQi/devtool-clean
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/devtool-clean
Chen Qi (1):
build.py: add clean option to 'devtool build' command
scripts/lib/devtool/build.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] build.py: add clean option to 'devtool build' command
2018-09-06 6:56 [PATCH 0/1] build.py: add clean option to 'devtool build' command Chen Qi
@ 2018-09-06 6:56 ` Chen Qi
0 siblings, 0 replies; 2+ messages in thread
From: Chen Qi @ 2018-09-06 6:56 UTC (permalink / raw)
To: openembedded-core
Add -c (--clean) optiont to 'devtool build' command so that users
could easily clean things up when using devtool.
I encountered a problem about do_prepare_recipe_sysroot failure
when using `devtool build' command and I found myself in a situation
where I either have to use `bitbake' command to clean things up or
use `rm' to remove the directories under ${WORKDIR}.
So add a clean option as it would be helpful when users want to clean
things up to prepare an environment for a clean build.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
scripts/lib/devtool/build.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/scripts/lib/devtool/build.py b/scripts/lib/devtool/build.py
index 252379e..ba9593f 100644
--- a/scripts/lib/devtool/build.py
+++ b/scripts/lib/devtool/build.py
@@ -54,7 +54,11 @@ def build(args, config, basepath, workspace):
"""Entry point for the devtool 'build' subcommand"""
workspacepn = check_workspace_recipe(workspace, args.recipename, bbclassextend=True)
- build_tasks = _get_build_tasks(config)
+ if args.clean:
+ # use clean instead of cleansstate to avoid messing things up in eSDK
+ build_tasks = ['do_clean']
+ else:
+ build_tasks = _get_build_tasks(config)
bbappend = workspace[workspacepn]['bbappend']
if args.disable_parallel_make:
@@ -83,4 +87,5 @@ def register_commands(subparsers, context):
group='working', order=50)
parser_build.add_argument('recipename', help='Recipe to build')
parser_build.add_argument('-s', '--disable-parallel-make', action="store_true", help='Disable make parallelism')
+ parser_build.add_argument('-c', '--clean', action='store_true', help='clean up recipe building results')
parser_build.set_defaults(func=build)
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-06 6:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-06 6:56 [PATCH 0/1] build.py: add clean option to 'devtool build' command Chen Qi
2018-09-06 6:56 ` [PATCH 1/1] " Chen Qi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.