This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: integrating dtc into the sim/ tree
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Mike Frysinger <vapier at gentoo dot org>, "gdb at sourceware dot org" <gdb at sourceware dot org>, Anthony Green <green at moxielogic dot com>
- Date: Wed, 20 Aug 2014 11:37:50 -0500
- Subject: Re: integrating dtc into the sim/ tree
- Authentication-results: sourceware.org; auth=none
- References: <53F27ADC dot 4070609 at oarcorp dot com> <1732783 dot 0nBxt22mln at vapier> <20140820095347 dot GH4828 at adacore dot com> <1850909 dot FvmpfGFofc at vapier> <20140820160635 dot GK4828 at adacore dot com> <53F4C8A5 dot 1070503 at oarcorp dot com> <20140820161921 dot GL4828 at adacore dot com>
On 8/20/2014 11:19 AM, Joel Brobecker wrote:
>> I would have been happy if the generated files were in the tree and
>> only maintainer mode would result in the dependencies being checked.
>>
>> This has precedence for other tools.
> Is it just generated files? I was under the impression that you had
> to link against a library as well. If that wasn't the case, then it
> would certainly mitigate most of my concerns!
>
Inspecting the Makefile.in, I believe that is the case. This is all
there is:
moxie-gdb.dtb: moxie-gdb.dts
dtc -O dtb -o moxie-gdb.dtb ${srcdir}/moxie-gdb.dts
install-dtb: moxie-gdb.dtb
$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(dtbdir)
$(INSTALL_DATA) moxie-gdb.dtb $(DESTDIR)$(dtbdir)/moxie-gdb.dtb
No reference to libraries. I checked the generated moxie-gdb.dtb and it
shows this:
$ file moxie-gdb.dtb
moxie-gdb.dtb: Device Tree Blob version 17, size=519, boot CPU=0, string
block size=75, DT structure block size=388
I am nearly 100% sure this could be a maintainer only option.
FWIW we have been looking into using dtc with RTEMS. It is a nice
way to abstract away the particulars of a SoC and let the BSP/drivers
find their properties from a configuration file/blob during initialization.
But I don't know how this package is distributed.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985