From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 5BC96E00C46; Fri, 29 Apr 2016 11:25:07 -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,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 * [74.125.82.53 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-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EE321E00C2E for ; Fri, 29 Apr 2016 11:25:03 -0700 (PDT) Received: by mail-wm0-f53.google.com with SMTP id a17so49623725wme.0 for ; Fri, 29 Apr 2016 11:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=mY2RxOF4HFWoxhPbM25KD0stkf2et7VRj8nIkTc4Ujw=; b=oxVhydD89sPIRhcnzSsO521+Xtjy4NLjawhNsYsAOHAupnGqFTI0Uvp0LjfcpfYqDq frLsQP/L6p3hv/219WiE4peklXHQy0vqhFpqGSqBUN7ePaQARlHcqivvYfVrzJwyPiiO X8v6jtephujlFlYJpgH5I30FizjpA45ZFynez6FDqFQ3TkjYP4tMgaYF2qnVlKyKV+6D n5HdPUjk4j2BK8qzeP/rQ5qa00B05wMEBh4IaT0oyNd1bKn/6RkUbDOCcrIN4oy3owb/ m6Ck2ZJMn269mmWpA8ts1iWexV2z66IcbGY9DDtF0j27gYLgdb1FHoH4BajXbOgAKwBI ql1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=mY2RxOF4HFWoxhPbM25KD0stkf2et7VRj8nIkTc4Ujw=; b=euM/3tdkFsic4c/E9q1yWS2Jw8GpbWZes7uy1rKa+vuNcOqLz1qy/GIsAWYkK3tQKF Qmq5Z26PS80LAuSwKJpMNAMLqCzStapk9H293npsaogitWIzM9e8cG9Il67RI9sYfdWH IrSCof6m2qp2jKZnpDUB5fQZPuYk19beLKta8BJ25jZ5OO5S7z81RMd4pPn+uUQt5pZX a9rx5PHpbzfUqwwSDLiQCICQuSYezHrijVoZJQV5lXZNedf/F2/RsfwXTo157D/Oi8iU lIwd9XOwrGY1CIlm8oYLpWPDw1vI74wrzV3sF36H+sixb5kCawt+Njx0Y6alktm1kifB XxMA== X-Gm-Message-State: AOPr4FXEz/aA2+da/1Cenv7RnMef5olnP9m7QNN/ztAXGl8/dVUi8sEjgqPorZ4KJTzvFYJg X-Received: by 10.194.78.235 with SMTP id e11mr23056802wjx.54.1461954302945; Fri, 29 Apr 2016 11:25:02 -0700 (PDT) Received: from [192.168.0.44] (host109-153-231-53.range109-153.btcentralplus.com. [109.153.231.53]) by smtp.googlemail.com with ESMTPSA id f11sm4491833wmf.22.2016.04.29.11.25.01 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 29 Apr 2016 11:25:02 -0700 (PDT) To: toaster@yoctoproject.org References: From: Michael Wood Message-ID: <5723A6FD.4090606@intel.com> Date: Fri, 29 Apr 2016 19:25:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Subject: Re: Toaster to work with non-git layers 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, 29 Apr 2016 18:25:07 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Sujith, Thanks for the ping. My thoughts on this... I had a look at those patches and unfortunately I think it's just too much of a work-around to push this into the toaster at the moment. That's not to say that this isn't something that we want to fix. There are at least two larger problems that need to be solved for this: 1) i) Allow non-git layers in the project configuration ii) Change the UI assumptions that layers are in GIT iii) Fixing up the localhostbecontroller 2) Fix the setting up of Toaster to allow pre-defined configurations Currently we scan a slightly unwieldy toasterconf.json to load in a lot of the initial data. The more standard way of doing this is to use the fixtures feature of Django https://docs.djangoproject.com/en/1.8/howto/initial-data/ Having used the fixtures for unittests I'm wondering if in our toaster setup routine we load some fixtures and provide a directory which is scanned like lib/toaster/fixtures.d/ where people can remove or add to with their own fixtures whether that combined with (1) might meet your needs. Thanks, Michael On 27/04/16 17:06, sujith h wrote: > A gentle ping. There is a request from Mentor to review this patch. > The release would be pre 2.2 release ( around august 2016) for us at > Mentor. And hence if we can get through this change, that would be > helpful. Or if we can get > https://bugzilla.yoctoproject.org/show_bug.cgi?id=8456 before 2.2 that > would be helpful too. Because both address same cause. > > On Fri, Mar 18, 2016 at 6:29 PM, sujith h > wrote: > > Hi, > > Mentor Graphics is planning for yocto 2.2 release. I believe we > have plenty of time. But still organization wants me to get > through with these patches to upstream. So I have pushed couple of > commits in > http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=sujith/toaster-no-git-layers. > > This patch should work as below: > 1) Except poky all the other layers or dirs should be non-git > 2) A script is added which will auto generate toasterconf.json > file based on the information from the bblayers.conf. So the user > should have the required layers already populated in the > bblayers.conf. To run the script user will have to provide the > conf directory path as option. ( like > --confdir=/home/sujith/gitroot/poky/build/conf ). This conf > directory will be the location where local.conf and bblayers.conf > will be residing. > 3) Export toasterconf.json file which will be created in the build > directory. For example: > export > TOASTER_CONF=/home/sujith/gitroot/poky/build/toasterconf.json > 4) Run toaster. > 5) User should be able to see the layers in the UI. Which should > be ready for the build. > > Thanks, > Sujith H > > -- > സുജിത് ഹരിദാസന് > Bangalore > Contributor to KDE project > Contributor to Yocto project > http://fci.wikia.com/wiki/Anti-DRM-Campaign > http://sujithh.info > > > > > -- > സുജിത് ഹരിദാസന് > Bangalore > Contributor to KDE project > Contributor to Yocto project > http://fci.wikia.com/wiki/Anti-DRM-Campaign > http://sujithh.info > C-x C-c > >