Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp150456pxu; Tue, 5 Jan 2021 07:24:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxV/Hw3iwBxhVD5dsQLp4Jrz4WlRrSOUHmWBDcNLqIiUhbdZcXeINY+kpzhbjxbhggMZUmP X-Received: by 2002:aa7:dcd0:: with SMTP id w16mr227597edu.229.1609860244316; Tue, 05 Jan 2021 07:24:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609860244; cv=none; d=google.com; s=arc-20160816; b=fTcMs1FJ0YykCTAMxpMho3ZrROPlgCvBHtGS2wgc5BqYq9iAlFbMbDJWkErael1OGu n53DZHzm8Yp8aN6gEC55JEPPbGWlHj3bz9PVGY6YnLGHjuP50ypLC7ravNhw5doxMmYZ MbjRbClP6zG676XTahfqieJ0PmFl/mlPObnApTXWrU9tWa2eHtowitf6JPJCCyv/7d/1 iMrUE5u4w1eZg9zPKd7wXFjCHIf0KgFXobk7zXUlXZlStaGG/d/VKwYNSSd3HV7rlcXm d6J+xDz0oVoUBfZqarDEelIRW7SMERqpQqgs/J6frR+/Eq7Z1idg9B3s6ksp2Xs1bzoK ZPyg== 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; bh=97UVCrOKT2ErdgEJfAOSkI21WLa7Deputq5XkcrSorU=; b=is30rAgYTwo+WnCFeBSY51NY1bRVDcWNtbigObrYXP0Bm2bB0hvcURo03UXFWEBIqx G3AAnYDY59w4emFHrIfYxbGBt1VYZVXwtOQXYVfuBWXr2GjDVIYnXkP6q9LpK+UMnlz+ 4F86uOu0vcxyc5h6c4kgL87xGDxVSBxXME7Ohd2bsr720NrPoQZ0qe5qS0ipQeC+5jlj HYMYrbBQuBPXchY4sNSS8LbSPF0XMn/J2ppNcLkGU0Bv7Ow1SBQIfAdUwOUVh8k1oCEz EMrtanvXnFMK+wCgbxR9/jUlAzMbz1bKDSAP2cE+TAl5xi0lD7pRzdMsBLNBz6L6VBq9 O/pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NwTwNrVi; 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 o22si31254425ejg.205.2021.01.05.07.23.29; Tue, 05 Jan 2021 07:24:04 -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=@kernel.org header.s=k20201202 header.b=NwTwNrVi; 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 S1727608AbhAEPWb (ORCPT + 99 others); Tue, 5 Jan 2021 10:22:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:58876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727155AbhAEPWa (ORCPT ); Tue, 5 Jan 2021 10:22:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D1C3522B4B; Tue, 5 Jan 2021 15:21:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609860110; bh=97UVCrOKT2ErdgEJfAOSkI21WLa7Deputq5XkcrSorU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NwTwNrVi66RUa3GtNfMNr9IQIcz725PAprzh5MioC9eDPEj3xGYCWy4hHotoKqH8E GjvP+MwWSlLBrKVr3NusyLcs6M4RltorOOK/iqcvwIWD2NS5V8K2Ky5TzAvjve6G/g VCL5Prj92RXGBsbN/5AMqKXrWaYV0jdi6T4YR6P/C+EhaVAl7yk+48QA+hLtPcfr5+ /gF4xJQSJ1YMBWwfDO5cwG+zvl8SuwsDlz0CgVbIHNG4Tt6bjNRpFMn1yCSLiVPPBw lWwDzcOq54Oi8OVxi7mG7nfy989go6YqxfFNdd3cKr77mBRAY0HrETBh23d7MwmO1N Ro1R0RfgHGuOw== Received: by mail-ed1-f46.google.com with SMTP id c7so363929edv.6; Tue, 05 Jan 2021 07:21:49 -0800 (PST) X-Gm-Message-State: AOAM533TkKfpbQjwK763c3SIjPlrNZ0V1yIAUV6SyXV+isBgJ4EB+aNO BDSHlkmmfIYpcyvs43uFozvqxdPahZ/UkJccTQ== X-Received: by 2002:a50:f404:: with SMTP id r4mr286028edm.62.1609860108469; Tue, 05 Jan 2021 07:21:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Rob Herring Date: Tue, 5 Jan 2021 08:21:36 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 0/2] kbuild: Add support to build overlays (%.dtbo) To: Viresh Kumar , Arnd Bergmann , Olof Johansson Cc: Pantelis Antoniou , Frank Rowand , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 (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