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 54DB5C433F5 for ; Tue, 10 May 2022 12:34:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6568783E49; Tue, 10 May 2022 14:34:22 +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="Pa4OmeaT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C992B8428F; Tue, 10 May 2022 14:34:20 +0200 (CEST) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) (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 5013883D8B for ; Tue, 10 May 2022 14:34:17 +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-qk1-x734.google.com with SMTP id m1so5818455qkn.10 for ; Tue, 10 May 2022 05:34:17 -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=0YPG2cS3aJVB99yguTUOSm3ZNUuwmzIjprWY45Ka+Ns=; b=Pa4OmeaTadfrULWwyjYB0qNr1ZliTV9QhmUb5E7q7XpCw/fKdg9dNI9o+a73RBADGx /16VAbIicRphCSlj2VrBnAjImSkDFSiMyKwuEm+jUynNrNnbnXjGiB0wAAzpJYU7unFp RPE+qHk1/fyOAvULmWpBwck2Hv8sLeJ94x/OA= 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=0YPG2cS3aJVB99yguTUOSm3ZNUuwmzIjprWY45Ka+Ns=; b=HqlOQ4jlBGRPC463LKLKky+a14q2NwY4HoWK4IhE6iojKQJjKJbsJ7rN4mBwJrek56 U5buuMrkEmlFnPuxkSMV3xhC2XSLMGbYNIvTuX/pX1ikWgwpsxCJ7lLMS/+C9hPXfZqJ MuwLTHziQQ2z5qBDsPRhhM+1MXHlAKx2CovwgezdDSY698wv+o+XSC87WsW39KGJ0HJk ChQ3376ETc1gAketNTdl86QirvsQpUcafC7aXNEEaBcthCLnEqS+rG28Ll+fY+B5eHUk XfoOMUPUHEAOfmqBn1U3aBlkf/Dvo4nhVX4JMbt2ikSGznTYze646EU/QBu6WrVOWhuK 7p7A== X-Gm-Message-State: AOAM530xnIhf1lxztr3YjR7hYlmyzbJMlVr9RPLrYXpzKX8hPEeozGUB UWCKq5y+R0W6Tih1ifuJJfU4HQ== X-Google-Smtp-Source: ABdhPJyqizYBF9yJ+9hv/FTYqHPLjIhodqqRvtLEtKCV6akwqIrmLI2REjdN/ThxRh6+2Y7vGKGDrQ== X-Received: by 2002:ae9:edd5:0:b0:69f:d773:5327 with SMTP id c204-20020ae9edd5000000b0069fd7735327mr15208493qkg.481.1652186056160; Tue, 10 May 2022 05:34:16 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-4500-d110-18bb-ea39-1e35.res6.spectrum.com. [2603:6081:7b01:4500:d110:18bb:ea39:1e35]) by smtp.gmail.com with ESMTPSA id p185-20020a37bfc2000000b0069fc13ce24fsm8626534qkf.128.2022.05.10.05.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 05:34:15 -0700 (PDT) Date: Tue, 10 May 2022 08:34:13 -0400 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Simon Glass , Stefan Roese , u-boot@lists.denx.de Subject: Re: [PATCH] SPL: Do not allow enabling SPL symbols for non-SPL builds Message-ID: <20220510123413.GF3901321@bill-the-cat> References: <20220509185350.19752-1-pali@kernel.org> <20220509202250.GD3901321@bill-the-cat> <20220510112930.7t7qk3tjjjjzmjix@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="livrSZtJkVq9DDdS" Content-Disposition: inline In-Reply-To: <20220510112930.7t7qk3tjjjjzmjix@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.5 at phobos.denx.de X-Virus-Status: Clean --livrSZtJkVq9DDdS Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 10, 2022 at 01:29:30PM +0200, Pali Roh=E1r wrote: > On Monday 09 May 2022 16:22:50 Tom Rini wrote: > > On Mon, May 09, 2022 at 08:53:50PM +0200, Pali Roh=E1r wrote: > >=20 > > > It does not make sense to enable SPL options when not building SPL bi= nary. > > >=20 > > > So disallow selecting SPL options for non-SPL builds. > > >=20 > > > Signed-off-by: Pali Roh=E1r > >=20 > > Some of this makes sense, where you add SPL as an explicit dependency. > > But others: > >=20 > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > > > index 0afec5155b1b..e4b2b76650fe 100644 > > > --- a/arch/arm/Kconfig > > > +++ b/arch/arm/Kconfig > > > @@ -985,7 +985,7 @@ config ARCH_MX6 > > > imply SYS_THUMB_BUILD > > > imply SPL_SEPARATE_BSS > > > =20 > > > -if ARCH_MX6 > > > +if ARCH_MX6 && SPL > > > config SPL_LDSCRIPT > > > default "arch/arm/mach-omap2/u-boot-spl.lds" > > > endif > > > @@ -2343,7 +2343,11 @@ source "arch/arm/Kconfig.debug" > > > =20 > > > endmenu > > > =20 > > > +if SPL > > > + > > > config SPL_LDSCRIPT > > > default "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" if (ARCH_MX23 |= | ARCH_MX28) && !SPL_FRAMEWORK > > > default "arch/arm/cpu/arm1136/u-boot-spl.lds" if CPU_ARM1136 > > > default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64 > > > + > > > +endif > >=20 > > Where it's like this and we're providing default values and the option > > itself is prompt'd elsewhere don't as it's not cluttering the resulting > > .config file. >=20 > Apparently it clutters the resulting .config file. Espressobin with > mvebu_espressobin-88f3720_defconfig has CONFIG_SPL_LDSCRIPT in .config > even there is no SPL for Espressobin. Ah, OK, that is odd. I think we need to move these to where the question is asked then, instead. --=20 Tom --livrSZtJkVq9DDdS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmJ6W8IACgkQFHw5/5Y0 tyyhRwv/aYYo1cy2hGdocodXZdgOgAuSftRxVAHhUncCSFfQCpKxWzCw9t/xShUJ EGyf3U3vuV7KgBMms9zbZGZvQ3A9XOkZewbGf9A4d+RC3WEpRDd78FWmC3Fe7xz/ xemEvsCfXPWtPzkTYWhrUWFyP7v69fnanZBpKPVyYjTF+3vWC6tY1yEtGI3ImTmZ LndoZlf68zpx19tHvRRE7JKDSMes6qJoRKXIsg/RGkknNgYHnhxNIL3THSqu/GhK 3+TIeT2UzC57LLpDNouUEUFvQqBBhsCaJIYGr5AZc+du6bgocnJbA/+XlmBc33so 8nn2EY9p6yjX87dnFsqWmarzpV/mxgUKG/8RC0+ebdc3jBmvUFlWZfheRGDCR+dC tdMNGXjSLs+eqGf81pZsG9WndUDNlwdUuZkPk6hRKcX7IL5AgQnrLkwuOMumQSj2 k11h7KLinl6Dp3ckAjJu26XkkdxiaESOPZXF+R+h5D26gjjJMkCzmc/sRcKl8wdr E1ihemMs =c8Qe -----END PGP SIGNATURE----- --livrSZtJkVq9DDdS--