From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9969FC4338F for ; Wed, 11 Aug 2021 14:02:38 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9B4C160FC0 for ; Wed, 11 Aug 2021 14:02:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9B4C160FC0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7CC4782D93; Wed, 11 Aug 2021 16:02:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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="ZqEhb0VX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5B3B482D93; Wed, 11 Aug 2021 16:02:33 +0200 (CEST) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (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 29ECC82DA6 for ; Wed, 11 Aug 2021 16:02:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82f.google.com with SMTP id l3so2117107qtk.10 for ; Wed, 11 Aug 2021 07:02:25 -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:user-agent; bh=lwgoWw/wk9C5oGhIXy07sBsa62SrK0AlwbeZ5mI7RfY=; b=ZqEhb0VX8eMgi8GlOdechGjy+BZ8y8JkAYlr7PcHT1Q24JEl6If5sGAM8Rkm0bWmkf F/pmsdVCyIvVNDIZRZ3pMXV1QwobLbvOYlC7nlHHoSiG0g5MLidPVAAKtm8jntFl/jaQ 6XfQ6bVVdhF2sqSydjYzD5Fi5XOGQJpLgAtlA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lwgoWw/wk9C5oGhIXy07sBsa62SrK0AlwbeZ5mI7RfY=; b=ItbqFn5LFvn/mXni1HdS40a0zJuQeK0GB1RBxsDhZSTGE784dMHZRYvMBJmKqODWMb /LPV0/SsJGQSiUxgp60F0XY8x1iY2a19l4b6cQAiz0Z4SqKfkyGGn4ghsNpI5ML2dJsF UYN+g2Mq5goYDgyMJg1qPVL1l4nqnVksuSINN1QQmSNdb4MpaQh7NJNbrbsmEiHq6CLn Q8zghjUCok7Pg4BLp7dsX7IE/0VQBWQF5lOMeqr7P68htHt4X29mbylBzcG5wCft/i06 com0LrEuaTN+ne+BHg1/yb5RRvdgA2np7IhqHzAWN/APKtOGcCJU7sLALkct2yPwfJiE U02Q== X-Gm-Message-State: AOAM532ZE5Qjefwvk/Wgc2BJuZQ2CrR8TKboo+ksIIiP4AH769n6EYuk WK0ngI8k2kOuM1kb1yjjmDgYkA== X-Google-Smtp-Source: ABdhPJynte/ao/KFX/Axz9VVYmoaLAVowy9rN1np9Pw2prVOMmkPO9G5JH5Jid3K758N4qivth4PSA== X-Received: by 2002:ac8:7f84:: with SMTP id z4mr14705768qtj.114.1628690543548; Wed, 11 Aug 2021 07:02:23 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-2899-f679-6391-9304.res6.spectrum.com. [2603:6081:7b01:cbda:2899:f679:6391:9304]) by smtp.gmail.com with ESMTPSA id l29sm10520661qtn.8.2021.08.11.07.02.22 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Aug 2021 07:02:22 -0700 (PDT) Date: Wed, 11 Aug 2021 10:02:20 -0400 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List , Marek Vasut , Masahiro Yamada , Heinrich Schuchardt , Bin Meng , Stefan Roese , Marek =?iso-8859-1?Q?Beh=FAn?= , Sean Anderson , Aaron Williams Subject: Re: RFC: Support for U-Boot phases in Kconfig Message-ID: <20210811140220.GX858@bill-the-cat> References: <20210809191111.GD858@bill-the-cat> <20210810193809.GL858@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="m2KU9Mr9JJKQaAoQ" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --m2KU9Mr9JJKQaAoQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 11, 2021 at 06:56:31AM -0600, Simon Glass wrote: [snip] > Having thought a bit more, perhaps we have the wrong attitude to > Kconfig. The CONFIG() macro I am talking about works by building an > xxx or SPL_xxx config. If we have separate autoconf.h files for each > phase (autoconf_spl.h etc.) then we don't actually need this. We just > need to include the correct file. Any SPL_xxx config can be written as > xxx. Similarly the Makefile rules can drop the $(P) I was proposing. >=20 > We can, in fact, generate separate autoconf.h files for each phase > today, with no other changes. Unless I am missing something...? If we can spit out {spl_,tpl_,}autoconf.h files that might help a bit. But would it help with the recent case of SPL has SATA+AHCI+!PCI while full U-Boot has SATA+AHCI+!PCI AND SATA+AHCI+PCI ? Today we can't support the SPL case without adding the handful of SPL_xxx symbols so that we can say we have SATA+AHCI without PCI. --=20 Tom --m2KU9Mr9JJKQaAoQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmET2GUACgkQFHw5/5Y0 tyzh2Qv/Yso35/a8gOMKWobkYw1HLUAe5UZveU4vgvxU/6yfMk6gAXJnQ7tt1Gl3 XLdc4fzVoxz6bF7m5zO/NMPZISfwE05VSiwqtQt8PrIFTdtFWA8NNHa6ev+cRmdR pYj7Fv8bmKIR+rdY3bZC89fmyDSzPZkSjFnB/d3UHWA1wp1k5cX3zmea7v4KCbkY mw75aXyKCnin9NeNIAUasJM9TOwOdZBQc2OZ5AkK3LwlnXpP24Dm6TLyd/PZL1Ns 52bQ4BOhQsK1yZqV1K/2oWU36oKytiA7qCB8VAacalsjxrQLE+pcgX7E6MrwrFMH U+4Kd0bsbzyyIcr58fRlLMgueU3AAmMhJ6AWlPeBvSBqA/7gQhBskmiUC7DoxC39 ukfJq9txdkznQBdgryweLYDwX5ebjFGYPE1sGRAeGHP9N+iBKalG+pbYd1o0SN6X BHveTXY4RVSwNWh4oyOFHjsbmREhCFmrfobaiaWtBKoukw6/dObvtt2y2Vk93fBm FCSfAphE =dDLY -----END PGP SIGNATURE----- --m2KU9Mr9JJKQaAoQ--