Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E3080E00D26; Tue, 22 Nov 2016 09:56:22 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.125.83.52 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-pg0-f52.google.com (mail-pg0-f52.google.com [74.125.83.52]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8A1A7E00CC0 for ; Tue, 22 Nov 2016 09:56:07 -0800 (PST) Received: by mail-pg0-f52.google.com with SMTP id f188so9765689pgc.3 for ; Tue, 22 Nov 2016 09:56:07 -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=uL0hb+MhfiR0750G5HajZt55naQMZW6pPA8TBrg0qyQ=; b=pWoMv3oOMQTSD4gx7XhsZsrQDy+xCPzLMdG+uAs8h0zFsKV5QC9fzptPOVoIZnrpqQ DOiWtyawqTdNcBw+8YIBNI2v22A89cCafwLcoS3W/9DHedtzevB1bHvQhGmPXHxiHRq9 SRTypbHNvafXzPkHVfcpwsrj+TzyZ+zvKVrtyezLYmmZROheDna+r21AF3s75oyq3zds Fl5SEV3b2Woxc9CsrkjbxfNbBhlrppcTc8k5wFkH9qVZD/skrpmU9w6c7jZKEFbHiA9I fsWsnAO0vZpkm8/BN8fd7cjOLvBnuQRj67ifhPzR2+oqF1Q/dQbgVoP5LvWYjn4CZsGZ ON/g== 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=uL0hb+MhfiR0750G5HajZt55naQMZW6pPA8TBrg0qyQ=; b=bRfymN50kfCHGw3OFYs7wJm65svPkQ0Qu008HpdP2uRwtBs3pqIOC9vgkkRYSJjuE8 HHZxN5p5FbEfZvhBVksBRqxDWa0/MNVrtfUk9qdgdp5evYp4xqBEuqM2vwBAg3H9ezeq /puOBktGekkxGSkxySe7z1yP/jPiyclMrj9GwGesZzjMEKM9w910hhmmivGgH+lsflre 7b5GZS8j6OzqipSLBJksTZ4JEPHR4GwzmWQjxfViIBYWRvi1904tJtI5P8obzyfUa68w 39JtFz5m/bNwTdHnxZi7Jg7P/kei6WB2V7dxMSeWtxXuZ1aME9ZEmEKEblBlx0zu8Gtd wZvg== X-Gm-Message-State: AKaTC01ta3s9vmjpq9Mi+0XRgvPb/2XdZ0cC8mu5diJPl6s/NEVnzB5S/ZOJwcCBusPggOCy X-Received: by 10.84.131.165 with SMTP id d34mr2075263pld.41.1479837367020; Tue, 22 Nov 2016 09:56:07 -0800 (PST) Received: from orion.ger.corp.intel.com ([192.55.54.42]) by smtp.gmail.com with ESMTPSA id y6sm28758504pge.27.2016.11.22.09.56.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Nov 2016 09:56:06 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Tue, 22 Nov 2016 17:55:31 +0000 Message-Id: <1479837338-15969-12-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479837338-15969-1-git-send-email-michael.g.wood@intel.com> References: <1479837338-15969-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 11/18] toaster: localhostbecontroller write toaster layers for project to toaster-bblayers.conf 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: Tue, 22 Nov 2016 17:56:23 -0000 From: Sujith H Instead of updating conf/bblayers, here we update toaster-bblayers.conf file. So extra effort to update bblayers.conf can be removed safely. Signed-off-by: Sujith H --- .../lib/toaster/bldcontrol/localhostbecontroller.py | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index 3896a82..11335ac 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py @@ -286,19 +286,8 @@ class LocalhostBEController(BuildEnvironmentController): self.be.sourcedir) # update bblayers.conf - bblconfpath = os.path.join(builddir, "conf/bblayers.conf") - conflines = open(bblconfpath, "r").readlines() - skip = False + bblconfpath = os.path.join(builddir, "conf/toaster-bblayers.conf") with open(bblconfpath, 'w') as bblayers: - for line in conflines: - if line.startswith("# line added by toaster"): - skip = True - continue - if skip: - skip = False - else: - bblayers.write(line) - bblayers.write('# line added by toaster build control\n' 'BBLAYERS = "%s"' % ' '.join(layers)) @@ -311,9 +300,10 @@ class LocalhostBEController(BuildEnvironmentController): # run bitbake server from the clone bitbake = os.path.join(self.pokydirname, 'bitbake', 'bin', 'bitbake') - self._shellcmd('bash -c \"source %s %s; BITBAKE_UI="knotty" %s --read %s ' + toasterlayers = os.path.join(builddir,"conf/toaster-bblayers.conf") + self._shellcmd('bash -c \"source %s %s; BITBAKE_UI="knotty" %s --read %s --read %s ' '--server-only -t xmlrpc -B 0.0.0.0:0\"' % (oe_init, - builddir, bitbake, confpath), self.be.sourcedir) + builddir, bitbake, confpath, toasterlayers), self.be.sourcedir) # read port number from bitbake.lock self.be.bbport = "" -- 2.7.4