Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2678375pxb; Thu, 11 Feb 2021 20:43:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJynPhSPJgnupw+REAM+QBTdWTdKVK2ramBnRwwiWsZPMp/GT5T+w/ySIMETXyKJ1FfDBbfN X-Received: by 2002:aa7:cd62:: with SMTP id ca2mr1479509edb.94.1613104987342; Thu, 11 Feb 2021 20:43:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613104987; cv=none; d=google.com; s=arc-20160816; b=YleTTrGly3qIXfu3jUtlPiHtTEg8i9uskkrzP2CnnKE0ba/vUEkusoOafbC8jngfHU uHyfiuTv12AihT9fJ+JSQpcPM2nKzs4g/fM30sdVc1poXlEQYgxKLcWGwIHCQfsv4OkT dE2MzADnsgBMujHZm7r7uwnigsD/coKgOqrgNGdrVNG2M/wCQ/XoSN6EZjZUB1q1KgWo e7zDz4jJYgY+YF6tcqovDlWbGu/gDUvgF4+IZ4H6mvOm0G+MAadeiWoDeh+iSFJl79Yv vNb0K3Fgaw6UgGJlbWUl0i9BTkqgFZYr5Pp3CQiI44SM815JWP9liskMrSAKjPQL3wl7 B7rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3WNMt5XR+692WIpXHZivWGdM4xBg7M/kL8/oPyqVZG4=; b=DFoFU6KTl0OAWANg9b0ZsWo36JjnwGx2P/AlqDNzAH0zeZr0oZWEHZ2/iNK+4f8z7X N3PUa7pAgUXMiHI5XERtZU4HyGRHY3jXh41oT6Iz6KWA8bAIsfI+Q1i46LOIO3QliLYC 5Ty0zJdsX7Vda9smmLBLnCZBH1TiFk2Id2q3yPzwdFSSsAP2lbadCHruBRXE2xLuR8E+ OEI4CzaXhYSOYhNKKXLydSX8l7ZLfH1fWU3IktQ9oylqcZBFj0kEj+c1Cryl+hF/C+am VLG2p4r2YlIWSeH30GuNQ4hAhzCkBuQ/QyZPqh/w2qBo60JC1N6PSxjOJntb79pEWC79 6rAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qaQ5JWYq; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si5413365ejg.86.2021.02.11.20.42.44; Thu, 11 Feb 2021 20:43:07 -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=@linaro.org header.s=google header.b=qaQ5JWYq; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229587AbhBLEmJ (ORCPT + 99 others); Thu, 11 Feb 2021 23:42:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbhBLEmH (ORCPT ); Thu, 11 Feb 2021 23:42:07 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D458DC0613D6 for ; Thu, 11 Feb 2021 20:41:26 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id lw17so5613669pjb.0 for ; Thu, 11 Feb 2021 20:41:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3WNMt5XR+692WIpXHZivWGdM4xBg7M/kL8/oPyqVZG4=; b=qaQ5JWYqNNgsWrAMQwM8o2jl8EI0jJR2snb9qPJvnTXgING1a+YDGz4nusTevahy80 kWwJ8PR+3Xbj7JFAtYCUuqkzUUc12Y/7Pta24nOyz6mjnVappjZrdflJ3JuSm4bYIQOW w3FYTt1q83kY+ycLunbpsWg7ALI12ARzJcgferXPxk4uZ3euWCv1PPExNynfikwGKhiv MXEt0dgmQ1sAOktW+4niEDh8HTnY43T2cepdVJL1v7+atSnoexSzs98yz40ZSeThDsYr hcbjqWHeBSWXMS1uURtgLlrKaQ0dN3V36yQpSeQQGbIzqapNOylA7gm3ah6LiqEaozAP RZzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3WNMt5XR+692WIpXHZivWGdM4xBg7M/kL8/oPyqVZG4=; b=Ik1wl1qAeXTlupBzsNvxCLnY2D5gTkhJQqeFKZzA8jI+VgJp0a7V0qFRCs33APpA43 JI/5ZfmnUamXmEDHgMrNZjuBUIZH3laoBmMIfPk70ASa8YgTmEhwfUeUF8tTUjSI3Dfh 3f5Mx2AU7C/b6QSdRNjQqm1LSQKt9Ebt4kdEd4TGxmmKy3zpNLWaPz23uk/WaIjG0FQ4 2U7GXQz8LapXH9b8Q20k46bE9//Yp5sUahirgH0AikpWd7t1tfzL6NBcpU5mkJEgTEVd gLT0VkZd/k3x1VF0bkVVS7NesdVylhAGKwOKh2QmqfPMvt7RA7XradHtZJG98G1OJZB4 iTqg== X-Gm-Message-State: AOAM530uVIlxGoJWUsWxK3kd8vlgNEAsLYVtxnV9HLrLw1io3UYI6/RJ wEKnW4xDs8tSLbZhxpa8HBWRHQ== X-Received: by 2002:a17:902:b094:b029:e3:a2f:4681 with SMTP id p20-20020a170902b094b02900e30a2f4681mr1370874plr.69.1613104886229; Thu, 11 Feb 2021 20:41:26 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id h11sm7316176pfr.201.2021.02.11.20.41.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Feb 2021 20:41:25 -0800 (PST) Date: Fri, 12 Feb 2021 10:11:23 +0530 From: Viresh Kumar To: Masahiro Yamada Cc: Rob Herring , 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 Subject: Re: [PATCH V7 1/3] kbuild: Add generic rule to apply fdtoverlay Message-ID: <20210212044123.7i6kzgekoddqufko@vireshk-i7> References: <44dad578df8a848fc378cd358f03b071f44c9a5b.1612955268.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12-02-21, 12:07, Masahiro Yamada wrote: > BTW, I do not know how to use overlay. > Do we apply overlay in the build time? Ideally it can be applied at both build time and runtime, but we haven't allowed the runtime way until now in kernel. This patchset is all about applying it at build time. > If so, I do not know what the benefit of overlay is. > Or is this just for build testing? For now the main benefit of using them is that we can keep stuff in separate files without including each other. For example a primary board may or may not have an extension board connected to it. Without overlays we will have this many dtbs for this simple case: 1. primary.dtb 2. extension.dtb 3. primary-includes-extension.dtb With overlays we will have the first two. Now the same extension can be applied to lots of boards and multiple extensions can be applied to the same primary board. This just complicates the process of managing dtbs. > I just thought this was done in the boot time, > for example, in U-Boot or something. Yes, bootloader can do it as well. -- viresh