Skip to contentSkip to conversation

devtool: build: add deploy to the tasks run for devtool build

PATCH In review Jaewon Lee 3 participants 3 messages Jun 7, 2019 – Jun 8, 2019

lore
Share & tools
lore

Jaewon Lee

author
#0 lore raw

PATCH 1/1 devtool: build: add deploy to the tasks run for devtool build

Right now devtool build runs populate_sysroot and packagedata tasks. Adding deploy to this list so that the newly built artifacts are available in the deploy directory.

[YOCTO #13382]

---
 scripts/lib/devtool/build.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/devtool/build.py +1 -1
index 7543398..aff5710 100644
@@ -37,7 +37,7 @@ def _set_file_values(fn, values):
     return updated
 
 def _get_build_tasks(config):
-    tasks = config.get('Build', 'build_task', 'populate_sysroot,packagedata').split(',')
+    tasks = config.get('Build', 'build_task', 'deploy,populate_sysroot,packagedata').split(',')
     return ['do_%s' % task.strip() for task in tasks]
 
 def build(args, config, basepath, workspace):
Signature · 1 line
2.7.4
#1 lore raw
Quoted 29 lines · Jaewon Lee

Right now devtool build runs populate_sysroot and packagedata tasks.
Adding deploy to this list so that the newly built artifacts are available in the deploy directory.

[YOCTO #13382]

---
 scripts/lib/devtool/build.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/devtool/build.py +1 -1
index 7543398..aff5710 100644
@@ -37,7 +37,7 @@ def _set_file_values(fn, values):
     return updated
 
 def _get_build_tasks(config):
-    tasks = config.get('Build', 'build_task',
 'populate_sysroot,packagedata').split(',')
+    tasks = config.get('Build', 'build_task',
 'deploy,populate_sysroot,packagedata').split(',')
     return ['do_%s' % task.strip() for task in tasks]
Quoted 1 line

def build(args, config, basepath, workspace):

This frustrates me a bit.

The key question you have to ask here is "What happens for recipes that don't have a do_deploy task?".

The answer is it breaks:

https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/506

*Please*, when sending devtool patches, test with:

oe-selftest -r devtool

Cheers,

Richard

#2 lore raw

Sorry about that Richard
Will be sure to test with that

Thanks,
Jaewon

Quoted 55 lines · Richard Purdie
Quoted 31 lines · Jaewon Lee

Right now devtool build runs populate_sysroot and packagedata tasks.
Adding deploy to this list so that the newly built artifacts are available in the deploy directory.

[YOCTO #13382]

---
scripts/lib/devtool/build.py | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/devtool/build.py +0 -0
index 7543398..aff5710 100644
@@ -37,7 +37,7 @@ def _set_file_values(fn, values):
    return updated
 

def _get_build_tasks(config):
- tasks = config.get('Build', 'build_task',
'populate_sysroot,packagedata').split(',')
+ tasks = config.get('Build', 'build_task',
'deploy,populate_sysroot,packagedata').split(',')
return ['do_%s' % task.strip() for task in tasks]

Quoted 1 line

def build(args, config, basepath, workspace):

This frustrates me a bit.

The key question you have to ask here is "What happens for recipes that don't have a do_deploy task?".

The answer is it breaks:

https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/506

*Please*, when sending devtool patches, test with:

oe-selftest -r devtool

Cheers,

Richard