From patchwork Mon Nov 14 20:59:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 20032 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2367611wru; Mon, 14 Nov 2022 13:12:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf7R8oj9UpDibvjT9b5EuNghaacesTZyqjIl5FW8g0ApK1uZLAszZhZtDiOv7KbqRkj0eUoe X-Received: by 2002:aa7:c74c:0:b0:44e:bee5:4242 with SMTP id c12-20020aa7c74c000000b0044ebee54242mr12612955eds.128.1668460353344; Mon, 14 Nov 2022 13:12:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668460353; cv=none; d=google.com; s=arc-20160816; b=Es0463Phlmw8Vc6gmkFUq/pVsnmF1S7yMClspYAiRiHbILzJb6fZUS0hCIiqzXBms4 5YTyVkdIynM3S56ZJ4Oe/isEjzM/V6TbUw4aaFZloBXUMVQ0/D+ViIwpoeFujWu6u6xg O20z6d9VxBDAgdfD4mjNrUcF0e9OxYDc+7rmF5mnVBSjuXU8AXjNINUVTqOcLjG5QjVo In79W5lJvsFFk/gQQBxi71Rffi5FmbeSq9NXxv0jg9nUtPmNl8XdLcQbpySz/FrO87H4 vjL+43dKpEACWlVYhDSvj3jTU+xp4e6HSvk048VAmHIK+lUXM2z3hb6gPpPazJPFgvzC 6cDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DPPvsaTx1ytVsTAVjXlYV7oje562yCBudMmuXP6Vp/Q=; b=J1B9x2eiUYB4CjLB3dZdCzkMneFSD4uBdYh3UB8MfFnqq6dMQk3DsvDWsYhPihrBqv DKECE5eLJHgqG9NhbCVheh/TOlSs1ZQGNJYS8kTXvRA/CPdiiUdNbIMy5Cl0xmDWOlVT Ftfa/7hfPs9W4T8gXAl3HaOkHeACbzpAyoT6YA76c0FNGAnNUDA/rhwEofzvxXlnlw8U icdwQQcEcGSvSFctj/akX+TkH3jQy8GNODIKc+Ii858PN6JqFYqzwO1AjudBj26WDWbq bW48VL14xsmHq3WUge/tNZKxmpvsFo10odrngvIwnXo4CJmjEdxGBSl0fVElVLRRM7pn JEhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="w7yf/F0Z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ee16-20020a056402291000b00447a8836a56si7687845edb.208.2022.11.14.13.12.08; Mon, 14 Nov 2022 13:12:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="w7yf/F0Z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236965AbiKNVA2 (ORCPT + 99 others); Mon, 14 Nov 2022 16:00:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236963AbiKNVA0 (ORCPT ); Mon, 14 Nov 2022 16:00:26 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17F07EE1E; Mon, 14 Nov 2022 13:00:23 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AEKxfvC089173; Mon, 14 Nov 2022 14:59:41 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668459581; bh=DPPvsaTx1ytVsTAVjXlYV7oje562yCBudMmuXP6Vp/Q=; h=From:To:CC:Subject:Date; b=w7yf/F0ZNVkcv+FFLivlt4FAiQESLJOHDVIa9bia9uMRSfG2u4F1ZbGzbUe5x3s18 +pNYHQ5cIR7WFwySXwjJBzP9BsxfURAmzUtMU0Phzvr+ffeYc0UhvVC5wxHfZsEx8d ta6UQvt1eNIt7lYSifEr/+gDDdOiQ5VxCW1BkyfU= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AEKxf84123487 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Nov 2022 14:59:41 -0600 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Mon, 14 Nov 2022 14:59:41 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Mon, 14 Nov 2022 14:59:40 -0600 Received: from ula0226330.dal.design.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AEKxdbg054271; Mon, 14 Nov 2022 14:59:40 -0600 From: Andrew Davis To: Shawn Guo , Li Yang , Sascha Hauer , Rob Herring , Krzysztof Kozlowski , Nishanth Menon , Vignesh Raghavendra , Masahiro Yamada , Michal Marek , Nick Desaulniers , Geert Uytterhoeven , Frank Rowand , Andy Shevchenko CC: , , , , , Andrew Davis Subject: [PATCH] kbuild: Cleanup DT Overlay intermediate files as appropriate Date: Mon, 14 Nov 2022 14:59:39 -0600 Message-ID: <20221114205939.27994-1-afd@ti.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749507483162809979?= X-GMAIL-MSGID: =?utf-8?q?1749507483162809979?= %.dtbo.o and %.dtbo.S files are used to build-in DT Overlay. They should should not be removed by Make or the kernel will be needlessly rebuilt. These should be removed by "clean" and ignored by git like other intermediate files. Reported-by: Andy Shevchenko Signed-off-by: Andrew Davis Tested-by: Andy Shevchenko Acked-by: Masahiro Yamada --- .gitignore | 1 + Makefile | 4 +++- scripts/Makefile.build | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5da004814678d..3ec73ead6757e 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ *.dtb *.dtbo *.dtb.S +*.dtbo.S *.dwo *.elf *.gcno diff --git a/Makefile b/Makefile index 3735d5996c637..0dd7e8d022289 100644 --- a/Makefile +++ b/Makefile @@ -2003,7 +2003,9 @@ clean: $(clean-dirs) @find $(or $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \ \( -name '*.[aios]' -o -name '*.rsi' -o -name '*.ko' -o -name '.*.cmd' \ -o -name '*.ko.*' \ - -o -name '*.dtb' -o -name '*.dtbo' -o -name '*.dtb.S' -o -name '*.dt.yaml' \ + -o -name '*.dtb' -o -name '*.dtbo' \ + -o -name '*.dtb.S' -o -name '*.dtbo.S' \ + -o -name '*.dt.yaml' \ -o -name '*.dwo' -o -name '*.lst' \ -o -name '*.su' -o -name '*.mod' -o -name '*.usyms' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 41f3602fc8de7..3ceab076127b7 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -468,10 +468,12 @@ intermediate_targets = $(foreach sfx, $(2), \ $(filter %$(strip $(1)), $(targets)))) # %.asn1.o <- %.asn1.[ch] <- %.asn1 # %.dtb.o <- %.dtb.S <- %.dtb <- %.dts +# %.dtbo.o <- %.dtbo.S <- %.dtbo <- %.dtso # %.lex.o <- %.lex.c <- %.l # %.tab.o <- %.tab.[ch] <- %.y targets += $(call intermediate_targets, .asn1.o, .asn1.c .asn1.h) \ $(call intermediate_targets, .dtb.o, .dtb.S .dtb) \ + $(call intermediate_targets, .dtbo.o, .dtbo.S .dtbo) \ $(call intermediate_targets, .lex.o, .lex.c) \ $(call intermediate_targets, .tab.o, .tab.c .tab.h)