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 34933EB64D9 for ; Mon, 19 Jun 2023 22:42:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2011F862E9; Tue, 20 Jun 2023 00:42:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=linutronix.de header.i=@linutronix.de header.b="D9Qy8p35"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="WU9lfg6A"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EBE07860A9; Tue, 20 Jun 2023 00:41:13 +0200 (CEST) Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 69E6186024 for ; Tue, 20 Jun 2023 00:41:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tdmg@linutronix.de From: Tobias Deiminger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1687214470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=F3oRQ9Xki+BR1WGkrhk8BP4Y0Tg5nE6dqeA/CGl1nqg=; b=D9Qy8p35Ju2u3vOmzjboW5wCIT7H6JxwzbmXZY/AsCULCS5jjbURygOnavPwfeQzEDJD9W v48iL8Drr80EYRph2jwI3uJDhhPV5Z0fZzpMOZHXlJz7yUno09xNFBS17Zt8pKs3OzIzpQ fdluy9FkMVm5ZAGu23XfKCSVz0/GvzsTla8lEGrpice4sJ0sb2nxTRjhxSE9Fj1+0DwK3e asqMpd7vauYD4FBS0seRXTjqrZSMVYH5pe5RAdLc/5GaRiewOqmOdpiKC/LO6O2xc8O5re 8SNY+t7LxpqGiuSvyDJQF4A83Q1rTy3wZH5EsuapixeUjY3IXY6OEt4z8pHHEg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1687214470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=F3oRQ9Xki+BR1WGkrhk8BP4Y0Tg5nE6dqeA/CGl1nqg=; b=WU9lfg6AkDIdAvKQ+8ne6V0hiJhQwnvMRQtUK3xPT62qd4swT2SR98ltlpmz1s/yNUR/w7 L9xuuCViah0xCACQ== To: u-boot@lists.denx.de Cc: Simon Glass , tdmg@linutronix.de (Tobias Deiminger) Subject: [PATCH v2 0/6] Kbuild: Fix cleanup of generated sources in tools (and more) Date: Tue, 20 Jun 2023 00:41:01 +0200 Message-Id: <20230619224107.284372-1-tdmg@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 20 Jun 2023 00:42:39 +0200 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 This patch series fixes various unexpected leftovers after running make clean and make mrproper. The test suggested during review of v1 [0] revealed more cleanup related issues. I thought it's best to fix them all together in a somewhat extended v2, to let the new test pass without cheating. Changes in v2: - add test for 'make clean' and 'make mrproper' - fix found issues until test passes - move .gitignore changes to separate commit [0] http://patchwork.ozlabs.org/project/uboot/patch/20230614113954.51812-2-tobias.deiminger@linutronix.de/ Tobias Deiminger (6): Kbuild: Fix cleanup of generated sources in tools Adjust gitignore for tools/generated/ Kbuild: Fix cleanup of VPL Kbuild: Fix cleanup of *.dtb for some archs Kbuild: Fix cleanup of *.dtbo for sandbox test: Find leftovers after clean/mrproper Makefile | 4 +- arch/sandbox/dts/Makefile | 2 +- dts/Makefile | 4 +- test/py/tests/test_cleanup_build.py | 105 ++++++++++++++++++++++++++++ tools/.gitignore | 1 + tools/Makefile | 64 ++++++++--------- tools/env/.gitignore | 1 - 7 files changed, 144 insertions(+), 37 deletions(-) create mode 100644 test/py/tests/test_cleanup_build.py base-commit: 50842b217fef505a0ec6662cc2acdc55d0bb23c5 -- 2.30.2