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 0AE3EEB64DA for ; Sat, 8 Jul 2023 15:29:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6A852865B0; Sat, 8 Jul 2023 17:29:16 +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="plj+ggwC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5B035865B3; Sat, 8 Jul 2023 17:29:14 +0200 (CEST) Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) (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 255CE861A1 for ; Sat, 8 Jul 2023 17:29:12 +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-yb1-xb29.google.com with SMTP id 3f1490d57ef6-c5cf26e9669so3093533276.0 for ; Sat, 08 Jul 2023 08:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1688830151; x=1691422151; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Pec/5LZLos4b/FBkJcyEguBBwdMi874kkl13udClEjg=; b=plj+ggwCLh8j+0RA9skcgrDiqWfdFG9QOEaaGfOf7iXU7kv2EbT7zztgUnYJdoyuFN 2crhGzOzcJqn6rpUrazNEVd3rJ9+Af63/D8JdEqaMk86bJHxFk1AUHZJa+hBkfS0aA4E bX9L4nZRNNIoMwf3R2QCG8oSSe+y9ZE8NUUGY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688830151; x=1691422151; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Pec/5LZLos4b/FBkJcyEguBBwdMi874kkl13udClEjg=; b=LlXb+7qkkIpFzd5tbViS6ysXXD3kTMWg8xSYrGRS7SIAQwrzriZzg95m/jZGSqs0lv AlFYXlR6jwFBagLRMg9rgz0djUHsyz7hLBdCNi0DWz5qyG06ekJBY6DliQmD+CNyIoMA T1yyIRfYbJh0jPXz91rHgD51PK0TnHzJQ0XBpZ9naFPDcY3Er5JrEYu5drJiakgnjvDQ LgefNbJByk44Hl6JR7fweBkaBKw0+aEE80Hka1Bm/XEXZppgGDHIXnLyM2EXhvfxDMA3 Rj8FEAQji/xTADuCjNDu4PJqNKTmHR2s7ZeKSLi+fD/KfJI/d3TCp0Wr1wxJkYn0oNj0 XHQQ== X-Gm-Message-State: ABy/qLZwZPr4Cq+g0mRcb3w5lY0ZbZ15i0Pw77t9HKNOEywWv5Jrwa1h mvKtBRn1GRIUqoZi+L/HVVfDag== X-Google-Smtp-Source: APBJJlGwn2rFKk98Ky4SqEB2VgKZeeLMovCqzhggHE+qQ8pN/ywVmhxn01fPetTFttwYhPJC8oUrPg== X-Received: by 2002:a5b:685:0:b0:c5f:25f1:c8c5 with SMTP id j5-20020a5b0685000000b00c5f25f1c8c5mr6801167ybq.45.1688830150925; Sat, 08 Jul 2023 08:29:10 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-67d8-7b2d-9201-f25d.res6.spectrum.com. [2603:6081:7b00:6400:67d8:7b2d:9201:f25d]) by smtp.gmail.com with ESMTPSA id y67-20020a25dc46000000b00bd01affd4c8sm1660927ybe.58.2023.07.08.08.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jul 2023 08:29:10 -0700 (PDT) Date: Sat, 8 Jul 2023 11:29:09 -0400 From: Tom Rini To: Tobias Deiminger Cc: u-boot@lists.denx.de, Simon Glass Subject: Re: [PATCH v2 1/6] Kbuild: Fix cleanup of generated sources in tools Message-ID: <20230708152909.GA1321646@bill-the-cat> References: <20230619224107.284372-1-tdmg@linutronix.de> <20230619224107.284372-2-tdmg@linutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bfLgRPkZRPh81sw9" Content-Disposition: inline In-Reply-To: <20230619224107.284372-2-tdmg@linutronix.de> 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.8 at phobos.denx.de X-Virus-Status: Clean --bfLgRPkZRPh81sw9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 20, 2023 at 12:41:02AM +0200, Tobias Deiminger wrote: > On 'make clean', generated C files in tools/env/ and tools/boot/ are > currently not removed, but they should. >=20 > Auto-generation for shared sources was first introduced with > ad80c4a3220b ("kbuild, tools: generate wrapper C sources automatically > by Makefile"). Cleanup later regressed (see Fixes:), because shared > files were moved out of lib/ and common/, but 'clean-dirs :=3D lib common' > was not adjusted accordingly. Further, the generated > tools/env/embedded.c became a sibling to project files, which prevents > directory-wise cleanup at all. >=20 > To solve it, we establishe tools/generated/ as the sole place for > generated sources. Wrappers are now generated as > tools/generated//, and 'make clean' can > remove tools/generated/ as a whole (Linux Makefile.asm-generic headers > are cleaned similarly). This way we don't have to maintain separate > clean-files or clean-dirs entries for each single added or moved wrapper > file. >=20 > Fixes: 0649cd0d4908 ("Move environment files from common/ to env/") > Fixes: 19a91f2464a8 ("Create a new boot/ directory") > Signed-off-by: Tobias Deiminger Applied to u-boot/next, thanks! --=20 Tom --bfLgRPkZRPh81sw9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmSpgMQACgkQFHw5/5Y0 tyxk7AwAgM5S+icHZv0HGmmsVUFkSXMD+5cTxGJGyHiq1r24iN0n1h+6QoSBu0km VLHrggIXgi5CJIQ3iiNcYQ422AuRVRLBHWpIiupCAbaLYCIjdBJnqEiJfYpV5hs/ W8areK0M/ezy8Y/1UEOgd6E/ei0VD1lkA7JnOmUgzSTaVL7FqhP/OZkmusXM6o1T MS8CrCh24PaoSSJKWx7Xd/PdZiuQVIGrHrsdalJj7sOkLDSd0kn0p/3j2EBjdaPh zd4hadAhUvC6pWTJ4dtiwAuuFxZZsu6V7VIQQwWFT/UR/xEE2D+oZDUXfwUfjilG DFl83hDtZhVwz5tRNA5SJSQuTch9ifnuXp9fCYOe5hVf7P58LgVAUaJszyCD7Vy2 xjMwaF7BC16lffAeipnf6QD45T3T59EaZx85h7sg3HLALEMI9sTebMCdoqIjDs9u YAvnPK/bdwd0Zh2nGe9z66m1RoZqrZC7zEgmKcNCltRGu8Md2WqPpNP/tz4t6qJR 6TD5nJKm =ao2G -----END PGP SIGNATURE----- --bfLgRPkZRPh81sw9--