summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-09-28 21:45:19 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-29 14:11:37 +0100
commita7f43bd532513e1a5a9d84e797c707f6039c914a (patch)
tree88a934f6866671dbc04dc04be84e1cd715ca62ef
parent3ff6401723289fb53a2797abd971c25b697822cb (diff)
downloadpoky-a7f43bd532513e1a5a9d84e797c707f6039c914a.tar.gz
bitbake: toaster: add toggle for enabling image customisation feeature
This feature is currently under heavy development and should be used with caution. (Bitbake rev: ffc11b2c6c6bac4643233cc46418b025c94607c8) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py1
-rw-r--r--bitbake/lib/toaster/toastermain/settings.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 8689a1251e..2e3b822797 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -1867,6 +1867,7 @@ def managedcontextprocessor(request):
1867 ret = { 1867 ret = {
1868 "projects": Project.objects.all(), 1868 "projects": Project.objects.all(),
1869 "DEBUG" : toastermain.settings.DEBUG, 1869 "DEBUG" : toastermain.settings.DEBUG,
1870 "CUSTOM_IMAGE" : toastermain.settings.CUSTOM_IMAGE,
1870 "TOASTER_BRANCH": toastermain.settings.TOASTER_BRANCH, 1871 "TOASTER_BRANCH": toastermain.settings.TOASTER_BRANCH,
1871 "TOASTER_REVISION" : toastermain.settings.TOASTER_REVISION, 1872 "TOASTER_REVISION" : toastermain.settings.TOASTER_REVISION,
1872 } 1873 }
diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py
index b149a5ed83..6439d68c3f 100644
--- a/bitbake/lib/toaster/toastermain/settings.py
+++ b/bitbake/lib/toaster/toastermain/settings.py
@@ -23,6 +23,11 @@
23 23
24import os, re 24import os, re
25 25
26# Temporary toggle for Image customisation
27CUSTOM_IMAGE = False
28if os.environ.get("CUSTOM_IMAGE", None) is not None:
29 CUSTOM_IMAGE = True
30
26DEBUG = True 31DEBUG = True
27TEMPLATE_DEBUG = DEBUG 32TEMPLATE_DEBUG = DEBUG
28 33