# SPDX-License-Identifier: GPL-2.0-only

Utilities to work with device trees in Linux userspace

The following tools are available:

* barebox-state: access barebox' state storage
* fdtdump: dump a device tree binary to stdout
* dtblint: lint a compiled device tree

For questions, feedback, patches, please send a mail to

  <oss-tools@pengutronix.de>

Note: you must be subscribed to post to this mailing list. You can do so by
sending an empty mail to <oss-tools-subscribe@pengutronix.de>.

Building from Sources
---------------------

Check out the latest state from Git:

    git clone https://git.pengutronix.de/git/tools/dt-utils
    cd dt-utils

And then build using autotools:

    ./autogen.sh
    ./configure
    make

There's also experimental support for building with meson.
The intention is to deprecate autotools eventually in its favor. To build:

    meson setup build
    meson compile -C build
    meson test -C build  # optional

Contributing
------------

The Git web view for this software can be found at:

  <https://git.pengutronix.de/cgit/tools/dt-utils>

Any patches should be sent to the mailing list above. Please prefix your
subject with "[PATCH dt-utils]". This can be configured in Git with:

    git config format.subjectPrefix "PATCH dt-utils"

Mails sent to this mailing list are also archived at

  <https://lore.pengutronix.de/oss-tools/>

This project uses the Developer's Certificate of Origin, as stated in the file
DCO bundled with this software, using the same process as for the Linux kernel:

  <https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin>

By adding a Signed-off-by line (e.g. using `git commit -s`) saying

  Signed-off-by: Random J Developer <random@developer.example.org>

(using your known identity), you state that your contributions are in line with
the DCO.

License
-------

Copyright (C) 2021 Pengutronix and contributors

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License, version 2 as published by the Free
Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License (the file COPYING
bundled with this software) for more details.

The dt-utils project conforms to the REUSE specification. You can use the
'reuse' tool to get a Software Bill of Materials in SPDX format. For more
information, see <https://reuse.software/>.
