]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: add toggle for enabling image customisation feeature
authorMichael Wood <michael.g.wood@intel.com>
Tue, 29 Sep 2015 04:45:19 +0000 (21:45 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Sep 2015 12:44:48 +0000 (13:44 +0100)
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>
lib/toaster/toastergui/views.py
lib/toaster/toastermain/settings.py

index 8689a1251e2e5d849cebf30752f5ff3774dbf085..2e3b822797e01a388150499b2121dbffe17cf7c8 100755 (executable)
@@ -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,
     }
index b149a5ed83e8973f910fdd84bae970542497cdc7..6439d68c3fff0989439f471f4e0223693265e3d9 100644 (file)
 
 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