Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2641935pxb; Thu, 11 Feb 2021 19:10:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxq1DdJ6mBuGwyoEDMck1X2Mb4MWG35Esx+7W5NJySgcLkndDEduLUwy2qNeAqoNpsUXZGY X-Received: by 2002:a17:906:1a11:: with SMTP id i17mr930303ejf.278.1613099437798; Thu, 11 Feb 2021 19:10:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613099437; cv=none; d=google.com; s=arc-20160816; b=YU5BTiMCYeHgcuOLe0mOf5JJ3EzBHIWPoZWcvKLKwv5djvvuQsHRk3C6OWcpSasS7q GE0/p2EZJIemfgURFwyjYau2j52ay1UJaNqKsWMT7tsZyZ6BvKJpaBuAT8ioVlYWO4ts URGRno1e6867iYzFit3dx1D10eBJh3G/UFTtc1fiYsS0Mpq7cz04DmKw1iQwXFyibz0g a3l2PquIBwN7Psm8Is8eRnq8fwL+BYhPpwePOxepMIoCG6HNKGZjfrEddiuzTSPtg+0x uDszE/TA1uWNbYPChPEATLWll2k7KXrWVoSNvh3DELDbs5AXuD2bWlUVIVaPuhHzR5Js Nz0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=I5mK3G+CjJ+ik2u7vLdWvYhGKvVsmh00OZqq6nOWAfo=; b=kGdTx/yuAyrzk/2oD7vFdbAhwAn+ggZeAo8+IMc4qrNRTc0OSaBJ/YhzJbERRBfpPi fNe/xiG6Mv8l83/+aHVRwsvlwYUQhpPu5v/ky6AFMEfek0kb1ME+6z6tC0f3Y9DJWaLW nPvB1Kq2zfr2h/1wxSBUWm8K5SprnLAzQN7gV+0Blfmqyqlwe6BUe+jRDLfZSLMFxpe5 xAE/QA58r+TizKay4KrZWClOZwTfphSLpNmcTjMOkpzFZRKP2f8/PltSXhfWifXCByoS uMm4jjt7BGnTTlIP57nIZc9/3rber7kOAyjRmTf1SJeRMcEQi25Y3xzsnRaNEtYsfjZi jtsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="oyrj/Hrl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si5088322edc.491.2021.02.11.19.10.14; Thu, 11 Feb 2021 19:10:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="oyrj/Hrl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230018AbhBLDI6 (ORCPT + 99 others); Thu, 11 Feb 2021 22:08:58 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:61173 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbhBLDIy (ORCPT ); Thu, 11 Feb 2021 22:08:54 -0500 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 11C37d0w009910; Fri, 12 Feb 2021 12:07:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 11C37d0w009910 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1613099260; bh=I5mK3G+CjJ+ik2u7vLdWvYhGKvVsmh00OZqq6nOWAfo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=oyrj/HrlI42UvZ/W4/qK01nOaTO1jKZ+Gj5Kwj/VE1NJ13/IXuJ2oniIoCC4t3Fpy fD0fJ12sl0e/dNaFQ4QdjNgUq8agIlZKJsD3UFveynhKajmvsu+8biPfBeuFeCDdH3 hlTfyqy3Dzn413PNssEmhneLlehzw5s8h0RceZbyEcNtE7JF+BwE3lWuBgOHg4xlL9 1YUEZNSVmC8gMLfCb6YkHQxrm2nJSGvf35q9yl2Y/dA3jd1nv7X7//XEnp82+ynwro 2NPTUhovCbmXsDBlQDO2aKFLlCpryxI+uxYXHU0k2AX0ul30u7QzHctKXznSOZzxy+ UnZvMEz518kXg== X-Nifty-SrcIP: [209.85.210.180] Received: by mail-pf1-f180.google.com with SMTP id c11so4963782pfp.10; Thu, 11 Feb 2021 19:07:39 -0800 (PST) X-Gm-Message-State: AOAM5335C91fISp+5UC7w9984s+yOBl7aahfMv91TFO5wxPStJ8gYyjr sz4Dmyx/Q0VEk2LrkkHo6JKNGk/9XHmeTOwdQJA= X-Received: by 2002:a62:2f07:0:b029:1bb:5f75:f985 with SMTP id v7-20020a622f070000b02901bb5f75f985mr993540pfv.76.1613099258850; Thu, 11 Feb 2021 19:07:38 -0800 (PST) MIME-Version: 1.0 References: <44dad578df8a848fc378cd358f03b071f44c9a5b.1612955268.git.viresh.kumar@linaro.org> In-Reply-To: From: Masahiro Yamada Date: Fri, 12 Feb 2021 12:07:00 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V7 1/3] kbuild: Add generic rule to apply fdtoverlay To: Rob Herring Cc: Viresh Kumar , Frank Rowand , Pantelis Antoniou , Michal Marek , Vincent Guittot , linux-arm-kernel , Linux Kernel Mailing List , Anmar Oueja , Bill Mills , David Gibson , DTML , Linux Kbuild mailing list , Geert Uytterhoeven , Michal Simek Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 12, 2021 at 5:05 AM Rob Herring wrote: > > On Thu, Feb 11, 2021 at 12:28 PM Masahiro Yamada wrote: > > > > On Wed, Feb 10, 2021 at 8:13 PM Viresh Kumar wrote: > > > > > > From: Rob Herring > > > > > > Add a generic rule to apply fdtoverlay in Makefile.lib, so every > > > platform doesn't need to carry the complex rule. > > > > > > The platform's Makefile only needs to have this now: > > > > > > DTC_FLAGS_foo_base += -@ > > > foo-dtbs := foo_base.dtb foo_overlay1.dtbo foo_overlay2.dtbo > > > overlay-y := foo.dtb > > > > > > Please reuse dtb-y instead of introducing the new > > overlay-y syntax, that is, > > > > foo-dtbs := foo_base.dtb foo_overlay1.dtbo foo_overlay2.dtbo > > dtb-y := foo.dtb > > That's what I had, but I believe Viresh changed this because we don't > want to run schema checks on foo.dtb (as foo.dts doesn't exist). > However, we should be able to filter those out using something similar > to technique used for multi-used-y and real-obj-y. We just need to > drop composite entries when creating the .dt.yaml list. Yes, I think this will work. BTW, I do not know how to use overlay. Do we apply overlay in the build time? If so, I do not know what the benefit of overlay is. Or is this just for build testing? I just thought this was done in the boot time, for example, in U-Boot or something. -- Best Regards Masahiro Yamada