diff options
author | David Reyna <David.Reyna@windriver.com> | 2018-08-26 15:33:32 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-28 10:32:08 +0100 |
commit | 4c41fc3f6eca667a6b09ff1b7701cec9b8b37e3f (patch) | |
tree | a9a15e440a8898f4cd290f07338a2522affa3775 /bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |
parent | 1035d9decb8e9cfed44e70795d54c1aa6241c070 (diff) | |
download | poky-4c41fc3f6eca667a6b09ff1b7701cec9b8b37e3f.tar.gz |
bitbake: toaster: enable project import and merged Toaster settings
Enable the ability to select an existing build directory into Toaster.
This opens to the user the backend features of 12823, for command line
user compatibility.
Enable the ability to select saving Toaster settings in the regular
"bblayers.conf" and "local.conf" instead of the default
"toaster_bblayers.conf" and "toaster.conf". This opens to the user the
backend features of 12821, for command line user compatibility.
[YOCTO #12902]
(Bitbake rev: 8ce51fbd92ab42365a38e0c1c260bb4979377a89)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/localhostbecontroller.py')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index aba09e0d27..67bfbf6394 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |||
@@ -373,8 +373,8 @@ class LocalhostBEController(BuildEnvironmentController): | |||
373 | conf.write('INHERIT+="toaster buildhistory"') | 373 | conf.write('INHERIT+="toaster buildhistory"') |
374 | else: | 374 | else: |
375 | # Append the Toaster-specific values directly to the bblayers.conf | 375 | # Append the Toaster-specific values directly to the bblayers.conf |
376 | bblconfpath = os.path.join(bitbake.req.project.builddir, "conf/bblayers.conf") | 376 | bblconfpath = os.path.join(builddir, "conf/bblayers.conf") |
377 | bblconfpath_save = os.path.join(bitbake.req.project.builddir, "conf/bblayers.conf.save") | 377 | bblconfpath_save = os.path.join(builddir, "conf/bblayers.conf.save") |
378 | shutil.copyfile(bblconfpath, bblconfpath_save) | 378 | shutil.copyfile(bblconfpath, bblconfpath_save) |
379 | with open(bblconfpath) as bblayers: | 379 | with open(bblconfpath) as bblayers: |
380 | content = bblayers.readlines() | 380 | content = bblayers.readlines() |
@@ -399,8 +399,8 @@ class LocalhostBEController(BuildEnvironmentController): | |||
399 | bblayers.write(' "\n') | 399 | bblayers.write(' "\n') |
400 | bblayers.write('#=== TOASTER_CONFIG_EPILOG ===\n') | 400 | bblayers.write('#=== TOASTER_CONFIG_EPILOG ===\n') |
401 | # Append the Toaster-specific values directly to the local.conf | 401 | # Append the Toaster-specific values directly to the local.conf |
402 | bbconfpath = os.path.join(bitbake.req.project.builddir, "conf/local.conf") | 402 | bbconfpath = os.path.join(builddir, "conf/local.conf") |
403 | bbconfpath_save = os.path.join(bitbake.req.project.builddir, "conf/local.conf.save") | 403 | bbconfpath_save = os.path.join(builddir, "conf/local.conf.save") |
404 | shutil.copyfile(bbconfpath, bbconfpath_save) | 404 | shutil.copyfile(bbconfpath, bbconfpath_save) |
405 | with open(bbconfpath) as f: | 405 | with open(bbconfpath) as f: |
406 | content = f.readlines() | 406 | content = f.readlines() |