All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Chou <thomas@wytron.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/7] arm: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE
Date: Tue, 29 Dec 2015 08:55:45 +0800	[thread overview]
Message-ID: <5681DA11.9030908@wytron.com.tw> (raw)
In-Reply-To: <CAPnjgZ2R2WJVN4=Yh5e6BHJbTw=xXG1dM9rsiU6w5tmLjghreA@mail.gmail.com>

Hi Simon,

On 2015?12?29? 08:22, Simon Glass wrote:
> Hi Thomas,
>
> On 27 December 2015 at 19:16, Bin Meng <bmeng.cn@gmail.com> wrote:
>> On Sun, Dec 27, 2015 at 9:44 PM, Thomas Chou <thomas@wytron.com.tw> wrote:
>>> Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that
>>> there is no need to list all the dtb for different targets/boards.
>>>
>>> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
>>> Cc: Albert Aribaud <albert.u.boot@aribaud.net>
>>> ---
>>>   arch/arm/dts/Makefile | 192 +-------------------------------------------------
>>>   1 file changed, 1 insertion(+), 191 deletions(-)
>>>
>>
>> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
>
> The problem with these patches is that it prevents building all the
> compatible device tree files for a board family. The default device
> tree is just that - it is not the only one that can be used. A build
> system can taken one of the output device tree files and package it
> with U-Boot. If we don't build then, then that becomes impossible.
>
> What is the purpose of these patches?
>
> A better solution might be to add an option to list the files which
> should be built. Then we gain control over this, if that is what you
> are trying to achieve.

The device tree describes hardware. Each board is a hardware, and should 
have only one device tree. The u-boot is a boot loader, which might have 
different options to load the next stage, eg. Linux. As I see in the 
configs/ dir, there can be several defconfig for a board and uses the 
same device tree. With device tree controlled u-boot, the output is 
u-boot-dtb.bin for each configuration.

The next stage, say, Linux, gets device tree from u-boot. A single 
kernel can work on many different boards bond with possibly different 
device tree blob and booting configuration.

We can use buildman to build a family of target binary including device 
tree blob. So I don't see the reason to keep the list of device tree per 
target.

Best regards,
Thomas

  reply	other threads:[~2015-12-29  0:55 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-27 13:44 [U-Boot] [PATCH 1/7] devicetree: use wildcard to clean arch subdir Thomas Chou
2015-12-27 13:44 ` [U-Boot] [PATCH 2/7] arc: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE Thomas Chou
2015-12-28  2:16   ` Bin Meng
2016-01-11 11:06     ` Alexey Brodkin
2015-12-27 13:44 ` [U-Boot] [PATCH 3/7] arm: " Thomas Chou
2015-12-28  2:16   ` Bin Meng
2015-12-29  0:22     ` Simon Glass
2015-12-29  0:55       ` Thomas Chou [this message]
2016-01-05  0:56         ` Simon Glass
2016-01-05 13:16           ` Thomas Chou
2016-01-06  0:24             ` Simon Glass
2016-01-06  1:57               ` Thomas Chou
2016-01-06  2:22                 ` Masahiro Yamada
2016-01-06  2:38                   ` Thomas Chou
2015-12-27 13:44 ` [U-Boot] [PATCH 4/7] microblaze: " Thomas Chou
2015-12-28  2:16   ` Bin Meng
2016-01-04  9:15     ` Michal Simek
2015-12-27 13:44 ` [U-Boot] [PATCH 5/7] powerpc: " Thomas Chou
2015-12-28  2:16   ` Bin Meng
2015-12-27 13:44 ` [U-Boot] [PATCH 6/7] sandbox: " Thomas Chou
2015-12-28  2:16   ` Bin Meng
2015-12-27 13:44 ` [U-Boot] [PATCH 7/7] x86: " Thomas Chou
2015-12-28  2:16   ` Bin Meng
2015-12-28  2:16 ` [U-Boot] [PATCH 1/7] devicetree: use wildcard to clean arch subdir Bin Meng
2016-01-06  1:49 ` [U-Boot] [PATCH v2 1/9] " Thomas Chou
2016-01-06  1:49   ` [U-Boot] [PATCH v2 2/9] devicetree: support list of Device Tree in DEFAULT_DEVICE_TREE Thomas Chou
2016-01-08  3:34     ` Simon Glass
2016-01-06  1:49   ` [U-Boot] [PATCH v2 3/9] nios2: " Thomas Chou
2016-01-06  1:49   ` [U-Boot] [PATCH v2 4/9] arc: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE Thomas Chou
2016-01-06  1:49   ` [U-Boot] [PATCH v2 5/9] arm: " Thomas Chou
2016-01-06  1:49   ` [U-Boot] [PATCH v2 6/9] microblaze: " Thomas Chou
2016-01-06  7:46     ` Michal Simek
2016-01-06  1:49   ` [U-Boot] [PATCH v2 7/9] powerpc: " Thomas Chou
2016-01-06  1:49   ` [U-Boot] [PATCH v2 8/9] sandbox: " Thomas Chou
2016-01-06  1:49   ` [U-Boot] [PATCH v2 9/9] x86: " Thomas Chou
2016-01-13 20:10   ` [U-Boot] [PATCH v2 1/9] devicetree: use wildcard to clean arch subdir Simon Glass

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=5681DA11.9030908@wytron.com.tw \
    --to=thomas@wytron.com.tw \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.