Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4101477pxf; Tue, 16 Mar 2021 05:57:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykIetUT3cSJw6MLCD9NNNkrplT6FgHuENFTlW+jCb4lutXEtf2U7CYsJcYDN7iyhcfprRL X-Received: by 2002:a17:906:37db:: with SMTP id o27mr30031566ejc.60.1615899478500; Tue, 16 Mar 2021 05:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615899478; cv=none; d=google.com; s=arc-20160816; b=Ye2FNuylON8jmgwGw5h5RrKYamzS79vb7YhUXENXg++XTaBxSBlyxxuuFYFawx++DC y2mNAloeLTTMU/5JbWSW+nF7qcuwls5IvtjyGz5PBbpzIByN5b2bOZEEGsXtQtxEFkQi Rv8S9H3ez6g2WqBJQDtZ4MPMivTPoOpvwjVB1KqFJUjXUoyIHxPxAVgQd8qCZ3HAM3P1 vu28BpHSx55UWQTr1/QwpsHBdKE4ul/hfJYakDPhiCwunAtlqQKYahCYbymlpcK9t2wo Rfat21EX8dN/iaO6oBOV+92nQS5rdWmtLuxYRPNAwEJ/F2nnh0gg+xJYJWrPsNpLh+SQ 0zEQ== 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=woL6zbu27Z+h9jJa1MEjyfk3mAabMy5L5Oe2TEvDgb4=; b=mfb+Eg/dXgWAM1qCtZgDwGDKFv+dHAnR/5ZzH94ysGane15R3Y4AcjGaN8JOGjwOxa PSj26jm6T658rRpeH8LjajRSOOLZMjvgdILaoKhSgxXmWGhYiG4U9o1Kc3DCc/vxJNh+ Kx7KjPUoGCPfc4M0rZPEA5bCqPb5u7D062zGJl2dN+qZ8s4Xc46rw6kPS5x0YPoDcTSa TMa82hlircCZLUFsbF/IdX+lxZW7e21dh1ehOZoBXpd1L6IrI7JsQXduNZcm+HBwX0Kx P/6hDWPu5N+f94j/KHAuP5AFIeMTYZ1AumWz2JUUGk/yMXVLwXRivlsyiuDQzyt5Oq44 rbaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="n/ust53y"; 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 hb37si13914540ejc.81.2021.03.16.05.57.35; Tue, 16 Mar 2021 05:57:58 -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=@gmail.com header.s=20161025 header.b="n/ust53y"; 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 S235498AbhCPFgj (ORCPT + 99 others); Tue, 16 Mar 2021 01:36:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231228AbhCPFgf (ORCPT ); Tue, 16 Mar 2021 01:36:35 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A20CC06174A; Mon, 15 Mar 2021 22:36:35 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id t16so8977943qvr.12; Mon, 15 Mar 2021 22:36:35 -0700 (PDT) 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=woL6zbu27Z+h9jJa1MEjyfk3mAabMy5L5Oe2TEvDgb4=; b=n/ust53ylv2qJX5wCDKAWDUTagH0V54u+0bJnydbTj+aQ9O7qP1nPxZ+OV9UMho4sw lbX0BX8mVajospvaaEge0dMf7is/0HUuc7UlX+wwRccc+WW1FalbpJtW3Qqzl13xGqLt DLioP1GfgNN1MselSs7uPfUL2snEAliN52akg6rmeBA+sxyefIq//SoEbomhxaJvYnp8 am/ry+ZW85ppjWONgIvho3+kNh8cKuqYuE6QMujRFuuDLn1FHt5XhHuFAvFSukUqyG7f 0wT5yHhefbtLSIJ+HEtqfKaJW4Hed5lefiDmSjkBnPoXLziyJD//gbC1RbvWrdMr8D8k MyJw== 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=woL6zbu27Z+h9jJa1MEjyfk3mAabMy5L5Oe2TEvDgb4=; b=aN57TTOk+FzEJVP/6ovT01D7m16nIjEjx0XHJuXz8hm9Ph/pMJX4vNUt0nf45hUAyx kOVs6T0L6O4jOAvGLerncHqRXC2PCOQReyWV03XQWrJwW4Deb9zF2lV2gld71d6SDtqs nxHJQjWtHoSGA21TKuUVHt8a8dqGrYxY3JBORnL0nFmEPyuDFTWRLyflvZ7KnMbZ0MSU mMiJV5xZZUhVxBz3cwrxud7vLaC3LS42Mn8TO00OmkQHAYOfcXalOelbnYwTJoflt+ur Ag3ZEKUoVsl235Ni6r+JVazhwzXf3vYtBHiR3ksUuhWZkhwH0Rfy8fByO0BfuUy9W9va VhRA== X-Gm-Message-State: AOAM530Mn/m7GQbD/2jZYF5jARkRkvarV4duFMygb0/xW343NHD15UEM YaOQwORH/l5Yk6PJT/gEs1V4xF9szI4= X-Received: by 2002:a05:6214:f69:: with SMTP id iy9mr14218210qvb.15.1615872993880; Mon, 15 Mar 2021 22:36:33 -0700 (PDT) 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 j24sm14091946qka.67.2021.03.15.22.36.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Mar 2021 22:36:33 -0700 (PDT) Subject: Re: [PATCH V11 3/5] kbuild: Allow .dtso format for overlay source files To: Viresh Kumar 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 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> <20210315064051.otcjt3x6vkfdrio6@vireshk-i7> From: Frank Rowand Message-ID: <98697a33-a07d-6c5f-3f21-97a92ac68d3e@gmail.com> Date: Tue, 16 Mar 2021 00:36:32 -0500 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: <20210315064051.otcjt3x6vkfdrio6@vireshk-i7> 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 3/15/21 1:40 AM, Viresh Kumar wrote: > 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) > I should have looked at patch 3/5 more carefully instead of counting on Masahiro to check it out and simply build testing. Patch 3/5 does not seem correct. I'll look over all the makefile related changes that have been accepted (if any) and patch 3/5 later today (Tuesday). -Frank