diff options
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-x | scripts/devtool | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/devtool b/scripts/devtool index bda05e1c2f..2d57da0bc1 100755 --- a/scripts/devtool +++ b/scripts/devtool | |||
@@ -112,8 +112,18 @@ def read_workspace(): | |||
112 | res = externalsrc_re.match(line.rstrip()) | 112 | res = externalsrc_re.match(line.rstrip()) |
113 | if res: | 113 | if res: |
114 | pn = res.group(2) or os.path.splitext(os.path.basename(fn))[0].split('_')[0] | 114 | pn = res.group(2) or os.path.splitext(os.path.basename(fn))[0].split('_')[0] |
115 | # Find the recipe file within the workspace, if any | ||
116 | bbfile = os.path.basename(fn).replace('.bbappend', '.bb').replace('%', '*') | ||
117 | recipefile = glob.glob(os.path.join(config.workspace_path, | ||
118 | 'recipes', | ||
119 | pn, | ||
120 | bbfile)) | ||
121 | if recipefile: | ||
122 | recipefile = recipefile[0] | ||
115 | workspace[pn] = {'srctree': res.group(3), | 123 | workspace[pn] = {'srctree': res.group(3), |
116 | 'bbappend': fn} | 124 | 'bbappend': fn, |
125 | 'recipefile': recipefile} | ||
126 | logger.debug('Found recipe %s' % workspace[pn]) | ||
117 | 127 | ||
118 | def create_workspace(args, config, basepath, workspace): | 128 | def create_workspace(args, config, basepath, workspace): |
119 | if args.layerpath: | 129 | if args.layerpath: |