Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 67CCDC433EF for ; Wed, 13 Jul 2022 18:21:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 83C7783C35; Wed, 13 Jul 2022 20:21:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="M+6oHZJG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DC6A583C35; Wed, 13 Jul 2022 20:21:24 +0200 (CEST) Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B3C3983A03 for ; Wed, 13 Jul 2022 20:21:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x833.google.com with SMTP id y3so12531050qtv.5 for ; Wed, 13 Jul 2022 11:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=TgguPveCGydNLE2lSNvkECNtBDhex1L8LiMrJabysf8=; b=M+6oHZJGMvZwrUH+gOgS7OL45Mq31AjN5LSUmcRSw1jTUZSIPGngRWM1SGVkwwRxvS w2tn+JZQfDLlY6hnttdecnloAWRef3/QZOekeooAig+DH8GL5/86xIJsoXbq2+qvgCnj TPcN9EBYL8Zeih80YAL1rBVgwFe5KTp1k+WKA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TgguPveCGydNLE2lSNvkECNtBDhex1L8LiMrJabysf8=; b=Eq3fvwi9eGhE6DrKPUMq8PKgxcK29tSTUftFI38IZHb+ctZcDr6Zo4/vbrkY8jV2SI 1Ccgs98X9xiNfFbXDasp6xAQTpxE4jNVnODCavL+/csLGZWqFb9xQPh0w/fVfInuR4SW F/wdy3Yd4rzRp7ADGLGqN5toz1mDKvQEGGBbccgUG/FitzFHxUGqoZhC+ifNRpKv6HAM ACJ3FdSaoFAcBCC+937w3lHkfCU51LCdpW1zeA383iz0+A1U9z+v1S6Tq4/g4kxUkNSS w2FVC3ivVQSugpzsTd5xTFOXvdMDWsY6KmCxmIk4tU7Qz6SWkSA/1DRn4KEbsWIMfKWq eE0w== X-Gm-Message-State: AJIora+e/AEtocUPe+nORr1wVn+L86huivEApAzO/9N0DlVl5y+I5uqy vSn7MB4ab8gtq8LqFSteortyQA== X-Google-Smtp-Source: AGRyM1vViRhaFdrR2NOMDvgtD8xTuuL9pFATIOwl3jCq/4u/uqj/GlzgeM8tBaHYxCImLJj8nh7AHA== X-Received: by 2002:ac8:7f8c:0:b0:31e:beec:ecaa with SMTP id z12-20020ac87f8c000000b0031ebeececaamr4400764qtj.413.1657736480425; Wed, 13 Jul 2022 11:21:20 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id a15-20020ac8108f000000b0031e9ff0c44fsm10002070qtj.20.2022.07.13.11.21.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 11:21:19 -0700 (PDT) Date: Wed, 13 Jul 2022 14:21:17 -0400 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List Subject: Re: [PATCH 10/19] buildman: Incorporate the genboardscfg.py tool Message-ID: <20220713182117.GQ1146598@bill-the-cat> References: <20220712010413.331984-1-sjg@chromium.org> <20220712010413.331984-11-sjg@chromium.org> <20220712213851.GS1146598@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TED6oyTl5QtJNQUk" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --TED6oyTl5QtJNQUk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 13, 2022 at 09:28:06AM -0600, Simon Glass wrote: > Hi Tom, >=20 > On Tue, 12 Jul 2022 at 15:38, Tom Rini wrote: > > > > On Mon, Jul 11, 2022 at 07:04:04PM -0600, Simon Glass wrote: > > > Bring this tool into buildman, so we don't have to run it separately.= The > > > board.cfg file is still produced as part of the build, to save time w= hen > > > doing another build in the same working directory. If it is out of da= te > > > with respect to the Kconfig, it is updated. > > > > > > Time to regenerate on a recent single-thread machine is 4.6s (1.3s on= a > > > 32-thread machine), so we do need some sort of cache if we want build= man > > > to be useful on incremental builds. We could use Python's pickle form= at > > > but: > > > > > > - it seems useful to allow boards.cfg to be regenerated, at least for= a > > > while, in case other tools use it > > > - it is possible to grep the file easily, e.g. to find boards which u= se > > > a particular SoC (similar to 'buildman -nv ' > > > > While I don't think other tools still use boards.cfg, this will make it > > easier to find out that I'm wrong. Perhaps once the CONFIG to Kconfig > > migration is done we can move to just pickle'ing the data or similar > > since I find the main use of what was in boards.cfg can be figured out > > with some other git grep'ing, and in turn that's mainly for me when > > trying to convert stuff. Thanks for doing this. >=20 > Yes. I'm excited to hear that Kconfig migration might be done - any > forecast as to when? Not yet. I'm auditing CONFIG_SYS_* now, with a notion to move everything that's not really configurable just out of CONFIG namespace as the starting point. That'll drop us down to ~500 to migrate, which feels a bit less daunting. > One thing we could to is provide an option for buildman to spit out > the various fields that go into boards.cfg Right. So I might not have said this before, but one reason I wanted buildman to natively know kconfiglib and have everything was that while we can do a lot of good matching on what to build, it would be amazingly good to be able to say "build every platform with NVME_PCI set" (and if it's not too hard hex/int options with a specific value). --=20 Tom --TED6oyTl5QtJNQUk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmLPDR0ACgkQFHw5/5Y0 tyyVhwv/UA1Wp0DFC5zI2f0DNmrTXFGldQN4cwt3KcgSO0ZD4u0noNFaI9gt3WB7 WhFIxtKm6hFms0VBVWTS1cYQVmd4zE8+zEx7GNqdR75uuZM50+jt8x8YyElQ0gPv 4TK5l3n7BJjalhHS599WmC5e+hZOQej2jvQcHWyDyNhOFSxoe3U0Ruz875UJBmnp BzeKnnSgyJ6f57vJdMCybNPSnWcOUyBMFVvLayNOSJb0DrI2y4Wb0oji32TwmJUc UigX5bMRgK42NeI64R6ojcI25lG/g8lJ2c/8UB0ZIsTzrBqcfa9SFU3csY2TrbB/ ZZEiDoMFpQZxKHEv8mGKP0rlmpo0+/qyANIUgG2cSwrYdBEuA3cozTL38w18qfNk 1/TzMyEhpx1baHncpzEyD8eHzYaGm9RjYV4jttTEXLxOlPNpwWOURbGGuplQODOJ 2Eyh5AVomryRf58XPR8qI12M+aioaYwY4Oc2UphupjkYJXCMbPeeZSncHLiz/cyO blrUhy01 =S++s -----END PGP SIGNATURE----- --TED6oyTl5QtJNQUk--