[bitbake-devel] [PATCH 09/22] toaster: add toggle for enabling image customisation feeature

brian avery avery.brian at gmail.com
Tue Sep 29 04:45:19 UTC 2015


From: Michael Wood <michael.g.wood at intel.com>

This feature is currently under heavy development and should be used
with caution.

Signed-off-by: Michael Wood <michael.g.wood at intel.com>
Signed-off-by: brian avery <avery.brian at gmail.com>
---
 lib/toaster/toastergui/views.py     | 1 +
 lib/toaster/toastermain/settings.py | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index 8689a12..2e3b822 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 b149a5e..6439d68 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
 
-- 
1.9.1




More information about the bitbake-devel mailing list