From patchwork Fri Oct 14 15:13:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 2727 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp237294wrs; Fri, 14 Oct 2022 08:18:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5G/T01EEmHkp8GydjgXfsPv5CdMMD9THiNMMePld4onEkE/60wEA/ZifxqM/tjcrTzajoD X-Received: by 2002:a05:6a00:1a4d:b0:563:a7c4:f521 with SMTP id h13-20020a056a001a4d00b00563a7c4f521mr5630883pfv.61.1665760737732; Fri, 14 Oct 2022 08:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665760737; cv=none; d=google.com; s=arc-20160816; b=G5wFjBwv/nJMDoIqkzUCmUzJQSJ1/RtRw7m/qb+2dRSLyha+go5uquM5O7s/ytKI+Q zfMFEO8hdD9K78RttZmJvNoAnz1xmu1/10tHOjqkZhH5OzG0nz2X3ChmGHdjFdNk6u2h nL1xrb0pdT68hORXS1i8Bvp4XQl1s2RCzYqPxEaNTi+viRklop63vlHky8RhC3/NOtfm yspZEQBKYf6GFbMSlVtMTiOyVkMRgtbBSr9q6b89+LlPmUgZYNp3mSUPb58dPDqps8np h3sp5aruEr2XtTBfK6Ymn3kqdhV8ZuGzauFD1PupF4DD+5I+OClcEg7iAm/TKWeoTvd5 KU2w== 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=jqhPCw7ZEkH514g5BHN5Rr9q9FrHZsnVbp3y+FTxKLA=; b=LnB+PDz4qXjGDF8e5MMmWFmE7ciO98+ffYTmBuYHwVcaZq2nia3a+9XoQeTsFGbaER iC0QHF4MevsKQ6gcpwrnI4cQuTBfNGDglwvK+1zK0XGnK9u/HYgWK/GTyKFKDk0XpfEy fpiLHzlQEgut2IZWlRMj/7cL+ksezHtpen4HT0U+h9zz00Ee6C1pNn2b0+fBgBPuiIfp 85lbUAXQjeEJft3cnmu60xYS8sclBoF+P8tCSbS0EP+gXrAu/jep7hM5wKIdCMexgrkZ fRy/pTJO3mNGxvUkPMv0y7mno6OjAYy3PPIamv5j5hEhoJtvcs8mzwoeG56F4w2xLtTS 9omg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gZdT1rEN; 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 l7-20020a170903120700b001786399ba31si3659729plh.590.2022.10.14.08.18.43; Fri, 14 Oct 2022 08:18:57 -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=gZdT1rEN; 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 S230046AbiJNPNb (ORCPT + 99 others); Fri, 14 Oct 2022 11:13:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229985AbiJNPN3 (ORCPT ); Fri, 14 Oct 2022 11:13:29 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C1311D3EB2; Fri, 14 Oct 2022 08:13:27 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29EFD45g044306; Fri, 14 Oct 2022 10:13:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1665760384; bh=jqhPCw7ZEkH514g5BHN5Rr9q9FrHZsnVbp3y+FTxKLA=; h=From:To:CC:Subject:Date; b=gZdT1rENET1nxNqFqybOuhSOKfe+WJBT4B51lc/PCVJ3pVP4f/jvvQqld4lOaMyg3 BCdns4+us0Y6bm98d1JI1LXtvhRvPsnjkY9eWtqfzRkwhx107Efk8MzhvpuVFFQnci rxpHsuwdx8emIqPVtR09CTccgnFj15T1x25O+9KU= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29EFD4ap019525 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 14 Oct 2022 10:13:04 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Fri, 14 Oct 2022 10:13:04 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE110.ent.ti.com (10.64.6.31) 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; Fri, 14 Oct 2022 10:13:04 -0500 Received: from ula0226330.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29EFD3wI004407; Fri, 14 Oct 2022 10:13:03 -0500 From: Andrew Davis To: Nishanth Menon , Vignesh Raghavendra , Masahiro Yamada , Michal Marek , Nick Desaulniers , Rob Herring , , , CC: Andrew Davis Subject: [PATCH] kbuild: Allow DTB overlays to built from .dtso named source files Date: Fri, 14 Oct 2022 10:13:02 -0500 Message-ID: <20221014151302.27641-1-afd@ti.com> X-Mailer: git-send-email 2.37.3 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?1746676731368338728?= X-GMAIL-MSGID: =?utf-8?q?1746676731368338728?= 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 --- scripts/Makefile.lib | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 3aa384cec76b..0376a6f18bfb 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