diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-02-19 16:40:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-23 17:35:29 +0000 |
commit | e2ce29fef25b8eba8fa6cec0a87c5412b51ec813 (patch) | |
tree | 09645521609ae5d7ab348b8f0f477fadd79bbd81 /scripts/lib/devtool/standard.py | |
parent | efedd4323b719679b3f6c050e1c7c29e2804cd10 (diff) | |
download | ast2050-yocto-poky-e2ce29fef25b8eba8fa6cec0a87c5412b51ec813.zip ast2050-yocto-poky-e2ce29fef25b8eba8fa6cec0a87c5412b51ec813.tar.gz |
devtool: prevent extract/modify use with image recipes
There wouldn't be any point to using these with an image recipe, so
disallow it.
(From OE-Core rev: 611c27182a6e52e159a1ce1b5bac054405c611d2)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/standard.py')
-rw-r--r-- | scripts/lib/devtool/standard.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 3a8c66c..9ab3aa6 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py @@ -141,6 +141,10 @@ def _extract_source(srctree, keep_temp, devbranch, d): logger.error("The %s recipe uses a shared workdir which this tool does not currently support" % pn) return None + if bb.data.inherits_class('image', d): + logger.error("The %s recipe is an image, and therefore is not supported by this tool" % pn) + return None + if bb.data.inherits_class('externalsrc', d) and d.getVar('EXTERNALSRC', True): logger.error("externalsrc is currently enabled for the %s recipe. This prevents the normal do_patch task from working. You will need to disable this first." % pn) return None @@ -290,6 +294,10 @@ def modify(args, config, basepath, workspace): return -1 rd = oe.recipeutils.parse_recipe(recipefile, tinfoil.config_data) + if bb.data.inherits_class('image', rd): + logger.error("The %s recipe is an image, and therefore is not supported by this tool" % args.recipename) + return None + initial_rev = None commits = [] srctree = os.path.abspath(args.srctree) |