summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/devtool/standard.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 0c67c131a8..20eafec052 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -558,8 +558,13 @@ def modify(args, config, basepath, workspace):
558 if not os.path.exists(appendpath): 558 if not os.path.exists(appendpath):
559 os.makedirs(appendpath) 559 os.makedirs(appendpath)
560 with open(appendfile, 'w') as f: 560 with open(appendfile, 'w') as f:
561 f.write('FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"\n\n') 561 f.write('FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"\n')
562 f.write('inherit externalsrc\n') 562 # Local files can be modified/tracked in separate subdir under srctree
563 # Mostly useful for packages with S != WORKDIR
564 f.write('FILESPATH_prepend := "%s:"\n' %
565 os.path.join(srctree, 'local-files'))
566
567 f.write('\ninherit externalsrc\n')
563 f.write('# NOTE: We use pn- overrides here to avoid affecting multiple variants in the case where the recipe uses BBCLASSEXTEND\n') 568 f.write('# NOTE: We use pn- overrides here to avoid affecting multiple variants in the case where the recipe uses BBCLASSEXTEND\n')
564 f.write('EXTERNALSRC_pn-%s = "%s"\n' % (args.recipename, srctree)) 569 f.write('EXTERNALSRC_pn-%s = "%s"\n' % (args.recipename, srctree))
565 570