Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2950271pxb; Tue, 12 Jan 2021 02:38:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmXy9Opf6UklvveHlv/yyt6EJ6qnAOU4yiEEKqTrYOH1qtudXTcZLadETioFH2o8uPUZAO X-Received: by 2002:aa7:c5d6:: with SMTP id h22mr2801935eds.82.1610447917316; Tue, 12 Jan 2021 02:38:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610447917; cv=none; d=google.com; s=arc-20160816; b=UPimlfo0AxGwbnaGgdaBHI1Dl8LJ3pyxQ9ORzFZ4GTweNp7Yi9WMwGntuR676IyUQC wzZmTUf30OVuvzxR2tGVUeDRGKDdV2vGCxgGsJD2oZ/ecKI4UZ+lCd7q1LNeWsezUMSg dM2sC6zCRXQNSV2guUGJIlNbrdETBy9Er6P3csRQlD/zkODkzZyOd3z52s3eqj2g6mEA +vBpzIQgVQgqmgZSIq2aaoKhRQ2Euu5o02Phzyukfd3KO9jKVdq/+RWvyISBhPHSC+re o9AMZe6dguXrhYQz9bA4FY5EmkGFwILSIBntNqNvT4hJJ10GuiU27CIMopiAs0coG0lq arjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=hvGe1An1yw/BFTMsS0krviHSfzdBwIfCXLUTiKIE1V4=; b=OF1dI3ZQTXFYb96Q70pOitBbok/WdabHsLcn2F91wANj6F5O/L30gaD4jnwT3z2Iqx 0v4WiziYOrOTJVEEj2DT9aaTmpYmb8dppZ6cRyZRoKFJ51MepF0XAypLT2KSGvJUAgpp pmjtvE+3qgrmLtQ5B8IPbcxRJ4Xpu6msX9i5S63f39Gv3oy9TLOpplVuYxqLeLtV6jau VEuJhi20KyxQibU1S0YzaTnw9bT1yIKNeW9yfVUJi1gHq6nh8Ey30exGihdY6VQfFJ9w /Nh6NL6kew2zJ5FZHOXY4uJn3w356T+YmfqiEf4rJCghKoUqMmsiwOsDZVf8d4qeqiCA Ecmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M+LH5yFy; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si1149580eds.116.2021.01.12.02.38.13; Tue, 12 Jan 2021 02:38: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=@gmail.com header.s=20161025 header.b=M+LH5yFy; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728935AbhALAdf (ORCPT + 99 others); Mon, 11 Jan 2021 19:33:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405517AbhALAZm (ORCPT ); Mon, 11 Jan 2021 19:25:42 -0500 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A21BC061575; Mon, 11 Jan 2021 16:25:05 -0800 (PST) Received: by mail-qk1-x732.google.com with SMTP id f26so552784qka.0; Mon, 11 Jan 2021 16:25:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=hvGe1An1yw/BFTMsS0krviHSfzdBwIfCXLUTiKIE1V4=; b=M+LH5yFyuEpMDk2otKP2Q9Cc1rdPc5RM7G1Zgdwe3dIcuU7eFcAi8rugqwwec0yseV gCSyD/H76B2RdPcUg/JMxsuMOZx3bUapReBH3DQenIFpCuukHlRk38EtXmr1jC3ua+00 FiRKvwhVcoNylEuiNGZCufc5OfHXGkYQvP1+fZG6rgoDxL++u4lu74X76DjOBeYtcPo3 JTD45dAQH+WwMC3bYYjKofnrMaxEK1phT54/iw07cRxdL6gz718ib+Gq+ux2bXSbPIZc k6OBLqf0/u17tZtAWWc2rp5Ey6TQGt6cqIekaXbB+0vHLHt9W49hTyO/VZQAttVVVjYk Zu1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hvGe1An1yw/BFTMsS0krviHSfzdBwIfCXLUTiKIE1V4=; b=WNXNiD24MEUD3LaugvqE9dEoMvgBJzQdJxsRME+VlxQVGoakNKYSidHG8RrhQimXob enRDoJD78v092dfIXxH+HS2ilGm3Q2mJObTnAqK8e5MEv6Fz//sTp4SHppGRrQ6y3ddy XJiInZ8BfgIGNHxdVDTLkuLMHuiF1BcvswE6BXd4rvr0UnZFMvlgHfDe3pv33cK8L58X vdb/y0OfXZmm488hgvBWh50Hh3sDZCLrlBW8h/MpvxpT9e16oa4ybotIkw7m8MO5i9+a sZwkUcErLoM5v5sGR+ouzmOQmYRO8BGxFCHer0hqbUnzPYK6l3sM0xJL4kNfBV/uoqDm QoTw== X-Gm-Message-State: AOAM530bS7bmFYJeEoC71EIGy1MeTTU/upiqwlkrvnkqh82Qi61VHhqT YukLOhmmLGR9r8/HenQe/A0skmfoUrEu1g== X-Received: by 2002:a37:4a82:: with SMTP id x124mr1958071qka.458.1610411104783; Mon, 11 Jan 2021 16:25:04 -0800 (PST) Received: from [192.168.1.49] (c-67-187-90-124.hsd1.tn.comcast.net. [67.187.90.124]) by smtp.gmail.com with ESMTPSA id o10sm549610qtg.37.2021.01.11.16.25.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Jan 2021 16:25:04 -0800 (PST) Subject: Re: [RFC 0/2] kbuild: Add support to build overlays (%.dtbo) To: Rob Herring , Viresh Kumar , Arnd Bergmann , Olof Johansson Cc: Pantelis Antoniou , Masahiro Yamada , Michal Marek , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Linux Kbuild mailing list , Vincent Guittot , Bill Mills , tero.kristo@gmail.com References: From: Frank Rowand Message-ID: <1cbefc63-4185-def5-2afa-d929a44e4e1f@gmail.com> Date: Mon, 11 Jan 2021 18:25:03 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/5/21 9:21 AM, Rob Herring wrote: > On Tue, Jan 5, 2021 at 4:24 AM Viresh Kumar wrote: >> >> Hello, >> >> Here is an attempt to make some changes in the kernel to allow building >> of device tree overlays. >> >> While at it, I would also like to discuss about how we should mention >> the base DT blobs in the Makefiles for the overlays, so they can be >> build tested to make sure the overlays apply properly. >> >> A simple way is to mention that with -base extension, like this: >> >> $(overlay-file)-base := platform-base.dtb >> >> Any other preference ? > > I think we'll want something similar to how '-objs' works for modules: > > foo-board-1-dtbs := foo-board.dtb foo-overlay1.dtbo > foo-board-2-dtbs := foo-board.dtb foo-overlay2.dtbo > foo-board-1-2-dtbs := foo-board.dtb foo-overlay1.dtbo foo-overlay2.dtbo > dtbs-y += foo-board-1.dtb foo-board-2.dtb foo-board-1-2.dtb (Thinking ahead....) I'm not sure how to fit connector nodes and the corresponding plugin overlays into this model. A single plugin .dtbo will need to be relocated onto one or more connector nodes. fdtoverlay and the run time overlay apply code do not know how to do this yet. -Frank > > (One difference here is we will want all the intermediate targets > unlike .o files.) > > You wouldn't necessarily have all the above combinations, but you have > to allow for them. I'm not sure how we'd handle applying any common > overlays where the base and overlay are in different directories. > > Another thing here is adding all the above is not really going to > scale on arm32 where we have a single dts directory. We need to move > things to per vendor/soc family directories. I have the script to do > this. We just need to agree on the vendor names and get Arnd/Olof to > run it. I also want that so we can enable schema checks by default > once a vendor is warning free (the whole tree is going to take > forever). > >> Also fdtoverlay is an external entity right now, and is not part of the >> kernel. Do we need to make it part of the kernel ? Or keep using the >> external entity ? > > Part of the kernel. We just need to add it to the dtc sync script and > makefile I think. > > Rob >