diff options
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r-- | scripts/lib/devtool/standard.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 9511d5618c..c15bfef9d8 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py | |||
@@ -1517,6 +1517,11 @@ def finish(args, config, basepath, workspace): | |||
1517 | destpath = oe.recipeutils.get_bbfile_path(rd, destlayerdir, origrelpath) | 1517 | destpath = oe.recipeutils.get_bbfile_path(rd, destlayerdir, origrelpath) |
1518 | if not destpath: | 1518 | if not destpath: |
1519 | raise DevtoolError("Unable to determine destination layer path - check that %s specifies an actual layer and %s/conf/layer.conf specifies BBFILES. You may also need to specify a more complete path." % (args.destination, destlayerdir)) | 1519 | raise DevtoolError("Unable to determine destination layer path - check that %s specifies an actual layer and %s/conf/layer.conf specifies BBFILES. You may also need to specify a more complete path." % (args.destination, destlayerdir)) |
1520 | # Warn if the layer isn't in bblayers.conf (the code to create a bbappend will do this in other cases) | ||
1521 | layerdirs = [os.path.abspath(layerdir) for layerdir in rd.getVar('BBLAYERS', True).split()] | ||
1522 | if not os.path.abspath(destlayerdir) in layerdirs: | ||
1523 | bb.warn('Specified destination layer is not currently enabled in bblayers.conf, so the %s recipe will now be unavailable in your current configuration until you add the layer there' % args.recipename) | ||
1524 | |||
1520 | elif destlayerdir == origlayerdir: | 1525 | elif destlayerdir == origlayerdir: |
1521 | # Same layer, update the original recipe | 1526 | # Same layer, update the original recipe |
1522 | appendlayerdir = None | 1527 | appendlayerdir = None |