From patchwork Mon Apr 1 21:34:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Orlov X-Patchwork-Id: 1918573 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=x8NAcEp0; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Dj5jUiBE; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V7knH1drTz1yZB for ; Tue, 2 Apr 2024 08:34:58 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8tZTD3+3eWONcSKmp9i7RmOCmkBhQugHnjrXGyvs0sE=; b=x8NAcEp0wPA/RS yVicU5hG2e37H10fdLmnTxLcCThwQpPapFoDvsH2ncTDpcDCiRTkc7TUbbFUWfNL7lkxfhUuJIXba X5sHBt+Geib4Y0xnz57bNlfwmPWnwcoT/IE+C9nRzlsF0Nt+ODi4321892nLo9iX5DgOiZ9u8i3f6 9niagzYnm2bk8103i5nbwdY78bCcMSFV88PrJa4+355t3BzmM5trb4RHP/lqGzbmSflpnu3jjzQX0 8nPfjz4PeA4qPRVl/R9eHWGRj9rNK8GUl1NSvGC2uEgkNLlJSJdCpEX1YEFlzfCITiSHATzg3qysP sATQtBglcQsITPvmmwOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrPIn-00000008u8q-1jRD; Mon, 01 Apr 2024 21:34:49 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrPIk-00000008u7k-1njV for opensbi@lists.infradead.org; Mon, 01 Apr 2024 21:34:48 +0000 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-33ecdffd9e7so1258721f8f.0 for ; Mon, 01 Apr 2024 14:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712007284; x=1712612084; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/6dBQ0daRmRwdbHDivC6c+yPAaGoHJgq4UNVmmOao3U=; b=Dj5jUiBEHZuuJRPY+iqeKqYsZQqQY3E0M8N4b1BH/4LfYsDLw3OysGh/3SI+I6+OMa eVjR8Fwuma+AIfnBow2EA7kQtl7lP6N4xzbXVmddjTkb+Xo68UUJpY2VOyTWKrlZhPv2 GjLYFlytdHqQ1z15PT8Tb/OF5P6cfiIBXu+TFAUTIRgQiDqp8Lg/+NOjctIG9nMBa1ds TQzn5d52VFbNI2fcoexv0DukJkm2jud/cakHwNqEkb2x5OjSkRuaEb55LndrvJdSQdMS zJEVFEHZ0VTLGX7twJvCBBlgAAJbCEYMFkc44a3PbCwokC34sifWIHjJRwEix+TtN7Kl w2Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712007284; x=1712612084; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/6dBQ0daRmRwdbHDivC6c+yPAaGoHJgq4UNVmmOao3U=; b=YayuA1OTUvP6YSjCoUuUrio+KCPSHm3rB34cbAhVtGn1Mq8r9ekGSUMTP5xlaf+v5k J23Zxlh7qm9/Y2qFiNU/IYIDv9uAP1qIiaRjsdAwu3zJJ7Ib252RYEU1vr+cwRYUrCMS Y3VS+Vw5OIx0Nuj28OaKz88Jse5brsDurW15SGenmEGcehL92wikKznnP6BTSU4fQ3do T+k7jPdzh+D/z739i1nG0RpzpWo9kABxUNM3BM6N/F9geERaiJE2iE+yxt8QchHlzGiM bjgZ5x0xeQwvuVpe7O4gSNb93vR4c4QzQtUm+vLj6jYfob/q/+5MSA5SPsjbpLRDLxf2 Puvw== X-Forwarded-Encrypted: i=1; AJvYcCVrsnSDcnfTQMl2JnorTHh+sboMK6sLtU1qsV/qHARFfXyHblXh5W01aBjYN8KUazYGoyjVfgZMwFnJ1H3ponJQUG32mf7dwXlDMck= X-Gm-Message-State: AOJu0YwLj75F1ypRyhaZQ9vySFipea4IYsrR/KrkzBBoI27FznqQqv8O FjFwNOL3DmPLRxqd/9E7DA+mFidCenLrGDzCha2e/tBcRdmDATN2ZZaLwYLC X-Google-Smtp-Source: AGHT+IE4BiDwU29go5XSBsG2ERtcE3IHtdSyIysOnGUOhSXWUHIEqamiVei7nz+1nHDkf9qaSudEqw== X-Received: by 2002:a5d:55d2:0:b0:343:4f53:fe7d with SMTP id i18-20020a5d55d2000000b003434f53fe7dmr2309994wrw.0.1712007283551; Mon, 01 Apr 2024 14:34:43 -0700 (PDT) Received: from ivan-HLYL-WXX9.. ([2a01:4b00:d20e:7300:d09d:8ca1:59ae:5b2a]) by smtp.gmail.com with ESMTPSA id bl37-20020adfe265000000b0033b87c2725csm12457641wrb.104.2024.04.01.14.34.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 14:34:42 -0700 (PDT) From: Ivan Orlov To: anup@brainfault.org, ajones@ventanamicro.com Cc: Ivan Orlov , opensbi@lists.infradead.org Subject: [PATCH 1/3] Makefile: clean auto-generated *.c files properly Date: Mon, 1 Apr 2024 22:34:36 +0100 Message-Id: <20240401213438.590209-2-ivan.orlov0322@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240401213438.590209-1-ivan.orlov0322@gmail.com> References: <20240401213438.590209-1-ivan.orlov0322@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240401_143446_496998_288D09E9 X-CRM114-Status: GOOD ( 10.93 ) X-Spam-Score: 0.1 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Currently, `make clean` doesn't remove auto-generated .c files in the `build/` directory. It means that we don't have a reliable way of regenerating these files except from removing the `build/` direc [...] Content analysis details: (0.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:429 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [ivan.orlov0322(at)gmail.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [ivan.orlov0322(at)gmail.com] X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "opensbi" Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Currently, `make clean` doesn't remove auto-generated .c files in the `build/` directory. It means that we don't have a reliable way of regenerating these files except from removing the `build/` directory manually. Update the `clean` target in order to remove these files as well. In the discussion of the "[PATCH v2 3/5] Makefile: clean '.c' files generated by carray", Andrew Jones suggested placing the auto-generated .c files into the `build/generated/` folder. However, I believe it may not be necessary as in fact all of the files in `build/` are auto-generated. Signed-off-by: Ivan Orlov Reviewed-by: Andrew Jones Signed-off-by: Ben Dooks --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 680c19a..4519277 100644 --- a/Makefile +++ b/Makefile @@ -684,6 +684,8 @@ clean: $(CMD_PREFIX)find $(build_dir) -type f -name "*.bin" -exec rm -rf {} + $(if $(V), @echo " RM $(build_dir)/*.dtb") $(CMD_PREFIX)find $(build_dir) -type f -name "*.dtb" -exec rm -rf {} + + $(if $(V), @echo " RM $(build_dir)/*.c") + $(CMD_PREFIX)find $(build_dir) -type f -name "*.c" -exec rm -rf {} + # Rule for "make distclean" .PHONY: distclean