summaryrefslogtreecommitdiff
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 13:44:48 +0100
commitffc11b2c6c6bac4643233cc46418b025c94607c8 (patch)
tree7a2afcf3e9c9cb822081a2d3364c2bb6088dc01c
parent33cbf4cd3b4ca47c4901501f5f1eafdfdfdae023 (diff)
downloadbitbake-ffc11b2c6c6bac4643233cc46418b025c94607c8.zip
toaster: add toggle for enabling image customisation feeature
This feature is currently under heavy development and should be used with caution. 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-xlib/toaster/toastergui/views.py1
-rw-r--r--lib/toaster/toastermain/settings.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index 8689a125..2e3b8227 100755
--- a/lib/toaster/toastergui/views.py
+++ b/lib/toaster/toastergui/views.py
@@ -1867,6 +1867,7 @@ def managedcontextprocessor(request):
ret = {
"projects": Project.objects.all(),
"DEBUG" : toastermain.settings.DEBUG,
+ "CUSTOM_IMAGE" : toastermain.settings.CUSTOM_IMAGE,
"TOASTER_BRANCH": toastermain.settings.TOASTER_BRANCH,
"TOASTER_REVISION" : toastermain.settings.TOASTER_REVISION,
}
diff --git a/lib/toaster/toastermain/settings.py b/lib/toaster/toastermain/settings.py
index b149a5ed..6439d68c 100644
--- a/lib/toaster/toastermain/settings.py
+++ b/lib/toaster/toastermain/settings.py
@@ -23,6 +23,11 @@
import os, re
+# Temporary toggle for Image customisation
+CUSTOM_IMAGE = False
+if os.environ.get("CUSTOM_IMAGE", None) is not None:
+ CUSTOM_IMAGE = True
+
DEBUG = True
TEMPLATE_DEBUG = DEBUG