Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7265297rwi; Mon, 24 Oct 2022 12:05:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7KAjyEHXfmipGO+PU2aKb+Pw+HGDkr6c/2XL4PCE/Ua/QbdbdUsWgIVBNYeQCR50lCdcNC X-Received: by 2002:a17:90b:4a0b:b0:212:d400:4173 with SMTP id kk11-20020a17090b4a0b00b00212d4004173mr20258738pjb.195.1666638322206; Mon, 24 Oct 2022 12:05:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666638322; cv=none; d=google.com; s=arc-20160816; b=UJlOYlxtH4wfU/RrFXV0FfYF5K6X/o6sHKUk/rfA/XzY0JYlHHulfqnncLdWSVJOiT Hr5vpObNoETSbf8S6D+fZ1nTCF5xlnz3GTfEr3Hmikog9kKZwiYOqsmjsshE0Dco/piE TDKe1a9FGd8R8UdujdVacROkuDkzQZWoflckJ7HY8LP6GJ0TEcoWFe4ltFcdGjIVs701 zDrMDoIFrfURLCQ9th821PGDYyn+hYrtCPkBuAQJgoUCZX65Ty/gXndami8Ds5k+gb0S ExZeqNIHXAwx7yANZ7jpU61MXkoKNyROyW9rUj23I1JCDC0BECzI91NchSJ4/E07ybck tGuw== 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=k7acRMEz6LtOJEl0PqxtzzwFZfm8M1R3fsLPAYbkZRc=; b=NF4FzLVC8hZ3UmDANYOIjHns9TLRqfWkJ9FpMmIfVSuK4fGr7E0htBX44Jzh7cZUzC sF97CuEK5aWvem3luL1PgbCn1eslNI9/bQgb/9AcGkeBYwg4/sU4EZOE95sWbMKjkdTd KgzpwkgTkEbhgH6nqVf7gNu5c/A3d8gRVRo9QdnbMPLVtzDwyrNvi/jFoHQ8C697/BYF zyjhtdjnvkgB7l3jWyWa8PuNL0YI3BYdS/RhGwNMG4gjf9AhXsJnzKI9TdCmgOuR5fDO 7xN6E+TGp6ZVUfHA2rIQYU80XGah7F9O4d2y/7aDEwmu9ag0l3dyPB3zoBCamOJZWzMc uidQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qRyqoqkG; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob15-20020a17090b390f00b00205b268cd58si11304324pjb.181.2022.10.24.12.05.09; Mon, 24 Oct 2022 12:05:22 -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=qRyqoqkG; 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 S232362AbiJXSzk (ORCPT + 99 others); Mon, 24 Oct 2022 14:55:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232218AbiJXSyg (ORCPT ); Mon, 24 Oct 2022 14:54:36 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9AFF30545; Mon, 24 Oct 2022 10:35:57 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29OHYaam050116; Mon, 24 Oct 2022 12:34:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1666632876; bh=k7acRMEz6LtOJEl0PqxtzzwFZfm8M1R3fsLPAYbkZRc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qRyqoqkGKMJjBzM8E0CjsmTGb7LvrvZDHNdHnj7hUWNj/SBF7h49JZ1quMYcauNCD HA5vMoiKZ940D6CUEW/HZRQupi5tuyk1NCEx97v4Gdr+29r3RslFG6p/8YJ4wvHXn0 huO92A31H/QRhBcwGnf/0QTsjj2Np4JJqn0bNpGA= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29OHYa3q019478 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 24 Oct 2022 12:34:36 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Mon, 24 Oct 2022 12:34:35 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE112.ent.ti.com (10.64.6.33) 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, 24 Oct 2022 12:34:35 -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 29OHYYIx039154; Mon, 24 Oct 2022 12:34:35 -0500 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 CC: , , , , , Andrew Davis Subject: [PATCH v2 1/7] kbuild: Allow DTB overlays to built from .dtso named source files Date: Mon, 24 Oct 2022 12:34:28 -0500 Message-ID: <20221024173434.32518-2-afd@ti.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221024173434.32518-1-afd@ti.com> References: <20221024173434.32518-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: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven --- scripts/Makefile.lib | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.37.3