diff options
Diffstat (limited to 'meta/classes/populate_sdk_ext.bbclass')
-rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index 57fd29b1bb..9f26cfc131 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
@@ -388,9 +388,13 @@ python copy_buildsystem () { | |||
388 | bb.utils.mkdirhier(os.path.join(baseoutpath, 'cache')) | 388 | bb.utils.mkdirhier(os.path.join(baseoutpath, 'cache')) |
389 | shutil.copyfile(builddir + '/cache/bb_unihashes.dat', baseoutpath + '/cache/bb_unihashes.dat') | 389 | shutil.copyfile(builddir + '/cache/bb_unihashes.dat', baseoutpath + '/cache/bb_unihashes.dat') |
390 | 390 | ||
391 | # Write a templateconf.cfg | 391 | # Use templateconf.cfg file from builddir if exists |
392 | with open(baseoutpath + '/conf/templateconf.cfg', 'w') as f: | 392 | if os.path.exists(builddir + '/conf/templateconf.cfg'): |
393 | f.write('meta/conf\n') | 393 | shutil.copyfile(builddir + '/conf/templateconf.cfg', baseoutpath + '/conf/templateconf.cfg') |
394 | else: | ||
395 | # Write a templateconf.cfg | ||
396 | with open(baseoutpath + '/conf/templateconf.cfg', 'w') as f: | ||
397 | f.write('meta/conf\n') | ||
394 | 398 | ||
395 | # Ensure any variables set from the external environment (by way of | 399 | # Ensure any variables set from the external environment (by way of |
396 | # BB_ENV_EXTRAWHITE) are set in the SDK's configuration | 400 | # BB_ENV_EXTRAWHITE) are set in the SDK's configuration |