Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 45D5CE00C92; Thu, 10 Nov 2016 22:16:47 -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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (sujith.h[at]gmail.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.192.195 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 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-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 319B2E00C88 for ; Thu, 10 Nov 2016 22:16:43 -0800 (PST) Received: by mail-pf0-f195.google.com with SMTP id 144so1299546pfv.0 for ; Thu, 10 Nov 2016 22:16:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ot3kTMszTOrLW46ahvm01vd6AQLXOlh3uIDH7icanOE=; b=ygEEaPmxF7M7Z1TRJ0Qh+RQSQXS2mNmsh4TfdhJwpI69hZRVxtYqH1s+vEysSHJ66p WDFfK9NZefuzYueo1yB0BY9sXMyIg+CxXkhIK4GbfVAGFji2kw2QzHDMRIg+DP4kM8K6 MCYDsqhU56kpNrD7FZlzTBhKALxk/n4ebTILYbkgljxeSiQPCzAfuxM3rmzgtMGiHzmP QpUVyYZ8Ns6vUXdZSivMRuTPTNgb1ITg12ouYyuzFecQ8678JsXlbjgR0heDIFPwc+5w GXoMrLLEJCaAz2sYO3oVm5ECGMWqNSXuyTLa3MWFBR0gScyEcMuZ/BgdwA+qdUd/NCbT rq4g== 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=ot3kTMszTOrLW46ahvm01vd6AQLXOlh3uIDH7icanOE=; b=KpjplQkHBduLxGsv146HXd1vHTy+oB/8TJX1zkXiIOsRjgfAFGvXEAHDYs23kKrl/6 yeaDW+xmQBRQYA3wReQN/5NWRvAeIUnRehtPhSCCU0sZb1Cw4gJxCDcvf8wyPRkNJe0t DJzfk7PrONhn0svKqVlSGj/p9a58mr8IkUna39qFmY+W22/ZRw/KWUQ4mTwXJinYIJ2F FPi2u/lSBjP3qcmkiQYsEe0dj3CcRNpQ7ZLg3et4I9fKZ1qLwhTxCEIicq19cxonqvYJ 4ZxwWuqWLxrf7z3Mq7xm4Ljk32CwHbSfElThFfQKg9LqVJGiTHjxSjJSbCA7SZujUobz dAhQ== X-Gm-Message-State: ABUngvdftsAQlKHxOMQ+DX7fEeHgCkSV1ugQVWQys7d7BrOD69ivFjIL3hhPEQyIKyZfxg== X-Received: by 10.98.208.70 with SMTP id p67mr3680160pfg.15.1478845003447; Thu, 10 Nov 2016 22:16:43 -0800 (PST) Received: from kdekidd0.inp-wifi.mentorg.com ([139.181.35.34]) by smtp.gmail.com with ESMTPSA id dc3sm11648447pad.32.2016.11.10.22.16.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Nov 2016 22:16:42 -0800 (PST) From: Sujith H To: toaster@yoctoproject.org Date: Fri, 11 Nov 2016 11:46:26 +0530 Message-Id: <1478844986-21199-2-git-send-email-sujith.h@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1478844986-21199-1-git-send-email-sujith.h@gmail.com> References: <1478844986-21199-1-git-send-email-sujith.h@gmail.com> Subject: [PATCH 2/2] toaster: localhostbecontroller write toaster layers for project to toaster-bblayers 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, 11 Nov 2016 06:16:47 -0000 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.5.0