summaryrefslogtreecommitdiffstats
path: root/scripts/devtool
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-xscripts/devtool6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/devtool b/scripts/devtool
index 87bb5c8323..a651d8f213 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -189,7 +189,11 @@ def _enable_workspace_layer(workspacedir, config, basepath):
189 if not os.path.exists(bblayers_conf): 189 if not os.path.exists(bblayers_conf):
190 logger.error('Unable to find bblayers.conf') 190 logger.error('Unable to find bblayers.conf')
191 return 191 return
192 _, added = bb.utils.edit_bblayers_conf(bblayers_conf, workspacedir, config.workspace_path) 192 if os.path.abspath(workspacedir) != os.path.abspath(config.workspace_path):
193 removedir = config.workspace_path
194 else:
195 removedir = None
196 _, added = bb.utils.edit_bblayers_conf(bblayers_conf, workspacedir, removedir)
193 if added: 197 if added:
194 logger.info('Enabling workspace layer in bblayers.conf') 198 logger.info('Enabling workspace layer in bblayers.conf')
195 if config.workspace_path != workspacedir: 199 if config.workspace_path != workspacedir: