Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1103745pxj; Sat, 29 May 2021 03:21:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmpsgsbWUsWsjLvMTpfgogtigKSg22OGkbMDGwAeL6oVhBdmFmd0fYiSBR6YVo1aXpuxIN X-Received: by 2002:a17:906:6c97:: with SMTP id s23mr8192895ejr.224.1622283707915; Sat, 29 May 2021 03:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622283707; cv=none; d=google.com; s=arc-20160816; b=o8LRxhx8QCYRLJyWKjnZnpYRszOiIPJhx77eieDQUHMpV71zYh8K73JUK7zZ7+ob4T 5rViTRxEaJT9pMDIBkJizd2ws4ieq0F/6y5pbNuCQW5kqLBjoZsx9UcNxGSRKYgsQP1b ieMTMbC3d++uAHfmB7dkeLHXkx5bWOV+ZhblXN/EVY6Un5lO3lcc7z19lROg4K8ZvqQP exu6a+mlHlSmkKLwMaLFfnqjbd0uB2E7dEtbTKWAK0rHi12kwrDrV4POsa9fIIMwk5PJ bIuvCPFegtzWpjuvvq+Va4PuKB5s4PymN+tW6LUhyqT2O/p/AwjZ+Ust804Yli7endc4 enBQ== 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; bh=D4xsCrALa2A1Ie1zoicacK+52AnVplb+rEpbu2N/OhM=; b=EPd8i2nroCUMnCJDp1sYLrm/c8uv5zbNWA8aKQ6blRvuYeosaV83+HMsnLVIA5BlI6 n/QStXVXGFoShVeAN8P0+UDbYxnJap28UhkTlg8wySlC/3PJosZckfJCywE5/arDMNLF 2KRjVE1dNo42HFzg7cbOW9DL5f5rHdN8PA3sfL7t+iKemt9pD7wyUH1p6aflVN9/RjFI R0yXK60nFyUyj6y4fnQ+FLU5uMswnMzhmbAcfIqeF9GrCQu1yUqAgW9tanaFDKI9m35U GjZGJ3vkGi+7Iauy20oG8w8EgO2XAA5KaYq1+X64BAXgH5SOrYrgWUzgTZYoV5e2CDCV cYMg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si2491685eji.584.2021.05.29.03.21.25; Sat, 29 May 2021 03:21:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbhE2KSr (ORCPT + 99 others); Sat, 29 May 2021 06:18:47 -0400 Received: from mail-vs1-f47.google.com ([209.85.217.47]:46610 "EHLO mail-vs1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbhE2KSq (ORCPT ); Sat, 29 May 2021 06:18:46 -0400 Received: by mail-vs1-f47.google.com with SMTP id j67so646745vsc.13; Sat, 29 May 2021 03:17:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=D4xsCrALa2A1Ie1zoicacK+52AnVplb+rEpbu2N/OhM=; b=PzL88YXUS6pOaG+m0j43Qy58kjxitpDJ/7HH7XqGjoM6ylzXElmeJWXXxeeaO0GvF/ yX3NEpy4/vr40Yt8paGtvuMjTNEBHP3D4jw8Efb/jKnAsF5m9sJEowJh6+P9tLcN0Bvy PGJYF4GU+ZZ1ChGwW8GfPfEcgAwqs/3mhiQk5mtfZunC/IxM/InfN74czvnGFnSDGBLa 2eURtt5eJkemfU3fWrkfNIZWH8LguKlEDupeWVfatWK3epWY7X+LKnmnfwgORTp/xJBK +NDleoDRNVITvcNQFKwcstw13TozC4c3Z88Gz/oWztbynLohKr+XaFRoTrmJHStnFTlX HzLg== X-Gm-Message-State: AOAM533eZZ5HzBeql30YJ/SQxrET4vWr5aKSKJTehlcvTOJwFnM+RXuU bkCH0YORS3qMEHmnWzVrKA4LKtz7UIf7w/qqzer7KgBO+uM= X-Received: by 2002:a67:fb52:: with SMTP id e18mr10366845vsr.18.1622283429938; Sat, 29 May 2021 03:17:09 -0700 (PDT) MIME-Version: 1.0 References: <20210324223713.1334666-1-frowand.list@gmail.com> <20210327174035.GA291160@robh.at.kernel.org> <3e6710e7-08ac-7d1b-aa69-bcd36f0d932a@gmail.com> <20210526061144.yvoaurpz75a3bsjr@vireshk-i7> In-Reply-To: From: Geert Uytterhoeven Date: Sat, 29 May 2021 12:16:58 +0200 Message-ID: Subject: Re: [PATCH 1/1] of: unittest: rename overlay source files from .dts to .dtso To: David Gibson Cc: Frank Rowand , Viresh Kumar , Rob Herring , Masahiro Yamada , Michal Marek , Vincent Guittot , Michal Simek , Anmar Oueja , Bill Mills , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kbuild , Linux Kernel Mailing List , Pantelis Antoniou Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On Sat, May 29, 2021 at 7:16 AM David Gibson wrote: > On Thu, May 27, 2021 at 09:21:05AM +0200, Geert Uytterhoeven wrote: > 65;6401;1c> On Thu, May 27, 2021 at 3:48 AM David Gibson > > wrote: > > > On Wed, May 26, 2021 at 04:21:48PM -0500, Frank Rowand wrote: > > > > On 5/26/21 1:11 AM, Viresh Kumar wrote: > > > > > On 22-04-21, 13:54, Frank Rowand wrote: > > > > >> On 4/22/21 3:44 AM, Geert Uytterhoeven wrote: > > > > >>> On Mon, Mar 29, 2021 at 9:23 PM Frank Rowand wrote: > > > > >>>> On 3/27/21 12:40 PM, Rob Herring wrote: > > > > >>>>> On Wed, Mar 24, 2021 at 05:37:13PM -0500, frowand.list@gmail.com wrote: > > > > >>>>>> From: Frank Rowand > > > > >>>>>> > > > > >>>>>> Add Makefile rule to build .dtbo.o assembly file from overlay .dtso > > > > >>>>>> source file. > > > > >>>>>> > > > > >>>>>> Rename unittest .dts overlay source files to use .dtso suffix. > > > > >>>>> > > > > >>>>> I'm pretty lukewarm on .dtso... > > > > >>>> > > > > >>>> I was originally also, but I'm warming up to it. > > > > >>> > > > > >>> What's the status of this? > > > > >> > > > > >> I was planning to resend on top of the upcoming -rc1. > > > > > > > > > > Ping. > > > > > > > > > > > > > Thanks for the prod... > > > > > > > > The .dtso convention was added to the dtc compiler, then a patch was > > > > accepted to revert one mention of .dtso ,though there still remains > > > > two location where .dtbo is still recognized (guess_type_by_name() in > > > > dtc and the help text of the fdtoverlay program). > > > > > > > > It seems that the general .dtso and .dtbo were not popular, so I'm > > > > going to drop this patch instead of continuing to try to get it > > > > accepted. > > > > > > AFAICT .dtbo is moderately well established, and I think it's a good > > > convention, since it matters whether a blob is an overlay or base > > > tree, and it's not trivial to tell which is which. > > > > Indeed. > > > > > .dtso is much more recent, > > > > Is it? > > Well, I wouldn't bet money on it, I just seem to remember encountering > .dtbo for some time before .dtso was mentioned. > > > The oldest reference I could find is from May 2015: > > "[PATCH/RFC] kbuild: Create a rule for building device tree overlay objects" > > https://lore.kernel.org/linux-devicetree/1431431816-24612-1-git-send-email-geert+renesas@glider.be/ > > Hm, I think .dtbo is even older than that, but again, I wouldn't swear > to it. Sure. My work is based on Pantelis' work for BeagleBoard capes. His code (from 2013?) used .dtbo and .dts: overlay/v3.10/merge:firmware/Makefile:$(obj)/%.dtbo: $(obj)/%.dts | $(objtree)/$(obj)/$$(dir %) So I might be the one who introduced .dtso... > > I have always used dtbo/dtso in my published overlays branches, > > referred from https://elinux.org/R-Car/DT-Overlays, and used by > > various people. > > > > > and I think there's much less value to it. > > > > IMHO the same reasoning as for dtb vs. dtbo applies to dts vs. dtso. > > It matters if the resulting blob will be an overlay or base tree, > > as the blob will have to be called .dtb or .dtbo. > > As dtc outputs to stdout by default, the caller has to provide the > > output filename, and thus needs to know. > > Even if dtc would name the output file based on the presence of > > "/plugin/" in the input file, the build system still needs to know > > for dependency tracking. > > Hm, fair point. I was thinking of the the /plugin/ tag as the > distinction, whereas dtb is binary and the distinction isn't even > marked in the header. But you're right that even readable text labels > inside the file don't really help make(1). So, I retract that > assertion. Thanks! > > We also do have .dts vs. .dtsi. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds