[PATCH v2 00/11] Remove patman from the U-Boot tree

Simon Glass sjg at chromium.org
Sun Jul 5 21:32:11 CEST 2026


patman is now maintained as a standalone 'patch-manager' package, so
remove it from the tree. The command becomes a stub that tells people to
run 'pip install patch-manager'.

buildman still imports the shared modules commit and patchstream (along
with their dependencies), so this series leaves those in place. It drops
the tool's code, tests, CI hooks and packaging, and removes the in-tree
documentation, moving the b4 contributor guide alongside the patman note
in the patch-sending docs. It also adds a .patman-defaults file so the external
tool is set up for U-Boot, next to the existing .b4-config. Where the CI
jobs relied on patman's requirements for the setuptools that pylibfdt
needs, they now install scripts/dtc/pylibfdt/requirements.txt instead.

More could be done here: commit and patchstream (and their dependencies
series, get_maintainer and settings) only remain because buildman still
imports them. A follow-up could move those into u_boot_pylib (or
buildman itself) and drop the rest, leaving tools/patman as just the
stub.

Note: I was unable to run this through CI as it is not working at
present. I will check it in a few days.

Changes in v2:
- New patch: move the b4 guide into sending_patches.rst
- Remove the patman manual outright instead of leaving a stub
- Add a couple of lines on how patman works to the sending guide
- Point the SPI howto at the sending guide instead of the patman package
- New patch: add a .patman-defaults file for the external patman tool
- New patch, split from 'CI: Stop building and testing patman', to add
  scripts/dtc/pylibfdt/requirements.txt for setuptools
- Drop the 'u_boot_pylib: Require setuptools' patch
- Put the documentation and .patman-defaults patches at the front of the series

Simon Glass (11):
  doc: Move the b4 guide into sending_patches
  doc: Remove the patman documentation
  patman: Add a .patman-defaults file for U-Boot
  patman: Replace the tool with a stub for patch-manager
  patman: Remove the test suite
  patman: Remove the patch-management code
  CI: Install pylibfdt's requirements in the tool jobs
  CI: Stop building and testing patman
  tools: docker: Drop patman from the CI image
  tools: Stop packaging patman as a pip module
  test: Stop running the patman tests

 .azure-pipelines.yml                          |    9 +-
 .gitlab-ci.yml                                |   13 +-
 .patman-defaults                              |   32 +
 Makefile                                      |    1 -
 doc/develop/codingstyle.rst                   |   48 -
 doc/develop/driver-model/spi-howto.rst        |    4 +-
 doc/develop/index.rst                         |    1 -
 doc/develop/patman.rst                        |    1 -
 doc/develop/sending_patches.rst               |   63 +-
 doc/develop/testing.rst                       |    2 +-
 scripts/make_pip.sh                           |   10 +-
 test/run                                      |    1 -
 tools/binman/pyproject.toml                   |    2 +-
 tools/docker/Dockerfile                       |    2 -
 tools/patman/README.rst                       |    1 -
 tools/patman/__init__.py                      |    5 +-
 tools/patman/__main__.py                      |   68 +-
 tools/patman/checkpatch.py                    |  287 --
 tools/patman/cmdline.py                       |  516 ---
 tools/patman/control.py                       |  333 --
 tools/patman/cser_helper.py                   | 1524 -------
 tools/patman/cseries.py                       | 1165 ------
 tools/patman/database.py                      |  823 ----
 tools/patman/func_test.py                     | 1342 ------
 tools/patman/patchwork.py                     |  852 ----
 tools/patman/patman.rst                       | 1023 -----
 tools/patman/project.py                       |   27 -
 tools/patman/pyproject.toml                   |   29 -
 tools/patman/pytest.ini                       |    2 -
 tools/patman/requirements.txt                 |    6 -
 tools/patman/send.py                          |  197 -
 tools/patman/setup.py                         |   11 -
 tools/patman/status.py                        |  405 --
 tools/patman/test/0000-cover-letter.patch     |   23 -
 .../0001-pci-Correct-cast-for-sandbox.patch   |   51 -
 ...-for-sandbox-in-fdtdec_setup_mem_siz.patch |   85 -
 tools/patman/test/test01.txt                  |   72 -
 tools/patman/test_checkpatch.py               |  526 ---
 tools/patman/test_common.py                   |  254 --
 tools/patman/test_cseries.py                  | 3684 -----------------
 tools/patman/test_settings.py                 |   67 -
 41 files changed, 134 insertions(+), 13433 deletions(-)
 create mode 100644 .patman-defaults
 delete mode 120000 doc/develop/patman.rst
 delete mode 120000 tools/patman/README.rst
 delete mode 100644 tools/patman/checkpatch.py
 delete mode 100644 tools/patman/cmdline.py
 delete mode 100644 tools/patman/control.py
 delete mode 100644 tools/patman/cser_helper.py
 delete mode 100644 tools/patman/cseries.py
 delete mode 100644 tools/patman/database.py
 delete mode 100644 tools/patman/func_test.py
 delete mode 100644 tools/patman/patchwork.py
 delete mode 100644 tools/patman/patman.rst
 delete mode 100644 tools/patman/project.py
 delete mode 100644 tools/patman/pyproject.toml
 delete mode 100644 tools/patman/pytest.ini
 delete mode 100644 tools/patman/requirements.txt
 delete mode 100644 tools/patman/send.py
 delete mode 100644 tools/patman/setup.py
 delete mode 100644 tools/patman/status.py
 delete mode 100644 tools/patman/test/0000-cover-letter.patch
 delete mode 100644 tools/patman/test/0001-pci-Correct-cast-for-sandbox.patch
 delete mode 100644 tools/patman/test/0002-fdt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch
 delete mode 100644 tools/patman/test/test01.txt
 delete mode 100644 tools/patman/test_checkpatch.py
 delete mode 100644 tools/patman/test_common.py
 delete mode 100644 tools/patman/test_cseries.py
 delete mode 100644 tools/patman/test_settings.py

---
base-commit: 2569e25ddd5aa323cd87c7a3819c3a4f4b32302f
branch: patm2

-- 
2.43.0



More information about the U-Boot mailing list