summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-08-30 19:33:19 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-12 22:48:30 +0100
commit9485888656ea15f111413497943eafcaba023f9c (patch)
tree8b0366099560bc2ab988cc19d1202c205544c9e6 /scripts/lib/devtool
parent996ec1798e709d38a26d8871132cdc06310c9423 (diff)
downloadpoky-9485888656ea15f111413497943eafcaba023f9c.tar.gz
devtool: make plugin_init optional
So far all devtool and recipetool plugins were expected to have plugin_init function. This function is empty in most of plugins as they don't require initialisation. Making plugin_init optional would allow not having empty plugin_init in every plugin. (From OE-Core rev: b99640c89f067866b264f4ee4030fae4c2f338c0) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r--scripts/lib/devtool/build-image.py4
-rw-r--r--scripts/lib/devtool/deploy.py5
-rw-r--r--scripts/lib/devtool/standard.py5
3 files changed, 0 insertions, 14 deletions
diff --git a/scripts/lib/devtool/build-image.py b/scripts/lib/devtool/build-image.py
index 817703a0e5..2c014289fe 100644
--- a/scripts/lib/devtool/build-image.py
+++ b/scripts/lib/devtool/build-image.py
@@ -25,10 +25,6 @@ from devtool import exec_build_env_command, setup_tinfoil, parse_recipe
25 25
26logger = logging.getLogger('devtool') 26logger = logging.getLogger('devtool')
27 27
28def plugin_init(pluginlist):
29 """Plugin initialization"""
30 pass
31
32def _get_recipes(workspace, config): 28def _get_recipes(workspace, config):
33 """Get list of target recipes from the workspace.""" 29 """Get list of target recipes from the workspace."""
34 result = [] 30 result = []
diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py
index 448db9637d..fa93adf181 100644
--- a/scripts/lib/devtool/deploy.py
+++ b/scripts/lib/devtool/deploy.py
@@ -23,11 +23,6 @@ from devtool import exec_fakeroot, setup_tinfoil, DevtoolError
23 23
24logger = logging.getLogger('devtool') 24logger = logging.getLogger('devtool')
25 25
26def plugin_init(pluginlist):
27 """Plugin initialization"""
28 pass
29
30
31def deploy(args, config, basepath, workspace): 26def deploy(args, config, basepath, workspace):
32 """Entry point for the devtool 'deploy' subcommand""" 27 """Entry point for the devtool 'deploy' subcommand"""
33 import re 28 import re
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 4702491fe0..5263af56c8 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -31,11 +31,6 @@ from devtool import parse_recipe
31logger = logging.getLogger('devtool') 31logger = logging.getLogger('devtool')
32 32
33 33
34def plugin_init(pluginlist):
35 """Plugin initialization"""
36 pass
37
38
39def add(args, config, basepath, workspace): 34def add(args, config, basepath, workspace):
40 """Entry point for the devtool 'add' subcommand""" 35 """Entry point for the devtool 'add' subcommand"""
41 import bb 36 import bb