Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3066038pxf; Sun, 14 Mar 2021 23:47:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxixpQcMlsZ5XknMe2lO08Z/qIO/YbXJFHwO4tk+crZlSMMRf14c3W3XHAEUKSsErjmAlpI X-Received: by 2002:a17:907:2062:: with SMTP id qp2mr21943053ejb.397.1615790819819; Sun, 14 Mar 2021 23:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615790819; cv=none; d=google.com; s=arc-20160816; b=W68pwhVs6nRCM7ySQk/0nZqdx0JzQTFKhDkYpO9PtgAFRIf+Z4V6dE9PpQcPPJeIXj edif3qOEudxtKES0pivcf6DZ2PsT4UvkU4yAD0VxFF0lrUuV4h2kHgGZIsc4lNeMB+76 8ytU+zQzPC3+eFiFChZu4ewvN2a+n6wYgcDcUDKDmAhS9GTfU3vQWOGKLCKjkYlCum64 3aZkXYUPEAUoqrfHjPtvGJAa3fB51bgQqTq4lOC0+WaAzkyBUHN6hpXDdFxbnedqtUnQ XvGW0J18h3n585JGTlzVatI/+eDQSojr4vVMFJzF5aGU6gX+ZhuqZAAb01PI1b0U/9i1 4Pvg== 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=lDgFJiFzkALDNWJm7eIQALO66wKkLjr8e5CGYouyH9Q=; b=btoNZFszJJnYrv8z9KVbN5dkJW1CMul1C3S+zD5w1z9rGSJl/fsZckO8POM+R0ty9j y4s9Y4Omx+I4J05l0SWybn1dVlpctuqREmN0pbA324Z0YR/EyeqhpLprT+hmbJDMkPdJ G0bznlumyYa6JJLWNyVhphxwZL8qtUQYoBC0QGVgEZPAdMnU1jpbTMh5/aO89aKHDFWg N6hEfxpaJ47DCoWNp0dmwiignvU+I/fbnP8GBBN462MTYQ5Y/tSKqL2mDG8Ct08ARfva 9FMZYqnLTySvb5nZ0KLE9bwvOyizKYA/3MZ+f4Im0NiqYS+iBH46rr1T97NBLYMEvuEY 09mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vxg3eiHa; 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 g19si10328406ejf.52.2021.03.14.23.46.37; Sun, 14 Mar 2021 23:46:59 -0700 (PDT) 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=vxg3eiHa; 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 S230085AbhCOGlV (ORCPT + 99 others); Mon, 15 Mar 2021 02:41:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbhCOGkz (ORCPT ); Mon, 15 Mar 2021 02:40:55 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14513C061574 for ; Sun, 14 Mar 2021 23:40:55 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id cl21-20020a17090af695b02900c61ac0f0e9so1469230pjb.1 for ; Sun, 14 Mar 2021 23:40:55 -0700 (PDT) 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=lDgFJiFzkALDNWJm7eIQALO66wKkLjr8e5CGYouyH9Q=; b=vxg3eiHaUzzokoIRbIOsTMbEDkyQd3FqU57/Q43Ck+dCgIf1WAnjGb9NyCrTRt7CJD uk+aUyIgyk0GnD8jHUpNRo5uDGZ3LgBNHGNF4S7um9zWitOmiIw8K/fldSleJQfqbXwB JUfSDmdDzqrOMdygefJ03PYQGYk1aBmUeeO1AwmFeZDktkjsVdRMs2Dt1WI03oSZhS8E i5FrDTPoiWyusj1hhRGLCFBB9CQVxxjJ6B694Z97o9FqJkHsUBsCpyhliw5YL6pDsHsj d9Gl0A12fDh8g641TA85wMtCPFUDUtxyGfmKcHh//3TyLLXNZSUUmES+aVql8g/7o5zJ mCDA== 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=lDgFJiFzkALDNWJm7eIQALO66wKkLjr8e5CGYouyH9Q=; b=qDWkABukB6ui7piTu4D3o38c5LQ3cuAvAFr0wUgI1IhdmWo6UqTxH1MD5Kn6FOEjas F7vCfHQZdFFpNZ8Do26luXpu/WnzWfPGkKUCpysC+0U83jb9q2LNPMPRmXuy2JehAEyP OPBadO6IQTjLPXLSoYX7C4vSBBFh5P7TRzMPimZooAJkvLIEy3ZyeLnrX1dSTbvgejoi b/lxJktXyZC8uS/vl7a7E1+Qtl/iTCJprDkduvpAzH5+e78VjbLzlVfdT5Fd7A9cv7vh LWcgjphcx9nhIiCXjenILR+ZsFV9MCiR97vNznOsPm/dZueQxS6qSLkK9Oo0d11m0H7G s2nQ== X-Gm-Message-State: AOAM532RU4wKNsYGkAQRu/ML/2DsK/Ynak7qOS26ahGxVW6Duw054+TQ g8uGzvbbiQ4wqcoiZuubKgVcPQ== X-Received: by 2002:a17:902:c382:b029:e4:7015:b646 with SMTP id g2-20020a170902c382b02900e47015b646mr10771208plg.83.1615790454561; Sun, 14 Mar 2021 23:40:54 -0700 (PDT) Received: from localhost ([122.171.124.15]) by smtp.gmail.com with ESMTPSA id g2sm12134089pfi.28.2021.03.14.23.40.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Mar 2021 23:40:53 -0700 (PDT) Date: Mon, 15 Mar 2021 12:10:51 +0530 From: Viresh Kumar To: Frank Rowand Cc: Masahiro Yamada , Michal Marek , Vincent Guittot , David Gibson , Michal Simek , Geert Uytterhoeven , Anmar Oueja , Bill Mills , Geert Uytterhoeven , Linux Kbuild mailing list , Linux Kernel Mailing List Subject: Re: [PATCH V11 3/5] kbuild: Allow .dtso format for overlay source files Message-ID: <20210315064051.otcjt3x6vkfdrio6@vireshk-i7> References: <170e086a5fa076869e7b37de8eea850fa7c39118.1615354376.git.viresh.kumar@linaro.org> <20210312044712.srmqfuie7fae55pb@vireshk-i7> <17c65559-865f-f742-660f-0ab30ed45d90@gmail.com> <4d9bee7a-416e-50a1-65a5-0674ae83d42e@gmail.com> <20210312071325.zosmlttse4ym7sit@vireshk-i7> <6f093bb1-1a80-a906-fb4c-3f6fdeed4838@gmail.com> <9068520f-76d6-ec94-716c-02383422ac85@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9068520f-76d6-ec94-716c-02383422ac85@gmail.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14-03-21, 20:16, Frank Rowand wrote: > On 3/12/21 11:11 PM, Frank Rowand wrote: > > On 3/12/21 1:13 AM, Viresh Kumar wrote: > >> On 12-03-21, 01:09, Frank Rowand wrote: > >>> I suggested having the .dtso files include the .dts file because that is a relatively > >>> small and easy change to test. What would probably make more sense is the rename > >>> the existing overlay .dts files to be .dtso files and then for each overlay .dtso > >>> file create a new .dts file that #includes the corresponding .dtso file. This is > >>> more work and churn, but easier to document that the .dts files are a hack that is > >>> needed so that the corresponding .dtb.S files will be generated. > >> > >> What about creating links instead then ? > >> > > > > I don't really like the idea of using links here. > > > > Maybe it is best to make the changes needed to allow the unittest > > overlays to be .dtso instead of .dts. > > > > Off the top of my head: > > > > scripts/Makefile.lib: > > The rule for %.dtb.S invokes cmd_dt_S_dtb, which puts the > > overlay data in section .dtb.init.rodata, with a label > > pointing to the beginning of the overlay __dtb_XXX_begin and > > a label pointing to the end of the overlay __dtb_XXX_end, > > for the overlay named XXX. I _think_ that you could simply > > add a corresponding rule for %.dtbo.S using a new command > > cmd_dt_S_dtbo (the same as cmd_dt_S_dtb, except use labels > > __dtbo_XXX_begin and __dtbo_XXX_end). > > If you do the above, please put it in drivers/of/unittest-data/Makefile > instead of scripts/Makefile.lib because it is unittest.c specific and > not meant to be anywhere else in the kernel. What about doing this then in unittest's Makefile instead (which I already suggested earlier), that will make everything work just fine without any other changes ? +# Required for of unittest files as they can't be renamed to .dtso +$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE + $(call if_changed_dep,dtc) -- viresh