Skip to content
Snippets Groups Projects
Commit 77b3ccb8 authored by Simon Glass's avatar Simon Glass
Browse files

dtoc: Add support for building a dtoc PyPi package


Create the necessary files to build this new package.

This is needed for binman.

Move the main program into a function so that it can easily be called by
the PyPi-created script.

Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
parent 1688d6ca
No related branches found
No related tags found
No related merge requests found
......@@ -2284,6 +2284,7 @@ _pip:
scripts/make_pip.sh u_boot_pylib ${PIP_ARGS}
scripts/make_pip.sh patman ${PIP_ARGS}
scripts/make_pip.sh buildman ${PIP_ARGS}
scripts/make_pip.sh dtoc ${PIP_ARGS}
help:
@echo 'Cleaning targets:'
......
.. SPDX-License-Identifier: GPL-2.0+
Devicetree-to-C generator
=========================
This is a Python program and associated utilities, which supports converting
devicetree files into C code. It generates header files containing struct
definitions, as well as C files containing the data. It does not require any
modification of the devicetree files.
Some high-level libraries are provided for working with devicetree. These may
be useful in other projects.
This package also includes some U-Boot-specific features, such as creating
`struct udevice` and `struct uclass` entries for devicetree nodes.
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "dtoc"
version = "0.0.2"
authors = [
{ name="Simon Glass", email="sjg@chromium.org" },
]
dependencies = ["pylibfdt", "u_boot_pylib"]
description = "Devicetree-to-C generator"
readme = "README.rst"
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: OS Independent",
]
[project.urls]
"Homepage" = "https://u-boot.readthedocs.io/en/latest/develop/driver-model/of-plat.html"
"Bug Tracker" = "https://source.denx.de/groups/u-boot/-/issues"
[project.scripts]
dtoc = "dtoc.main:run_dtoc"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment