summaryrefslogtreecommitdiff
path: root/scripts/lib/recipetool
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:47:05 +0100
commitb99640c89f067866b264f4ee4030fae4c2f338c0 (patch)
treecc31abfa8b5a088655b3aa6778e702e177fa7104 /scripts/lib/recipetool
parent7afe15051516053303f6afef4d6fbb0a3872b411 (diff)
downloadopenembedded-core-b99640c89f067866b264f4ee4030fae4c2f338c0.tar.gz
openembedded-core-b99640c89f067866b264f4ee4030fae4c2f338c0.tar.bz2
openembedded-core-b99640c89f067866b264f4ee4030fae4c2f338c0.zip
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. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/recipetool')
-rw-r--r--scripts/lib/recipetool/append.py4
-rw-r--r--scripts/lib/recipetool/create_buildsys.py3
-rw-r--r--scripts/lib/recipetool/create_buildsys_python.py4
3 files changed, 0 insertions, 11 deletions
diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py
index ed7d0d4b27..7fe411520a 100644
--- a/scripts/lib/recipetool/append.py
+++ b/scripts/lib/recipetool/append.py
@@ -33,10 +33,6 @@ logger = logging.getLogger('recipetool')
tinfoil = None
-def plugin_init(pluginlist):
- # Don't need to do anything here right now, but plugins must have this function defined
- pass
-
def tinfoil_init(instance):
global tinfoil
tinfoil = instance
diff --git a/scripts/lib/recipetool/create_buildsys.py b/scripts/lib/recipetool/create_buildsys.py
index 6c9e0efa2a..ed14a53304 100644
--- a/scripts/lib/recipetool/create_buildsys.py
+++ b/scripts/lib/recipetool/create_buildsys.py
@@ -307,9 +307,6 @@ class MakefileRecipeHandler(RecipeHandler):
self.genfunction(lines_after, 'do_install', ['# Specify install commands here'])
-def plugin_init(pluginlist):
- pass
-
def register_recipe_handlers(handlers):
# These are in a specific order so that the right one is detected first
handlers.append(CmakeRecipeHandler())
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py
index f4f4212559..e0af2a0f51 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -711,10 +711,6 @@ def has_non_literals(value):
return any(has_non_literals(v) for v in value)
-def plugin_init(pluginlist):
- pass
-
-
def register_recipe_handlers(handlers):
# We need to make sure this is ahead of the makefile fallback handler
handlers.insert(0, PythonRecipeHandler())