summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-10-11 19:12:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-01 21:32:04 +0000
commit3f46af2b1923cbfd3af0b8ce3c360eb34f316dfc (patch)
treec16745171141cd56d7425fa1bc59cb2c030a26ef
parent176211abebb875324d2300ec0362b64231668964 (diff)
downloadpoky-3f46af2b1923cbfd3af0b8ce3c360eb34f316dfc.tar.gz
devtool: drop unused plugin_init() functions
This function is no longer required to be defined for a plugin, so drop it where it's a no-op. (From OE-Core rev: 49716a5e27e704598321bd6c82275b16afc444aa) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/devtool/build.py4
-rw-r--r--scripts/lib/devtool/package.py4
-rw-r--r--scripts/lib/devtool/sdk.py4
-rw-r--r--scripts/lib/devtool/upgrade.py4
-rw-r--r--scripts/lib/recipetool/newappend.py5
5 files changed, 0 insertions, 21 deletions
diff --git a/scripts/lib/devtool/build.py b/scripts/lib/devtool/build.py
index 9b58858a62..62d8599aeb 100644
--- a/scripts/lib/devtool/build.py
+++ b/scripts/lib/devtool/build.py
@@ -25,10 +25,6 @@ from devtool import exec_build_env_command, check_workspace_recipe, DevtoolError
25 25
26logger = logging.getLogger('devtool') 26logger = logging.getLogger('devtool')
27 27
28def plugin_init(pluginlist):
29 """Plugin initialization"""
30 pass
31
32def _create_conf_file(values, conf_file=None): 28def _create_conf_file(values, conf_file=None):
33 if not conf_file: 29 if not conf_file:
34 fd, conf_file = tempfile.mkstemp(suffix='.conf') 30 fd, conf_file = tempfile.mkstemp(suffix='.conf')
diff --git a/scripts/lib/devtool/package.py b/scripts/lib/devtool/package.py
index 53d3dc7a38..a296fce9b1 100644
--- a/scripts/lib/devtool/package.py
+++ b/scripts/lib/devtool/package.py
@@ -24,10 +24,6 @@ from devtool import exec_build_env_command, setup_tinfoil, check_workspace_recip
24 24
25logger = logging.getLogger('devtool') 25logger = logging.getLogger('devtool')
26 26
27def plugin_init(pluginlist):
28 """Plugin initialization"""
29 pass
30
31def package(args, config, basepath, workspace): 27def package(args, config, basepath, workspace):
32 """Entry point for the devtool 'package' subcommand""" 28 """Entry point for the devtool 'package' subcommand"""
33 check_workspace_recipe(workspace, args.recipename) 29 check_workspace_recipe(workspace, args.recipename)
diff --git a/scripts/lib/devtool/sdk.py b/scripts/lib/devtool/sdk.py
index 7a842afc24..85c0fb1729 100644
--- a/scripts/lib/devtool/sdk.py
+++ b/scripts/lib/devtool/sdk.py
@@ -11,10 +11,6 @@ from devtool import exec_build_env_command, setup_tinfoil, DevtoolError
11 11
12logger = logging.getLogger('devtool') 12logger = logging.getLogger('devtool')
13 13
14def plugin_init(pluginlist):
15 """Plugin initialization"""
16 pass
17
18def parse_locked_sigs(sigfile_path): 14def parse_locked_sigs(sigfile_path):
19 """Return <pn:task>:<hash> dictionary""" 15 """Return <pn:task>:<hash> dictionary"""
20 sig_dict = {} 16 sig_dict = {}
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index 86d1214908..d7fd408a2e 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -33,10 +33,6 @@ from devtool import exec_build_env_command, setup_tinfoil, DevtoolError, parse_r
33 33
34logger = logging.getLogger('devtool') 34logger = logging.getLogger('devtool')
35 35
36def plugin_init(pluginlist):
37 """Plugin initialization"""
38 pass
39
40def _run(cmd, cwd=''): 36def _run(cmd, cwd=''):
41 logger.debug("Running command %s> %s" % (cwd,cmd)) 37 logger.debug("Running command %s> %s" % (cwd,cmd))
42 return bb.process.run('%s' % cmd, cwd=cwd) 38 return bb.process.run('%s' % cmd, cwd=cwd)
diff --git a/scripts/lib/recipetool/newappend.py b/scripts/lib/recipetool/newappend.py
index 77b74cb730..4eeac0e943 100644
--- a/scripts/lib/recipetool/newappend.py
+++ b/scripts/lib/recipetool/newappend.py
@@ -32,11 +32,6 @@ logger = logging.getLogger('recipetool')
32tinfoil = None 32tinfoil = None
33 33
34 34
35def plugin_init(pluginlist):
36 # Don't need to do anything here right now, but plugins must have this function defined
37 pass
38
39
40def tinfoil_init(instance): 35def tinfoil_init(instance):
41 global tinfoil 36 global tinfoil
42 tinfoil = instance 37 tinfoil = instance