devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Jason Cooper <jason@lakedaemon.net>
Cc: Mark Rutland <mark.rutland@arm.com>,
	devicetree@vger.kernel.org, Pawel Moll <pawel.moll@arm.com>,
	Stephen Warren <swarren@wwwdotorg.org>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Rob Herring <rob.herring@calxeda.com>,
	Olof Johansson <olof@lixom.net>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [RFC PATCH V2 2/2] kbuild: dtbs_install: new make target
Date: Tue, 19 Nov 2013 19:22:46 +0000	[thread overview]
Message-ID: <20131119192246.GP16735@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20131119152146.GN16735@n2100.arm.linux.org.uk>

On Tue, Nov 19, 2013 at 03:21:46PM +0000, Russell King - ARM Linux wrote:
> On Tue, Nov 19, 2013 at 10:20:47AM -0500, Jason Cooper wrote:
> > By "That" are you referring to extending the standard for compatible
> > strings to the board level, or forcing consistent naming on the dts
> > files?
> 
> A consistent file naming on both the dtb and dts files.

It's time to knock the idea of naming the DT blobs after the compatible
string on its head as well.  That's really not going to work.  Just
leave the filenames as is, and move the problem into userspace to solve.

Why?

arch/arm/boot/dts/imx28-cfa10036.dts-   compatible = "crystalfontz,cfa10036", "fsl,imx28";
arch/arm/boot/dts/imx28-cfa10037.dts-   compatible = "crystalfontz,cfa10037", "crystalfontz,cfa10036", "fsl,imx28";
arch/arm/boot/dts/imx28-cfa10049.dts-   compatible = "crystalfontz,cfa10049", "crystalfontz,cfa10036", "fsl,imx28";
arch/arm/boot/dts/imx28-cfa10055.dts-   compatible = "crystalfontz,cfa10055", "crystalfontz,cfa10037", "crystalfontz,cfa10036", "fsl,imx28";
arch/arm/boot/dts/imx28-cfa10057.dts-   compatible = "crystalfontz,cfa10057", "crystalfontz,cfa10036", "fsl,imx28";

We already have DT blobs where the compatible string(s) for a DT blob
conflict with other DT blobs.

Using the compatible string as a filename means that you have to choose
one of the above to name the DT blob, whereas the above compatible
strings allow any of those to be used with "crystalfontz,cfa10036".

So, given a platform with "crystalfontz,cfa10036" you may wish to
offer to the user to select one of those five.  How do you do that
if you've named the files after the compatible string (maybe the
first compatible string.)

See - by doing this, you are building policy into the kernel build
system and potentially taking away choice from userspace.

Just use the filenames we already have in the kernel tree.  Let userspace
parse the DT blobs for the compatible strings - it can then provide the
user with the choice of all and _also_ show that certain of DT blobs
may be compatible with a range of boards as well.

  reply	other threads:[~2013-11-19 19:22 UTC|newest]

Thread overview: 95+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-11 20:29 [RFC DTC PATCH] dtc: add symlink (-L) output to dtbs Jason Cooper
     [not found] ` < 52814AFB.3070600@wwwdotorg.org>
     [not found]   ` < CAL_Jsq+mAoN2Lbg+uqfLMTZBvgz28E-EioiaU4BUSL_7rS5JjA@mail.gmail.com>
     [not found]     ` < 528275B7.6050209@wwwdotorg.org>
     [not found] ` < 20131115121215.901EFC40885@trevor.secretlab.ca>
     [not found]   ` <20131115152142.GC10335@ titan.lakedaemon.net>
     [not found]     ` <20131115152142.GC10335-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-18 12:56       ` Grant Likely
     [not found] ` <1384201760-16785-1-git-send-email-jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>
2013-11-11 21:24   ` Stephen Warren
     [not found]     ` <52814AFB.3070600-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-12 14:51       ` Jason Cooper
2013-11-12 15:29       ` Rob Herring
     [not found]         ` <CAL_Jsq+mAoN2Lbg+uqfLMTZBvgz28E-EioiaU4BUSL_7rS5JjA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-12 18:38           ` Stephen Warren
     [not found]             ` <528275B7.6050209-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-12 19:30               ` Jason Cooper
2013-11-12 19:40                 ` Andrew Lunn
     [not found]                   ` <20131112194009.GA13577-g2DYL2Zd6BY@public.gmane.org>
2013-11-12 20:08                     ` Jason Cooper
     [not found]                 ` <20131112193012.GR10335-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-12 20:15                   ` Stephen Warren
     [not found]                     ` <52828C77.20001-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-14 16:28                       ` Jason Cooper
     [not found]                         ` <20131114162859.GX10335-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-14 19:00                           ` Stephen Warren
     [not found]                             ` <52851DC8.203-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-14 19:16                               ` Jason Gunthorpe
     [not found]                                 ` <20131114191622.GC21549-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2013-11-14 19:34                                   ` Russell King - ARM Linux
2013-11-14 21:37                                   ` Stephen Warren
     [not found]                                     ` <528542AC.4080405-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-14 22:12                                       ` Matt Sealey
2013-11-15 16:14                                     ` Grant Likely
2013-11-14 19:26                         ` Russell King - ARM Linux
2013-11-15 15:23                           ` Jason Cooper
     [not found]                             ` <20131115152336.GD10335-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-15 17:09                               ` Javier Martinez Canillas
     [not found]                                 ` <CABxcv==rgF8fHL0MBStEsE6WmFs4OyQvuuyPQU4tqXG2NoDrzg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-15 21:38                                   ` Jason Cooper
2013-11-15 12:12   ` Grant Likely
     [not found]     ` <20131115121215.901EFC40885-WNowdnHR2B42iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2013-11-15 15:21       ` Jason Cooper
2013-11-18 18:38   ` [RFC PATCH V2 0/2] Add 'make dtbs_install' Jason Cooper
     [not found]     ` <cover.1384798508.git.jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>
2013-11-18 18:38       ` [RFC PATCH V2 1/2] dtc: add 'compat' output option, prints board string Jason Cooper
     [not found]         ` <728deb9bbeab491a728da077aa5e47c0e01bccf8.1384798508.git.jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>
2013-11-18 19:01           ` Stephen Warren
     [not found]             ` <528A63EE.8050401-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-18 19:21               ` Jason Cooper
2013-11-18 20:24               ` Jason Cooper
2013-11-18 18:38       ` [RFC PATCH V2 2/2] kbuild: dtbs_install: new make target Jason Cooper
     [not found]         ` <eaf050fbd62803784856a4f37d4b332f7778e22c.1384798508.git.jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>
2013-11-18 19:09           ` Stephen Warren
     [not found]             ` <528A65DF.8060000-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-18 19:19               ` Jason Cooper
     [not found]                 ` <20131118191955.GG10335-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-18 19:23                   ` Stephen Warren
     [not found]                     ` <528A6944.3070303-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-18 19:28                       ` Jason Cooper
     [not found]                         ` <20131118192852.GI10335-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-18 19:38                           ` Stephen Warren
     [not found]                             ` <528A6CA3.9030904-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-18 19:52                               ` Jason Cooper
     [not found]                                 ` < 528A98C8.9040803@wwwdotorg.org>
     [not found]                                 ` <20131118195243.GJ10335-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-18 22:46                                   ` Stephen Warren
     [not found]                                     ` <20131119122801. GL16735@n2100.arm.linux.org.uk>
     [not found]                                     ` <528A98C8.9040803-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-19 12:28                                       ` Russell King - ARM Linux
     [not found]                                         ` <20131119122801.GL16735-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2013-11-19 14:23                                           ` Jason Cooper
     [not found]                                             ` < 20131119150212.GM16735@n2100.arm.linux.org.uk>
2013-11-19 15:02                                             ` Russell King - ARM Linux
     [not found]                                               ` <20131119152047. GB28859@titan.lakedaemon.net>
     [not found]                                               ` <20131119150212.GM16735-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2013-11-19 15:20                                                 ` Jason Cooper
     [not found]                                                   ` <20131119152047.GB28859-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-19 15:21                                                     ` Russell King - ARM Linux
     [not found]                                                       ` < 20131119192246.GP16735@n2100.arm.linux.org.uk>
2013-11-19 19:22                                                       ` Russell King - ARM Linux [this message]
     [not found]                                                         ` <20131119192246.GP16735-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2013-11-19 19:54                                                           ` Jason Cooper
2013-11-20 13:10                                                           ` Grant Likely
2013-11-20 13:56                                                             ` Russell King - ARM Linux
     [not found]                                                               ` <20131120135617.GS16735-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2013-11-21  7:50                                                                 ` Grant Likely
     [not found]                                                             ` <20131120131004.ACA1BC4079D-WNowdnHR2B42iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2013-11-20 16:38                                                               ` Jason Cooper
     [not found]                                             ` <20131119142336.GA28859-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-19 18:40                                               ` Stephen Warren
     [not found]                                                 ` <528BB0A4.9030501-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-19 18:43                                                   ` Jason Cooper
2013-11-19 18:42                                           ` Stephen Warren
     [not found]                                             ` <528BB109.2060201-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-19 18:52                                               ` Russell King - ARM Linux
     [not found]                                                 ` <20131119185212.GO16735-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2013-11-19 19:27                                                   ` Stephen Warren
     [not found]                                                     ` <528BBB85.8050507-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-19 19:53                                                       ` Russell King - ARM Linux
2013-11-19 18:57                                               ` Jason Cooper
     [not found]                                                 ` <20131119185729.GD28859-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-19 19:53                                                   ` Stephen Warren
     [not found]                                                     ` <528BC1A3.70202-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-19 20:39                                                       ` Jason Cooper
     [not found]                                                         ` <20131119203923.GF28859-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-19 21:06                                                           ` Stephen Warren
     [not found]                                                             ` <528BD2BD.8090304-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-20 13:18                                                               ` Grant Likely
2013-11-18 21:21   ` [RFC PATCH V3 0/2] Add 'make dtbs_install' Jason Cooper
     [not found]     ` <cover.1384809305.git.jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>
2013-11-18 21:21       ` [RFC PATCH V3 1/2] scripts: dtc: build fdtget for extracting properties from dtbs Jason Cooper
     [not found]         ` <55bef0830d336fc1df24e4cbf96822acc70c8f7e.1384809305.git.jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>
2013-11-18 22:54           ` Stephen Warren
     [not found]             ` <528A9AA2.30303-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-19 14:17               ` Grant Likely
2013-11-18 21:21       ` [RFC PATCH V3 2/2] kbuild: dtbs_install: new make target Jason Cooper
2013-11-19 21:27   ` [PATCH V4] " Jason Cooper
     [not found]     ` <1384896475-8744-1-git-send-email-jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>
2013-11-19 21:58       ` Stephen Warren
2013-11-21 19:35   ` [PATCH V5] " Jason Cooper
     [not found]     ` <1385062552-9882-1-git-send-email-jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>
2013-11-21 19:55       ` Stephen Warren
2013-11-21 23:31       ` Kumar Gala
     [not found]         ` <653B066B-5B24-4817-86EF-D4D9F129123D-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2013-11-21 23:36           ` Olof Johansson
2013-12-01 23:40           ` Jason Cooper
2013-11-22 13:19         ` Jason Cooper
2013-11-22  7:44       ` Grant Likely
     [not found]         ` <20131122074411.47DE5C40753-WNowdnHR2B42iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2013-11-22 13:33           ` Jason Cooper
2013-12-01 23:56   ` [PATCH V6] " Jason Cooper
     [not found]     ` <1385942188-21831-1-git-send-email-jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>
2013-12-03 17:37       ` Stephen Warren
     [not found]         ` <529E16D8.3060608-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-12-03 17:41           ` Russell King - ARM Linux
2014-01-10 18:29       ` Jason Cooper
2014-02-04 12:41         ` [PATCH] " Grant Likely
2015-03-28 13:23       ` [PATCH V6] " Russell King - ARM Linux
     [not found]         ` <20150328132320.GA24391-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2015-03-28 13:37           ` [PATCH] dtbsinstall: don't move target directory out of the way Russell King
2015-03-28 15:59             ` Jason Cooper
2015-03-28 15:58           ` [PATCH V6] kbuild: dtbs_install: new make target Jason Cooper
     [not found]             ` <20150328155822.GA25778-fahSIxCzskDQ+YiMSub0/l6hYfS7NtTn@public.gmane.org>
2015-03-29 20:34               ` Olof Johansson
     [not found]                 ` <CAOesGMh4Xyyn5mDDo5_88pvZgdVJ-33UYvm8Y_9UNALfsqrytg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-29 20:58                   ` Russell King - ARM Linux
2015-03-29 21:04                   ` Jason Cooper
     [not found] ` <cover. 1384798508.git.jason@lakedaemon.net>
     [not found]   ` < 728deb9bbeab491a728da077aa5e47c0e01bccf8.1384798508.git.jason@lakedaemon. net>
     [not found]     ` <728deb9bbeab491a728da077aa5e47c0e01bccf8.1384798508.git.jason@lakedaemon.n et>
2013-11-19 13:58       ` [RFC PATCH V2 1/2] dtc: add 'compat' output option, prints board string Grant Likely
     [not found] ` <cover. 1384809305.git.jason@lakedaemon.net>
     [not found]   ` < 13f06582c166343c055b8793305d4b9a00b2172e.1384809305.git.jason@lakedaemon. net>
     [not found]     ` <13f06582c166343c055b8793305d4b9a00b2172e.1384809305.git.jason@lakedaemon.n et>
2013-11-19 14:22       ` [RFC PATCH V3 2/2] kbuild: dtbs_install: new make target Grant Likely
     [not found] ` < 1384896475-8744-1-git-send-email-jason@lakedaemon.net>
     [not found]   ` <528BDEED.8080708@ wwwdotorg.org>
     [not found]     ` <528BDEED.8080708-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-11-20 13:21       ` [PATCH V4] " Grant Likely
     [not found]         ` <20131120132159.88E01C4079D-WNowdnHR2B42iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2013-11-20 17:22           ` Jason Cooper
2013-11-20 17:08       ` Jason Cooper
     [not found]         ` <20131120170845.GJ28859-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2013-11-20 17:21           ` Stephen Warren
2013-11-21  7:48           ` Grant Likely
     [not found] ` < 1385062552-9882-1-git-send-email-jason@lakedaemon.net>
     [not found]   ` < 653B066B-5B24-4817-86EF-D4D9F129123D@codeaurora.org>
     [not found]     ` < CAOesGMjsYxhjpg7Gsw69-x5v5XgZ1NZifJ+z48sMizfdMW-tAg@mail.gmail.com>
     [not found]       ` <CAOesGMjsYxhjpg7Gsw69-x5v5XgZ1NZifJ+z48sMizfdMW-tAg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-22  7:42         ` [PATCH V5] " Grant Likely
     [not found]           ` <20131122074224.4984DC40753-WNowdnHR2B42iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2013-11-22 13:31             ` Jason Cooper
     [not found] ` < 1385942188-21831-1-git-send-email-jason@lakedaemon.net>
     [not found]   ` <20140110182923. GM19878@titan.lakedaemon.net>
     [not found]     ` <20140110182923.GM19878-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2014-02-04 12:40       ` [PATCH V6] " Grant Likely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131119192246.GP16735@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=devicetree@vger.kernel.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=jason@lakedaemon.net \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=olof@lixom.net \
    --cc=pawel.moll@arm.com \
    --cc=rob.herring@calxeda.com \
    --cc=swarren@wwwdotorg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).