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 22C04C433EF for ; Sat, 18 Dec 2021 16:50:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 646E78304A; Sat, 18 Dec 2021 17:50:26 +0100 (CET) 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="YDqM+IZy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EF91A8306E; Sat, 18 Dec 2021 17:50:23 +0100 (CET) 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 9EFAB8304A for ; Sat, 18 Dec 2021 17:50:19 +0100 (CET) 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-qk1-x734.google.com with SMTP id t6so5354087qkg.1 for ; Sat, 18 Dec 2021 08:50:19 -0800 (PST) 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=PA+6kAwDDlkIUzwHkzEBJwsim6U+2GO9uLd8EHp8zGU=; b=YDqM+IZyEsG44J6h08B5/QJlFpon6hw3+tsAYqqq0Fm9VYKiUw0tdWtLTmRYOeiEuz 8ijeGR6tJW7eKqWvLzSTHLwHGXkvgJgJYbIoTs2Ei8P5iFf5qejNAYC8b1AfqjP6r7Ck uzyXgYAp9Om4pwDYfTBUT/VP30igHQXQTGEHk= 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=PA+6kAwDDlkIUzwHkzEBJwsim6U+2GO9uLd8EHp8zGU=; b=qhH1RW37spxfF27+FLKpzzqn2sMjJ14DW55fPOnB6v5hpgu3JOFraLj98kamAwjBkb jzrkjvZMWOfQJifSvKK9pGt/0RrPzdzWFY8NEJQqOLDmmWyh19ZBN+vL1OrloGmCOCU2 N6VApZPzeVYkD0UztIKJm+eOst9Gv/NNu19yWre7Liqfin5K+59gQ4Cr/rI9EdJWr1Vp sl+uVJNp20yAkeWWoXniYQKYGFQZU1BqdWisdTkFg4+bOWtA14zixdlBjX9OEJi2IqES ziQZQ5hb/WTkSICTnQWxiIV8vAcWf+ROC8CjHu4g58PTH9EsemiFKs67LUuwnAQiY/HU i0wA== X-Gm-Message-State: AOAM533cMHoB0TM0O2qJEguBV/Sn2CK2W7KeGO26iR9Wfaq7jtXYTlo/ p8zlT3x6JqekjlpmDxzymTnNRQ== X-Google-Smtp-Source: ABdhPJwaGTxR38hIZduRk4S3FYrbmB5H9TV/qOUS1IMvq7X1zpPAUwfZWSSXt8Eozl1+RG8EVJrFxQ== X-Received: by 2002:a37:654a:: with SMTP id z71mr5244727qkb.131.1639846218143; Sat, 18 Dec 2021 08:50:18 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-2998-766a-b2f8-3c0c.res6.spectrum.com. [2603:6081:7b01:cbda:2998:766a:b2f8:3c0c]) by smtp.gmail.com with ESMTPSA id z4sm10182861qtj.42.2021.12.18.08.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Dec 2021 08:50:17 -0800 (PST) Date: Sat, 18 Dec 2021 11:50:15 -0500 From: Tom Rini To: Sean Anderson Cc: Simon Glass , U-Boot Mailing List , Joe Hershberger , Heinrich Schuchardt , Marek =?iso-8859-1?Q?Beh=FAn?= , Mario Six , Patrick Delaunay , Priyanka Jain , Ramon Fried , Rasmus Villemoes , Stefan Roese Subject: Re: [PATCH 1/4] Convert CONFIG_KEEP_SERVERADDR to Kconfig Message-ID: <20211218165015.GO2773246@bill-the-cat> References: <20211218150805.1083645-1-sjg@chromium.org> <8bff779e-a537-3a80-8693-2e60f6f7c6f0@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="brdEIFGMNIjz5YJG" Content-Disposition: inline In-Reply-To: <8bff779e-a537-3a80-8693-2e60f6f7c6f0@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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 --brdEIFGMNIjz5YJG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 18, 2021 at 10:15:08AM -0500, Sean Anderson wrote: > On 12/18/21 10:08 AM, Simon Glass wrote: > > This converts the following to Kconfig: > > CONFIG_KEEP_SERVERADDR > >=20 > > Drop the preprocessor usage also. > >=20 > > Signed-off-by: Simon Glass > > --- > >=20 > > README | 6 ------ > > include/configs/sandbox.h | 1 - > > net/Kconfig | 9 +++++++++ > > net/arp.c | 5 ++--- > > scripts/config_whitelist.txt | 1 - > > 5 files changed, 11 insertions(+), 11 deletions(-) > >=20 > > diff --git a/README b/README > > index 056b717557b..eaf9170e952 100644 > > --- a/README > > +++ b/README > > @@ -1193,12 +1193,6 @@ The following options need to be configured: > > server to contact when using the "tftboot" command. > > (Environment variable "serverip") > > - CONFIG_KEEP_SERVERADDR > > - > > - Keeps the server's MAC address, in the env 'serveraddr' > > - for passing to bootargs (like Linux's netconsole option) > > - > > -- Gateway IP address: > > CONFIG_GATEWAYIP > > Defines a default value for the IP address of the > > diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h > > index cd7d99ec69c..1dd21d5e925 100644 > > --- a/include/configs/sandbox.h > > +++ b/include/configs/sandbox.h > > @@ -25,7 +25,6 @@ > > #define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\ > > 115200} > > -#define CONFIG_KEEP_SERVERADDR > > #define CONFIG_UDP_CHECKSUM > > #define CONFIG_TIMESTAMP > > #define CONFIG_BOOTP_SERVERIP > > diff --git a/net/Kconfig b/net/Kconfig > > index 7a2d1450188..fb6420f9bbe 100644 > > --- a/net/Kconfig > > +++ b/net/Kconfig > > @@ -98,4 +98,13 @@ config SERVERIP_FROM_PROXYDHCP_DELAY_MS > > receiving response from main DHCP server. Has no effect if > > SERVERIP_FROM_PROXYDHCP is false. > > +config KEEP_SERVERADDR > > + bool "Write the server's MAC address to 'serveraddr'" > > + default y if SANDBOX > > + help > > + Keeps the server's MAC address, in the env 'serveraddr' > > + for passing to bootargs (like Linux's netconsole option). If this is > > + enabled, when an ARP reply is received, the server's IP address is > > + written there. > > + >=20 > This loses a bit of context originally present in the README. Can you not= e that > this is the TFTP server's address we are keeping? It also removes a wrong line in the README. In general, you need to be extra careful with moveconfig.py and README contents. --=20 Tom --brdEIFGMNIjz5YJG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmG+EUQACgkQFHw5/5Y0 tyz+cQv/e4L3Bseeda8Lix+poCFYIpSx6lrhSwgEIzwEDC3hym3yp9pmeWKrIslS CEOHfJzWbeocz9qVrvAZnUGor2kRWiZVxgc2WrdhhKN9vY1XL3wtkh5BfaD+M3fW eLQ4FJGSbsFTLzUZ9fcB+aDZELfCioMlRvNKmSqdXIZeNXWIvfAFASwHp29Srpv1 FhKwqQI0a813EvT/POJLp3T7BxaQob8iTsoZXHF/btMGVQ+pofXqitgsKUOjTsZr 7dU6BH2Rtyxbc/DCPF18qNlx+JS7u9i3dW4msfEhIiTh3dh8xfEKICT5hgs0yV+E O472pZNMXBzWFixWQ7HgReExjLKIU5n8+nqVOQdpFpqBjJHxmwTu7rTobA6CMSCB VLpoae+O1d85aL2DH6bdP79BS/koWX3XwECmhakNYxK//9SwfVIXp3LS9U04R6FP S4l7p8XTf8m7F8/x6ooKJu47TTDnrTYQTx4w18mpiBU0HBWnvHCoflyfgoYvIlNA LlL1DjxN =L83j -----END PGP SIGNATURE----- --brdEIFGMNIjz5YJG--