Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3BF90E00B89; Fri, 4 Mar 2016 09:59:20 -0800 (PST) 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,DKIM_SIGNED, DKIM_VALID,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.192.177 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id ABCC6E00B70 for ; Fri, 4 Mar 2016 09:59:18 -0800 (PST) Received: by mail-pf0-f177.google.com with SMTP id 124so39274225pfg.0 for ; Fri, 04 Mar 2016 09:59:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ahqL4O/jucJ396gfsDb2VOTuP7BKGqSXkfhYYzrkgco=; b=EEoJEtnYhicSc8aaEqyz8LsoNExS0aScDFHieocGlPIPmZw0EU9rdT4ddMJTUlb99h tbspVySPXPTvgD93PsZl76FIfFDzrps4jUZbOuYe5IHrNev2QQYzmX8wWpOqmwz2Dmr4 1nJFZvfD5ZSxJoOB00DZkHAR8zLHj0MbzFaoU0R5+AvlH35wFu1gy0JCbxULwrxVvQe+ XjnTVG+jdKqRoCe4ljRp/rWMUSGFF7u0kZRw08iw3lheIXrsL5tb2kjeUbgH4fL4QLM3 qWUs3GGneKRgf3zWxzeJJFFLHY0swGhGQcq7OxXUlE7s1wCt1uSNP4l3tBl1PVTFm2d1 hxNg== 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=ahqL4O/jucJ396gfsDb2VOTuP7BKGqSXkfhYYzrkgco=; b=YHm17zEUpLs1zQxN2LGA5onFwiTr5b4fBVUvFaIEUEZ9VWN9U6+lxuPrBJ+LZMoAYi l3hdxVporaGXD2D6U07d7QmR4qiVglPnBp/ZVy5PZLAIX29uXsEJv1WQNP49LcaneJaA hD7knOv0wb0zIt5jOlkDgtRJKlkelf0Hr22j9IHLT9f8J0BaO6LirSLIJkyD1t5DhiSD erMPpwnAoRHBvGNKyc6XCm0NWxirPKX1bAZzWUeqxddH/sd1cDAkF9XYdz+14/44xb0z p2/DButSROY5O4sqBdfCIPA7FTr1hkzCtPIClTLzevBa4CQnHSjPqjPkoIQEBQHKxwKD oxsw== X-Gm-Message-State: AD7BkJLIjNyqu2wz8pavG3MV7EHS/9B5LmyVK2iJbBohq/yvZoRw8ebsAVNM8kE2ZLH4oMTe X-Received: by 10.98.16.85 with SMTP id y82mr13902823pfi.90.1457114358783; Fri, 04 Mar 2016 09:59:18 -0800 (PST) Received: from dorado.ger.corp.intel.com (fmdmzpr04-ext.fm.intel.com. [192.55.55.39]) by smtp.gmail.com with ESMTPSA id 9sm6972342pfc.69.2016.03.04.09.59.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Mar 2016 09:59:18 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 4 Mar 2016 17:58:56 +0000 Message-Id: <1457114340-16784-2-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1457114340-16784-1-git-send-email-michael.g.wood@intel.com> References: <1457114340-16784-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 1/5] toaster: localhostbecontroller Don't clear out toaster custom layer dir 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, 04 Mar 2016 17:59:20 -0000 We may have a recipe which is based on a custom image recipe that has already been built so keep the recipe file around so that it can be read by the generate recipe function. Signed-off-by: Michael Wood --- bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index efd82c3..38e97a2 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py @@ -217,9 +217,9 @@ class LocalhostBEController(BuildEnvironmentController): raise BuildSetupException("BE is not consistent: bblayers.conf file missing at %s" % bblayerconf) # 5. create custom layer and add custom recipes to it - layerpath = os.path.join(self.be.sourcedir, "_meta-toaster-custom") - if os.path.isdir(layerpath): - shutil.rmtree(layerpath) # remove leftovers from previous builds + layerpath = os.path.join(self.be.sourcedir, + "_meta-toaster-custom_", + bitbake.req.project.name) for target in targets: try: customrecipe = CustomImageRecipe.objects.get(name=target.target, -- 2.5.0