Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 59A70E00F65; Tue, 2 Aug 2016 06:34:53 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.65 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EFF00E00F5C for ; Tue, 2 Aug 2016 06:34:51 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 02 Aug 2016 06:34:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,460,1464678000"; d="scan'208";a="858185359" Received: from hashah-mobl.ger.corp.intel.com (HELO [10.252.1.174]) ([10.252.1.174]) by orsmga003.jf.intel.com with ESMTP; 02 Aug 2016 06:34:22 -0700 To: "toaster@yoctoproject.org" References: <1470144726-5273-1-git-send-email-michael.g.wood@intel.com> From: Michael Wood Message-ID: <8e1981dc-f10e-e8ab-1d37-c63540bfd7a3@intel.com> Date: Tue, 2 Aug 2016 14:34:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1470144726-5273-1-git-send-email-michael.g.wood@intel.com> Subject: Re: [PATCH 0/5] replace custom loadconf with loaddata 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, 02 Aug 2016 13:34:53 -0000 Content-Type: text/plain; charset="windows-1252"; format="flowed" Content-Transfer-Encoding: quoted-printable On 02/08/16 14:32, Michael Wood wrote: > Replace the custom loadconf command with django's own inbuilt loaddata co= mmand. > Django's command is much better tested, supports multiple formats and mak= es for much easier customisation of Toaster. > > We check the TEMPLATECONF value to determine if Toaster is running within= poky or OpenEmbedded-core. And fallback if no value is found. > Based on this we can load default data for the correct environment the fi= rst time you run Toaster. > > - settings.xml This contains Toaster wide settings, such as the default= values for > certain bitbake variables. > > - poky.xml This is the release metadata for supported poky based setup > > - oe-core.xml This is the release metadata for supported oe-core based = setups > > As we also want to allow customisation of Toaster at start up added is a = mechanism to load a "custom" fixture if present in the fixtures directory (= see README). > > After this is merged we can. Remove toasterconf.json in the OpenEmbedded-= core layer and the copy in the meta-poky layer. > > While testing this I added one unrelated patch which is to add a spinner = for parsing/http fetch on the layerindex fetcher - When on a slow connectio= n/machine it's not clear if downloading and parsing the data from the Layer= index is still underway so add some visual feedback. > > Michael Wood (5): > toaster: Add poky and openembedded configuration fixtures > toaster: checksettings call django's loaddata instead of custom > command > toaster: lsupdates Add spinner for parsing/http fetch > toaster: Remove old toaster config loading mechanism > toaster: fixtures Add README > > bitbake/bin/toaster | 18 +-- > .../management/commands/checksettings.py | 88 +++++----- > .../bldcontrol/management/commands/loadconf.py | 179 --------------= ------- > bitbake/lib/toaster/orm/fixtures/README | 30 ++++ > bitbake/lib/toaster/orm/fixtures/oe-core.xml | 57 +++++++ > bitbake/lib/toaster/orm/fixtures/poky.xml | 105 ++++++++++++ > bitbake/lib/toaster/orm/fixtures/settings.xml | 36 +++++ > .../toaster/orm/management/commands/lsupdates.py | 35 +++- > 8 files changed, 307 insertions(+), 241 deletions(-) > delete mode 100644 bitbake/lib/toaster/bldcontrol/management/commands/l= oadconf.py > create mode 100644 bitbake/lib/toaster/orm/fixtures/README > create mode 100644 bitbake/lib/toaster/orm/fixtures/oe-core.xml > create mode 100644 bitbake/lib/toaster/orm/fixtures/poky.xml > create mode 100644 bitbake/lib/toaster/orm/fixtures/settings.xml > Forgot to mention the branch is available at poky-contrib = michaelw/toaster_replace_loadconf --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.