aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/dtc/input_buffer.cc
Commit message (Collapse)AuthorAgeFilesLines
* dtc: Sync with upstream commit 23387ddJose Luis Duran2025-06-161-0/+53
| | | | | | | | | Add the ability to parse char literals needed to compile DTBs currently in base. Reviewed by: theraven, emaste Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D42438
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* usr.bin/dtc: Include <limits> for std::numeric_limits<>.John Baldwin2022-06-091-1/+1
| | | | | | | | This is needed when building natively as a cross-tool on hosts such as Linux using more recent versions of libstdc++. Co-authored-by: Alexander Richardson <arichardson@FreeBSD.org> Obtained from: CheriBSD
* dtc: Sync with upstream version e9a77451cdd8Jessica Clarke2022-02-281-1/+4
| | | | | | | | 1c231509cf88 ("Validate integers fit in cells") is the only change missing from our copy. Reviewed by: manu, imp Differential Revision: https://reviews.freebsd.org/D34368
* dtc(1): Update to 1a79f5f26631Kyle Evans2019-03-281-1/+1
| | | | | | | | | | | | | | | | Highlights: - Bugfix for order in which /delete-node/ and /delete-property/ are processed [0] - /omit-if-no-ref/ support has been added (used only by U-Boot at this point, in theory) - GPL dtc compat version bumped to 1.4.7 - Various small fixes and compatibility improvements Reported by: strejda [0] MFC after: 1 week Notes: svn path=/head/; revision=345628
* dtc(1): Update to upstream ea3c233Kyle Evans2018-01-191-2/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | Highlights of this update: - /__local_fixups__ is now generated to be GPL dtc and libfdt compliant - Compiling with -@ will now cause dtc to assign phandles to all labelled nodes - /include/ and /incbin/ now handle absolute paths correctly - The manpage now has information about overlays, including how to apply them and how to generate them - Syntactic sugar for overlays is now supported, allowing an overlay DTS like: = /dts-v1/; /plugin/; &foo { foo,status = "okay"; }; = to generate a fragment targetting <&foo>. Notes: svn path=/head/; revision=328173
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* dtc: Update to upstream 917526Emmanuel Vadot2017-06-201-1/+1
| | | | | | | - Add missing "typename" in divmod's "using" of binary_operator_base::result. Notes: svn path=/head/; revision=320160
* dtc: update to upstream 227d6a3Ed Maste2017-04-171-3/+4
| | | | | | | | | | | - 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. Notes: svn path=/head/; revision=317060
* Fix build of BSD dtc when NDEBUG is defined (MK_ASSERT_DEBUG=no):Dimitry Andric2017-02-131-1/+3
| | | | | | | | | | | | * 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 MFC after: 3 days Notes: svn path=/head/; revision=313709
* Improvements to BSD-licensed DTC.Ed Maste2016-10-071-117/+507
| | | | | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=306806
* Improvements to BSD-licensed DTC.David Chisnall2015-12-291-1/+563
| | | | | | | | | | - 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 Notes: svn path=/head/; revision=292876
* Lots of improvements to the BSD-licensed dtcDavid Chisnall2015-10-251-8/+8
| | | | | | | | | | | | | - 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. Notes: svn path=/head/; revision=289935
* dtc: ignore lines starting with #.Rui Paulo2014-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 #. Notes: svn path=/head/; revision=267318
* Make carets line up in dtc diagnostics if the line starts with a tab.David Chisnall2013-08-141-1/+2
| | | | Notes: svn path=/head/; revision=254327
* dtc: fix bootstrapping from 8.2-STABLEUlrich Spörlein2013-02-191-0/+4
| | | | | | | | MFC after: 1 week Approved by: theraven Notes: svn path=/head/; revision=247006
* Explicitly include headers that are implicitly included by libstdc++. FixesDavid Chisnall2013-01-231-1/+6
| | | | | | | building dtc with libc++. Notes: svn path=/head/; revision=245839
* Import new (BSDL) device tree compiler. Now built by default, so that it can'tDavid Chisnall2013-01-221-0/+258
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. Notes: svn path=/head/; revision=245803