Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 9FC3CE00FCE; Fri, 25 Sep 2015 11:07:50 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.212.181 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 01EFCE00AD1 for ; Fri, 25 Sep 2015 11:07:50 -0700 (PDT) Received: by wicfx3 with SMTP id fx3so32298347wic.1 for ; Fri, 25 Sep 2015 11:07:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=resqWvlCI55p8BTtYvrtKjF2H0nxg51Lrz+jJYXhpUo=; b=m0JobTsKecwnph6rq05XCFNxksb/3rMFerVjNcyh34F+N1udiiSO1S3N3FS2cK0EyA OjYPlEmO2n/4Zc4hZF6q/cbec2U+MqdHetAzvqRdcVKEUKNcsx7Wj+Ckd+42SAvAEv0o YiYQMG5ril58VzY8g0EYn/geq6UDHOkJFhDTquvhx9k64vjAK4dWOEI8Yr0bvi5BFkOy oPHgSwVqB6Xx6/kTCZf04xulctNBN4sqEI/2lnLGwWiS0zdeNL/Q4NBw8VOvCFsqF7Yx l0pwq+CYo8x4Q0izcEIxKpWHJZ64IcLjydYXFBFJ4tQwqL4jT1R/rKBUjT6Sqlas4p6g KQxA== X-Gm-Message-State: ALoCoQm+oGRo+JpSRJqAoXuMvnHNAjBxcuXKqjS/RH+eEken/tgvEDQ54OGngRAiV8MlM04ktuvj X-Received: by 10.180.90.166 with SMTP id bx6mr4702684wib.93.1443204469433; Fri, 25 Sep 2015 11:07:49 -0700 (PDT) Received: from draco.isw.intel.com ([83.217.123.106]) by smtp.gmail.com with ESMTPSA id uq5sm4511789wjc.3.2015.09.25.11.07.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Sep 2015 11:07:48 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 25 Sep 2015 19:07:20 +0100 Message-Id: <1443204452-32244-10-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443204452-32244-1-git-send-email-michael.g.wood@intel.com> References: <1443204452-32244-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 09/21] toaster: add toggle for enabling image customisation feeature X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2015 18:07:50 -0000 This feature is currently under heavy development and should be used with caution. Signed-off-by: Michael Wood --- 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 8689a12..2e3b822 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 b149a5e..6439d68 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 -- 2.1.4