summaryrefslogtreecommitdiffstats
path: root/usr.bin/dtc
Commit message (Collapse)AuthorAgeFilesLines
* MFC r306806, r313709, r317058, r317060gonzo2017-05-0913-925/+1625
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r306806 by emaste: Improvements to BSD-licensed DTC. - Numerous crash and bug fixes - Improved warning and error messages - Permit multiple labels on nodes and properties - Fix node@address references - Add support for /delete-node/ - Consume whitespace after a node - Read the next token before the second /memreserve/ - Fix parsing of whitespace - Clean up /delete-node/ and add support for /delete-property/ - Handle /delete-node/ specifying a unit address Obtained from: https://github.com/davidchisnall/dtc @df5ede4 r313709 by dim: Fix build of BSD dtc when NDEBUG is defined (MK_ASSERT_DEBUG=no): * Initialize correct parent in binary_operator's constructor. * Include <errno.h> explicitly, otherwise errno is undefined (without NDEBUG, this is accidentally 'fixed' by including <iostream>). Reported by: matteo r317058 by emaste: dtc: remove unused (since r306806) string.hh r317060 by emaste: dtc: update to upstream 227d6a3 - Report missing includes at the correct location. - Add initial support for the -@ option emitting a symbol table. - Add support for running tests with and without -@ - Add support for generating __fixups__ and __local_fixups__ - Attach the to-string transform to the node path.
* MFC r309191 (by rakuco):dim2016-12-301-1/+1
| | | | | | | | | | | | | | | | | | | fdt: Expect strchr() to return a const char* In C, strchr(3) returns a char*, whereas C++ defines two overloads: * const char *strchr(const char*, int) * char *strchr(char*, int) Building fdt.cc (with the WITHOUT_GPL_DTC knob set) with libc++ 3.9.0 (imported in r309124) was failing because libc++ r260377 added the first overload to string.h, leading to failures such as: fdt.cc:1638:8: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' Just define val as a const char* to fix it. Upstreamed in https://github.com/davidchisnall/dtc/pull/14
* Improvements to BSD-licensed DTC.theraven2015-12-298-136/+792
| | | | | | | - Added an expression parser so that expressions from headers are now working - Fixed missing null terminators on cross references - Disabled exceptions / RTTI in the build for smaller binaries - Changed phandle order generation to be identical to GPL'd dtc
* META MODE: Update dependencies with 'the-lot' and add missing directories.bdrewery2015-12-011-0/+21
| | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division
* Update some obsolete information in the HACKING document.theraven2015-10-261-13/+11
| | | | Reported by: bapt
* Ensure that dtc is built in C++11 mode.theraven2015-10-261-0/+2
| | | | Reported by: George Abdelmalik
* Lots of improvements to the BSD-licensed dtctheraven2015-10-259-352/+509
| | | | | | | | | | - Various fixes to includes (including recursive includes) - Lots of testing that the output exactly matches GPL'd dtc - Lots of bug fixes to merging - Fix incorrect mmap usage - Ad-hoc memory management replaced with C++11 unique_ptr and similar Patrick Wildt has successfully run many (all?) of the GPL dtc test suite.
* Fix a ton of speelling errorseadler2015-10-211-1/+1
| | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
* dtc: ignore lines starting with #.rpaulo2014-06-101-4/+5
| | | | | This is necessary because we use the C pre-processor to parse #include lines and cpp adds line markings that start with #.
* dtc: don't crash if the argument is a directory.rpaulo2014-06-101-0/+9
|
* The, currently undocumented, -i option takes an argument.rpaulo2014-06-101-1/+1
|
* Fix cut-and-paste error message.imp2014-03-151-1/+1
|
* Fix parsing multiple roots with whitespace between them.theraven2014-02-231-0/+1
| | | | Patch by: Patrick Wildt
* Some more cleanups and bug fixes in dtc for property printing / parsing.theraven2013-12-121-2/+7
| | | | Submitted by: Patrick Wildt
* Fix the version string in dts emission.theraven2013-12-121-1/+1
| | | | | Reported by: Patrick Wildt MFC after: 1 week
* When writing DTS to a file, don't write some of it to stderr.theraven2013-11-051-1/+1
| | | | Reported by: ray
* Remove EOL whitespace.joel2013-08-221-2/+2
|
* Add support for parameterised device tree sources to the device tree compiler.theraven2013-08-194-18/+145
| | | | | Reviewed by: brooks Sponsored by: DARPA, AFRL
* Make carets line up in dtc diagnostics if the line starts with a tab.theraven2013-08-141-1/+2
|
* Report error for out-of-range numerical inputs. Requested by brooks.theraven2013-07-101-0/+8
|
* Fix bug in destructor for checker manager in DTC that caused segfaults ontheraven2013-06-181-0/+1
| | | | exit.
* Add a checker to dtc, based on a feature request from rwatson / brooks.theraven2013-06-172-0/+58
| | | | | | | This checks that every node that has children specifies their register sizes. This is not enabled by default, as the default sizes are sometimes required (including by some DTS in the tree), but can help when writing new device trees so that you can check that you actually meant the defaults.
* dtc: fix bootstrapping from 8.2-STABLEuqs2013-02-191-0/+4
| | | | | MFC after: 1 week Approved by: theraven
* Fix style nit in dtc man page: sentences should start on new lines.theraven2013-01-251-58/+86
| | | | Reported By: joel
* Explicitly include headers that are implicitly included by libstdc++. Fixestheraven2013-01-236-4/+24
| | | | building dtc with libc++.
* Remove EOL whitespace.joel2013-01-221-11/+11
|
* Minor mdoc fixes.joel2013-01-221-4/+2
|
* Fix the missing sentence that ended in the middle in the man page for dtc (alsotheraven2013-01-221-1/+4
| | | | spotted by gavin).
* Fix logic error in explicitly specified dtb versions spotted by gavin.theraven2013-01-221-1/+1
|
* Import new (BSDL) device tree compiler. Now built by default, so that it can'ttheraven2013-01-2215-0/+5061
be used on the host system (and not installed on the device, if required). The GPL'd one is still available if there are any devices that need it (make universe passes with it, including kernels that use fdt, but there may be some out-of-tree ones). WITH_GPL_DTC can be used to select the old one, for now. Probably won't be MFC'd, but we'll remove the GPL'd version in head after the new one has had a lot more testing and ship it in 10.0.
OpenPOWER on IntegriCloud