1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

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>
This commit is contained in:
Ed Bartosh
2015-08-30 19:33:19 +03:00
committed by Richard Purdie
parent 996ec1798e
commit 9485888656
7 changed files with 1 additions and 26 deletions
-4
View File
@@ -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
@@ -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())
@@ -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())