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 CECEEC43334 for ; Tue, 12 Jul 2022 23:15:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 87C7D841EB; Wed, 13 Jul 2022 01:15:54 +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="f6FxDfze"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 77E67841F4; Wed, 13 Jul 2022 01:15:52 +0200 (CEST) Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) (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 924BF841B6 for ; Wed, 13 Jul 2022 01:15:49 +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-xf2e.google.com with SMTP id v5so3688386qvq.8 for ; Tue, 12 Jul 2022 16:15:49 -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=4AJtg5iCCxgladp2I9y+vmw0lsfquQ0LXaTq328fvwU=; b=f6FxDfze0BRpEzluB3//7ByCPd6SYWFynjLM/OUxeIuiM3fRiWHAtf95rk1l1ABT1A ig24ynhxC28UXeb/T2/8Mqu4FOSCHNw0zhy3b53stvgdzc+mFqoddWMmuq49e5v7EyRn zuRMbDlF2WmOl5vVlMJh0pfSdGWVpi/A6kAik= 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=4AJtg5iCCxgladp2I9y+vmw0lsfquQ0LXaTq328fvwU=; b=R+2PwrkfHOgEXlBf2dspo5snw3Vu/ZvcdMlG/sxIVxjcLHI3eSP30IBGRzxwXEI00l r93A+dXOq3h9LjnntgjUIinz56qHxILWE9tkVD/yu29dAfj4sKZnlhJ6bO4cpFXs6+vc rnjlixyEXFLuqJmFgbDSjvcRaja8jjLuQkA0asX+wcxAjdzPf+03gchzVFgl/61UG0ol O8rgpGc+h/8pu0ioj1N99UxKPvK/FBIRRKK/hAlsg2XmXTDj2YxWAEWOEYVeBirW3Ahx cx3uURZVDL5JT4+ZGe0LroD4Cu9q+dpwdcdz/yZOsivjOlE2ieSGLbsBENDkF/ZfnbsM jxsw== X-Gm-Message-State: AJIora9Zx4lItdn3qUhmL8xAMDE9XcCMRrKXE4i8zkemTLQlxoEW6J57 oFhFViNVndQttXuktpg5FJt8iA== X-Google-Smtp-Source: AGRyM1tDagmQBgbYRBlGtM9UmNDUe7L8UpUCTQtTmdyqY5a97HrVz23aWiMMjOykjJnW6waqtepVeQ== X-Received: by 2002:a05:6214:27ce:b0:470:4c26:5e5f with SMTP id ge14-20020a05621427ce00b004704c265e5fmr400175qvb.49.1657667748343; Tue, 12 Jul 2022 16:15:48 -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 x26-20020a05620a0b5a00b006b57ef4dd92sm7614636qkg.54.2022.07.12.16.15.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 16:15:47 -0700 (PDT) Date: Tue, 12 Jul 2022 19:15:45 -0400 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Troy Kisky , Joe Hershberger , Wolfgang Denk , Simon Glass , u-boot@lists.denx.de Subject: Re: [PATCH 2/2] Nokia RX-51: Remove CONFIG_PREBOOT from defconfig Message-ID: <20220712231545.GX1146598@bill-the-cat> References: <20220710114256.27322-1-pali@kernel.org> <20220710114256.27322-2-pali@kernel.org> <20220711232326.GD1146598@bill-the-cat> <20220712081100.ul37eqhxdulh2zk4@pali> <20220712213906.GU1146598@bill-the-cat> <20220712215245.6zjusiwsha7hnhsm@pali> <20220712225831.GW1146598@bill-the-cat> <20220712231135.fb455bstsltpkcd5@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Y+Ej1NH8MofEUWc7" Content-Disposition: inline In-Reply-To: <20220712231135.fb455bstsltpkcd5@pali> 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 --Y+Ej1NH8MofEUWc7 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 13, 2022 at 01:11:35AM +0200, Pali Roh=E1r wrote: > On Tuesday 12 July 2022 18:58:31 Tom Rini wrote: [snip] > > It really isn't, that's why the plain text environment stuff is a good > > step in the right direction. What I'm not sure about how to best handle > > is making it easy for a user, rather than developer, to override > > environment values too. What I mean he >=20 > Maybe the important question is: Why is needed CONFIG_PREBOOT define at > all? Why it is not enough just to set preboot=3D env variable? And same > questions for all other CONFIG_ options. I'm sorry if this sounds snarky, I don't intend it to. But, size. Maybe that doesn't matter so much these days for the size savings on run_preboot_environment_command(). > > > For all this stuff is needed some stronger tool/language than Kconfig, > > > e.g. C preprocessor (like it was before in config.h) or any similar > > > stronger macro language (e.g. m4) or script languages (shell / python= ). > >=20 > > Yes, so, take a look at 5c3f6a320678d64c9fa0c42755488822a033b567 as an > > example of moving a board away from board config.h and to something > > else. What I'm not sure on is how to best handle preboot in this case > > as I'm not quite liking "Enable CONFIG_PREBOOT and then edit > > .../boardname.env to set preboot to the right value". > >=20 > > --=20 > > Tom >=20 > With that commit, all env variables are moved into separate file. This > file can be parsed by other tools and at compile it is possible to > extract current value of preboot=3D env variable or check if preboot=3D is > defined. Cannot be by this logic automatically defined/expanded > CONFIG_PREBOOT symbol? Of course, it would not be Kconfig symbol > anymore. That sounds interesting. --=20 Tom --Y+Ej1NH8MofEUWc7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmLOAJ0ACgkQFHw5/5Y0 tyyg6gv8CVIQwgXru2hPshvnCSx9buyvhs8j7spDDw7ciV8BUuEtzK3ZKyZQVdty 9PxZp2NVL+Eoj32Tui3uJ985StpkiUgUHeuXc8QmOWEvwpKv62e/we9sxjQz7FpH z1+FVqEWApZuJlCk2/doAHgUGzl5w/7MQpCiLUnaWj4gnXtKQDI2XOdJXyXIkn0a 0TxV7tQjAFRtNxoEw6VD30O8BXXV5+NrVUoH3UH2/27AfiQehhlBSYg2FX/z8/5q 5jrB8Vej8J0VPp/OYJMFmj5W6CEUcjUwL/doFsyxn6+QpgCH6HaoE1LRnjT4xdmO 9w3r+OxOyx41AVw0kmAkeBHXMLXID7stvaTKxbhwa2VRe5RuBjWIRVtUqStLQlVa lt3c8ksKb0R+ux63x3q0guAVjTpxOShRFOxCWjdI0YU8jONcKuvFfl8EF4w7/Cl8 KnW476u/knd16fId0++/E4dS4mCLWunRRmGCYnOGHowE+p6liaQnllk5K+hNwf8F Yc04JcZf =04wC -----END PGP SIGNATURE----- --Y+Ej1NH8MofEUWc7--