Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 50/52] package/dtc: new package
Date: Tue, 11 Dec 2012 14:07:30 +0100	[thread overview]
Message-ID: <201212111407.30429.yann.morin.1998@free.fr> (raw)
In-Reply-To: <CAAXf6LW9EHjFzE9fkhHtdizS36p7cthfmbeVr6F3_EjSWCO1Tg@mail.gmail.com>

Thomas, All,

On Tuesday 11 December 2012 13:38:03 Thomas De Schampheleire wrote:
> On Tue, Dec 11, 2012 at 12:45 AM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> > dtc is the Device Tree Compiler, and manipulates device trees.
> >
> > Cc: Arnout Vandecappelle <arnout@mind.be>
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

> Are you aware of the following code in linux/linux.mk ?
> 
> define LINUX_INSTALL_HOST_TOOLS
> # Installing dtc (device tree compiler) as host tool, if selected
> if grep -q "CONFIG_DTC=y" $(@D)/.config; then \
> $(INSTALL) -D -m 0755 $(@D)/scripts/dtc/dtc $(HOST_DIR)/usr/bin/dtc ; \
> fi
> endef

I was vaguely aware of it, yes, although I did not look at it, for a
few reasons:

  - the DTC in the kernel is not at par with the DTC in the package
    (they diverge a bit, and the DTC in the kernel was recently
    resynce, cset #cd29672).

  - for QEMU, I really needed the libfdt library, not the tools; but
    the dtc in the Linux kernel does not build the libfdt library.

  - as Arnout suggested adding the tools on the target too, I deemed
    preferable to use the tools coming with the library rather than
    risk ABI incompatibility between the ones from dtc and the .ones
    from the kernel

  - the one from the kernel is a host tool, used to build the kernel
    itself, while the ones from dtc are target tools, that are supposed
    to be used to build DTCs for use by QEMU. Thus they serve two
    different purposes, and there is no strong requirement that they
    be compatible.

It's also a reason why I did not add $(eval $(host-generic-package))
in the dtc package.

And a fifth reason (the most important one, to me!):
  - I have had a patch accepted in dtc! ;-)

> In this case, the dtc shipped with the linux kernel is simply used.
> This was considered to be sufficient for most cases.

Probably, yes.

> If this is not true and there really is a need for the separate dtc
> package, I think we should link both together in some way, either by a
> comment, or by a mutually exclusive configuration, or ...

OK for a comment for now.

What could probbably be done, later, is to make the dtc package a host
package too, and have the Linux kernel depends on, and use it, instead
of its internal copy (that can be lagging behind).

Does that sound reasonable to you?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< O_o >==-- '------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
'------------------------------'-------'------------------'--------------------'

  reply	other threads:[~2012-12-11 13:07 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-10 23:44 [Buildroot] [pull request] Pull request for branch yem-qemu v5 Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 01/52] package/qemu: add license information Yann E. MORIN
2012-12-12  9:00   ` Peter Korsgaard
2012-12-10 23:44 ` [Buildroot] [PATCH 02/52] package/qemu: fix host-qemu variable names Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 03/52] package/qemu: fix host dependencies Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 04/52] package/qemu: use autotools-package infrastructure Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 05/52] package/qemu: bump version Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 06/52] package/vde2: new package Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 07/52] package/libiscsi: " Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 08/52] package/usbredir: " Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 09/52] package/celt051: " Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 10/52] package/python-pyparsing: " Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 11/52] package/spice-protocol: " Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 12/52] package/cegui06: " Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 13/52] package/slirp: " Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 14/52] package/spice: " Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 15/52] package/spice: enable client Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 16/52] package/spice: enable GUI Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 17/52] package/spice: enable slirp support Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 18/52] package/libseccomp: new package Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 19/52] package/keyutils: " Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 20/52] package/pmake: add host pmake Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 21/52] package/libbsd: new package Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 22/52] package/libedit2: " Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 23/52] package/ceph: " Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 24/52] package/qemu: build for the target (i386 or x86_64 only) Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 25/52] package/qemu: add basic target selection Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 26/52] package/qemu: add fine-grained " Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 27/52] package/qemu: add SDL frontends Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 28/52] package/qemu: add option to enable/disable the VNC frontend Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 29/52] package/qemu: add VNC jpeg and png compression Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 30/52] package/qemu: add VNC TLS-encryption Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 31/52] package/qemu: add option to not install blobs Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 32/52] package/qemu: add option to remove unwanted keymaps Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 33/52] package/qemu: add uuid support Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 34/52] package/qemu: add support for capabilities Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 35/52] package/qemu: add attr/xattr option Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 36/52] package/qemu: add support for virtfs Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 37/52] package/qemu: add support for cURL Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 38/52] package/qemu: enable use of the curses frontend Yann E. MORIN
2012-12-10 23:44 ` [Buildroot] [PATCH 39/52] package/qemu: add BlueZ connectivity Yann E. MORIN
2012-12-10 23:45 ` [Buildroot] [PATCH 40/52] package/qemu: add AIO support Yann E. MORIN
2012-12-10 23:45 ` [Buildroot] [PATCH 41/52] package/qemu: add support for VDE switches Yann E. MORIN
2012-12-10 23:45 ` [Buildroot] [PATCH 42/52] package/qemu: add iSCSI support Yann E. MORIN
2012-12-10 23:45 ` [Buildroot] [PATCH 43/52] package/qemu: add support for USB redirection Yann E. MORIN
2012-12-10 23:45 ` [Buildroot] [PATCH 44/52] package/qemu: add support for Spice Yann E. MORIN
2012-12-10 23:45 ` [Buildroot] [PATCH 45/52] package/qemu: enable sound Yann E. MORIN
2012-12-10 23:45 ` [Buildroot] [PATCH 46/52] package/qemu: add support for libseccomp Yann E. MORIN
2012-12-10 23:45 ` [Buildroot] [PATCH 47/52] package/qemu: option to build the docs Yann E. MORIN
2012-12-10 23:45 ` [Buildroot] [PATCH 48/52] package/qemu: move sub-options into a sub-menu Yann E. MORIN
2012-12-10 23:45 ` [Buildroot] [PATCH 49/52] package/qemu: enable a static build Yann E. MORIN
2012-12-10 23:45 ` [Buildroot] [PATCH 50/52] package/dtc: new package Yann E. MORIN
2012-12-11 12:38   ` Thomas De Schampheleire
2012-12-11 13:07     ` Yann E. MORIN [this message]
2012-12-10 23:45 ` [Buildroot] [PATCH 51/52] package/dtc: add option to install programs Yann E. MORIN
2012-12-10 23:45 ` [Buildroot] [PATCH 52/52] package/qemu: add support for FDT Yann E. MORIN

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=201212111407.30429.yann.morin.1998@free.fr \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /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