summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/standard.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/devtool/standard.py')
-rw-r--r--scripts/lib/devtool/standard.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index d5ded2f680..fbac34edfd 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -384,12 +384,19 @@ def modify(args, config, basepath, workspace):
384 f.write('inherit externalsrc\n') 384 f.write('inherit externalsrc\n')
385 f.write('# NOTE: We use pn- overrides here to avoid affecting multiple variants in the case where the recipe uses BBCLASSEXTEND\n') 385 f.write('# NOTE: We use pn- overrides here to avoid affecting multiple variants in the case where the recipe uses BBCLASSEXTEND\n')
386 f.write('EXTERNALSRC_pn-%s = "%s"\n' % (args.recipename, srctree)) 386 f.write('EXTERNALSRC_pn-%s = "%s"\n' % (args.recipename, srctree))
387 if args.same_dir or bb.data.inherits_class('autotools-brokensep', rd): 387
388 if args.same_dir: 388 b_is_s = True
389 logger.info('using source tree as build directory since --same-dir specified') 389 if args.same_dir:
390 else: 390 logger.info('using source tree as build directory since --same-dir specified')
391 logger.info('using source tree as build directory since original recipe inherits autotools-brokensep') 391 elif bb.data.inherits_class('autotools-brokensep', rd):
392 logger.info('using source tree as build directory since original recipe inherits autotools-brokensep')
393 elif rd.getVar('B', True) == s:
394 logger.info('using source tree as build directory since that is the default for this recipe')
395 else:
396 b_is_s = False
397 if b_is_s:
392 f.write('EXTERNALSRC_BUILD_pn-%s = "%s"\n' % (args.recipename, srctree)) 398 f.write('EXTERNALSRC_BUILD_pn-%s = "%s"\n' % (args.recipename, srctree))
399
393 if initial_rev: 400 if initial_rev:
394 f.write('\n# initial_rev: %s\n' % initial_rev) 401 f.write('\n# initial_rev: %s\n' % initial_rev)
395 for commit in commits: 402 for commit in commits: