From a7f43bd532513e1a5a9d84e797c707f6039c914a Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Mon, 28 Sep 2015 21:45:19 -0700 Subject: [PATCH] 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 Signed-off-by: brian avery Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/views.py | 1 + bitbake/lib/toaster/toastermain/settings.py | 5 +++++ 2 files changed, 6 insertions(+) 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): 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/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 @@ 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