Message ID | 20221023182437.15263-2-afd@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp92678wru; Sun, 23 Oct 2022 11:26:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7brAYKd3dNK5W/da34/WjxvJr0lFI3SjGBXAx5vSz0O8QvdihyZHaWwrJ1qCMKy5Y9a4G4 X-Received: by 2002:aa7:c40b:0:b0:45d:4492:a8cb with SMTP id j11-20020aa7c40b000000b0045d4492a8cbmr26781006edq.217.1666549601193; Sun, 23 Oct 2022 11:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666549601; cv=none; d=google.com; s=arc-20160816; b=jsMcRHM0TBkXvg0Y2sjul/7S3GuKTZ83D+gNRPYdNURy78Xh0Z0qUq4h77V24LcO/d eI69T9Uk740LPT15kmNo0RmIJd1ZhIa9imZb9Wbbs1jKsKprw4qondE+cRym21vxad1Y hoBF/Wl9Qm3bFecmFhrG4ALCXzbpBJsIxMWHqF85m3bzIHEkfoNq8bsr7M4va/nX6/o6 A4yhGR3r8+rypKSOIrWSJ8odiglEJcFAPbeZ80ZV4UXOGcVdYUBcXY97alNlO3uI7t2k Fri4IPeIifXGdnStcU4OIjvUnKTQ5+oQ4UC73xf2pUCFFzQSSWNISH0P8vvENd4+5w4Y 45ew== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Eszw1jdJn4j8v1iKIorlGb7DTe56ZXAST+TiCWofrWI=; b=HxraeT3sGcb7cSawi3mg6JfmE9u+p4c94FkID0X0us05f567Iw1j3RduiFHVa5tzj4 WKyCK0v7g49VLvQDHRP8w/PVztZEZQ2Xo2w+5wnaCvtse2K8fjOTeatfGnZEpMKYhTKh dyvP/bIeinFKC/0qLz0WzBvVJg2d/8kJ3CgYotTVpmuqtmAjC7vPNi9BtbNGi71JK/t9 xpNphAgVZ+dhbrvtdvV+L3eflytTRJkKb84SKHsMMjtDaTPfgjl3mJwjg8RFd1UXAjoH tBMaCMSR2DB2NegAU5VyQl2JJBv9IGVAdpkQn14OPWTB69Far7uxT4QWUr5hZqm89JXH +dpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wjLZNsPN; 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 cw10-20020a170906478a00b0078c5d28e27esi25996480ejc.604.2022.10.23.11.26.17; Sun, 23 Oct 2022 11:26:41 -0700 (PDT) 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=wjLZNsPN; 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 S230207AbiJWSZ2 (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Sun, 23 Oct 2022 14:25:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229987AbiJWSZV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 23 Oct 2022 14:25:21 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 965A3481F1; Sun, 23 Oct 2022 11:25:16 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29NIOef4128785; Sun, 23 Oct 2022 13:24:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1666549480; bh=Eszw1jdJn4j8v1iKIorlGb7DTe56ZXAST+TiCWofrWI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wjLZNsPNIXscu4GFpLzxocu/4VNwM6O/J+MddjyqqCWbMq7nnWx0nTQMCEUXOmW9j bckwGTXlxOG348Al/4/wZASqw902djwVvLzL2vmxPhXsBBy1nO/K5DE0EIVAOgCJPh QjJ07uod2WbuwFupBJfras6r5qXpwl9Vudl0PMXo= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29NIOeh0043386 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 23 Oct 2022 13:24:40 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Sun, 23 Oct 2022 13:24:39 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE112.ent.ti.com (157.170.170.23) 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; Sun, 23 Oct 2022 13:24:39 -0500 Received: from ula0226330.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29NIObVY042708; Sun, 23 Oct 2022 13:24:38 -0500 From: Andrew Davis <afd@ti.com> To: Shawn Guo <shawnguo@kernel.org>, Li Yang <leoyang.li@nxp.com>, Sascha Hauer <s.hauer@pengutronix.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>, Masahiro Yamada <masahiroy@kernel.org>, Michal Marek <michal.lkml@markovi.net>, Nick Desaulniers <ndesaulniers@google.com>, Geert Uytterhoeven <geert@linux-m68k.org>, Frank Rowand <frowand.list@gmail.com> CC: <devicetree@vger.kernel.org>, <linux-kbuild@vger.kernel.org>, <linux-renesas-soc@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, Andrew Davis <afd@ti.com> Subject: [PATCH 1/6] kbuild: Allow DTB overlays to built from .dtso named source files Date: Sun, 23 Oct 2022 13:24:32 -0500 Message-ID: <20221023182437.15263-2-afd@ti.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221023182437.15263-1-afd@ti.com> References: <20221023182437.15263-1-afd@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.9 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747503914338567056?= X-GMAIL-MSGID: =?utf-8?q?1747503914338567056?= |
Series |
Rename DTB overlay source files
|
|
Commit Message
Andrew Davis
Oct. 23, 2022, 6:24 p.m. UTC
Currently DTB Overlays (.dtbo) are build from source files with the same
extension (.dts) as the base DTs (.dtb). This may become confusing and
even lead to wrong results. For example, a composite DTB (created from a
base DTB and a set of overlays) might have the same name as one of the
overlays that create it.
Different files should be generated from differently named sources.
.dtb <-> .dts
.dtbo <-> .dtso
We do not remove the ability to compile DTBO files from .dts files here,
only add a new rule allowing the .dtso file name. The current .dts named
overlays can be renamed with time. After all have been renamed we can
remove the other rule.
Signed-off-by: Andrew Davis <afd@ti.com>
---
scripts/Makefile.lib | 3 +++
1 file changed, 3 insertions(+)
Comments
On Sun, Oct 23, 2022 at 8:24 PM Andrew Davis <afd@ti.com> wrote: > Currently DTB Overlays (.dtbo) are build from source files with the same > extension (.dts) as the base DTs (.dtb). This may become confusing and > even lead to wrong results. For example, a composite DTB (created from a > base DTB and a set of overlays) might have the same name as one of the > overlays that create it. > > Different files should be generated from differently named sources. > .dtb <-> .dts > .dtbo <-> .dtso > > We do not remove the ability to compile DTBO files from .dts files here, > only add a new rule allowing the .dtso file name. The current .dts named > overlays can be renamed with time. After all have been renamed we can > remove the other rule. > > Signed-off-by: Andrew Davis <afd@ti.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 3aa384cec76b8..0376a6f18bfb1 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -408,6 +408,9 @@ $(obj)/%.dtb: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE $(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE $(call if_changed_dep,dtc) +$(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE + $(call if_changed_dep,dtc) + dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp) # Bzip2