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 C0FDECCA479 for ; Mon, 18 Jul 2022 12:11:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 92CF784019; Mon, 18 Jul 2022 14:11:52 +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="MzyRMKFd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8A7F284019; Mon, 18 Jul 2022 14:11:50 +0200 (CEST) Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) (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 D79F883FF4 for ; Mon, 18 Jul 2022 14:11:47 +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-qv1-xf2f.google.com with SMTP id l11so8541705qvu.13 for ; Mon, 18 Jul 2022 05:11:47 -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=YUmJI/scDmIzdbZs/2lpqyl5UkQrQL2dAowbuDfn+jc=; b=MzyRMKFdjgZwi3qzAJy/qNhuk6LjHmO2q9Uc/GvjCjS2NrYhWTAPiwA9idDLputMXK n68DB3sLv7GpaYJagx0xPZPATDlezH0SYSblfqXO7tnWjwWCXJXhWzpKoLjNv4H+bMKT ZFiRtpaNfJDa9sQU/Jdfd1YDnbX8cnzSIMeMM= 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=YUmJI/scDmIzdbZs/2lpqyl5UkQrQL2dAowbuDfn+jc=; b=UrtI50BY7jNYIMXTxO9WdjUJ0FAJ+WZx0qpuEDsta2J+dmEfZkph4wu0IdTbX0FZvA PDzJio2fzHWMGHQeuR9ps0q+gcVtJ8emJjyiWj+CPIvOoVGVml79t+SeXC3h6AXaBD0w 82uZEi/rE1ha7lFHWdEY8sDyYZEwGlAzYzyjLp/J5mylcfaTtP9stDrQ1k4Pxu3M//QT 7OOSdiyowQLShDTvf3UzlwIr0yM5+WHrJOkuEBF1NbGr/XFJs88o5k0b4nEwAz0kuRlO PQYzjPPxWdrwAOaLnjbCt76BD04+S4USStWeTG7tZKSTcvXuK2nuYsJpcdXGmk852sy7 tEbg== X-Gm-Message-State: AJIora/I2hooxeeeXelZmb2rvoChmsTCD40IEL0bQVmAD13oeMIYXju0 uIVU7R6nb+eww3AWPgu8R92OYN504A1dbA== X-Google-Smtp-Source: AGRyM1uwqWrXuWuyMD+GLaHxXcBaUkRxzXF2NfaQzoe85kTkz58KQHBRQZPTaNO53SiyXYWXpebfpg== X-Received: by 2002:a05:6214:c8c:b0:473:5aa:f71d with SMTP id r12-20020a0562140c8c00b0047305aaf71dmr20269793qvr.18.1658146305919; Mon, 18 Jul 2022 05:11:45 -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 t13-20020ac8760d000000b0031eb5648b86sm8851068qtq.41.2022.07.18.05.11.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 05:11:45 -0700 (PDT) Date: Mon, 18 Jul 2022 08:11:43 -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: <20220718121143.GU1146598@bill-the-cat> References: <20220712010413.331984-1-sjg@chromium.org> <20220712010413.331984-11-sjg@chromium.org> <20220712213851.GS1146598@bill-the-cat> <20220713182117.GQ1146598@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WiIxwa+mzeHJw/ie" 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 --WiIxwa+mzeHJw/ie Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 14, 2022 at 04:21:57AM -0600, Simon Glass wrote: > Hi Tom, >=20 > On Wed, 13 Jul 2022 at 12:21, Tom Rini wrote: > > > > On Wed, Jul 13, 2022 at 09:28:06AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > 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 separat= ely. The > > > > > board.cfg file is still produced as part of the build, to save ti= me when > > > > > doing another build in the same working directory. If it is out o= f date > > > > > with respect to the Kconfig, it is updated. > > > > > > > > > > Time to regenerate on a recent single-thread machine is 4.6s (1.3= s on a > > > > > 32-thread machine), so we do need some sort of cache if we want b= uildman > > > > > to be useful on incremental builds. We could use Python's pickle = format > > > > > 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 whi= ch use > > > > > a particular SoC (similar to 'buildman -nv ' > > > > > > > > While I don't think other tools still use boards.cfg, this will mak= e it > > > > easier to find out that I'm wrong. Perhaps once the CONFIG to Kcon= fig > > > > 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. > > > > > > 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 > Ah OK. At present moveconfig has the functionality to list the boards > that have particular options (-b and -f). It is expensive to build the > database though - over a minute on a 32-thread machine. So we would > have to cache it. Also just about any change would invalidate the > cache and I'm not sure if it possible to detect which changes have no > effect on which cache entries... Ah, maybe it will take some more thinking about then. Maybe an "advanced" match option, and also seeing how to have Azure generate the db in one job and pass it as an artifact to every other job in the world build stage. Not an immediate need. --=20 Tom --WiIxwa+mzeHJw/ie Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmLVTf8ACgkQFHw5/5Y0 tyw4Zwv+Ofdth3XVmgsj8x1gMTjglhyYR0ZI+30cNMyIz6yLtzGYUGV52BwmzIQ2 l6SkG8YcXc+1DT4BhUp2rk4tfFx4qTlZWj2B0zfi2yoh5021TU9yW+QaidsZkQ38 Vh1IdfZgx4LUc0gvbC/2ceH3DhqZTWEOc4yK1ZwkS5X2F+G3Yv24ycUkA1maschU +PrjYrLBDPX60h+EZxD+S/FPZ2yH6P2iSgCv/6ZTb/mlHrn0Yr8GKKEXIv0nunPs 1Z94GM6S2w4n68yrrMRwGNWxYStGy3QYpMcYOJfsXk32fXs2DnBdoAmc8zaeqlJe RKWs8D96F9NZcfPgv6dP4YSUZvZM5VR+8TT1XKJ3T3ZTYrkpttiA6e/IZDOyNfUT t8Qe5jTRi8bpiORlJk/5Ct1dSK9rkxUqJzQfewg7FABQlX45zj/KdEQounwI4vUn FjkAQzHBZBDZYEZIX9FHJ+DlKnXvNbVDqXaZWMU9ZJcoqnzR+7lSjLUSAzTrEP48 Qs8Gvu10 =cr9c -----END PGP SIGNATURE----- --WiIxwa+mzeHJw/ie--