U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/11] Remove patman from the U-Boot tree
@ 2026-07-05 19:32 Simon Glass
  2026-07-05 19:32 ` [PATCH v2 01/11] doc: Move the b4 guide into sending_patches Simon Glass
                   ` (11 more replies)
  0 siblings, 12 replies; 20+ messages in thread
From: Simon Glass @ 2026-07-05 19:32 UTC (permalink / raw)
  To: u-boot
  Cc: Simon Glass, Alper Nebi Yasak, E Shattow, Greg Malysa,
	Heinrich Schuchardt, Ilias Apalodimas, Javier Tia, Ludwig Nussel,
	Marek Vasut, Mattijs Korpershoek, Michal Simek, Neil Armstrong,
	Peter Robinson, Quentin Schulz, Raymond Mao, Sughosh Ganu,
	Tom Rini, Tony Dinh, Wolfgang Wallner

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


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2026-07-06 16:40 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-05 19:32 [PATCH v2 00/11] Remove patman from the U-Boot tree Simon Glass
2026-07-05 19:32 ` [PATCH v2 01/11] doc: Move the b4 guide into sending_patches Simon Glass
2026-07-05 20:26   ` Tom Rini
2026-07-06 11:59   ` Mattijs Korpershoek
2026-07-05 19:32 ` [PATCH v2 02/11] doc: Remove the patman documentation Simon Glass
2026-07-05 20:26   ` Tom Rini
2026-07-06 12:00   ` Mattijs Korpershoek
2026-07-05 19:32 ` [PATCH v2 03/11] patman: Add a .patman-defaults file for U-Boot Simon Glass
2026-07-05 20:26   ` Tom Rini
2026-07-05 19:32 ` [PATCH v2 04/11] patman: Replace the tool with a stub for patch-manager Simon Glass
2026-07-05 19:32 ` [PATCH v2 05/11] patman: Remove the test suite Simon Glass
2026-07-05 19:32 ` [PATCH v2 06/11] patman: Remove the patch-management code Simon Glass
2026-07-05 19:32 ` [PATCH v2 07/11] CI: Install pylibfdt's requirements in the tool jobs Simon Glass
2026-07-05 20:26   ` Tom Rini
2026-07-05 19:32 ` [PATCH v2 08/11] CI: Stop building and testing patman Simon Glass
2026-07-05 20:27   ` Tom Rini
2026-07-05 19:32 ` [PATCH v2 09/11] tools: docker: Drop patman from the CI image Simon Glass
2026-07-05 19:32 ` [PATCH v2 10/11] tools: Stop packaging patman as a pip module Simon Glass
2026-07-05 19:32 ` [PATCH v2 11/11] test: Stop running the patman tests Simon Glass
2026-07-06 16:40 ` [PATCH v2 00/11] Remove patman from the U-Boot tree Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox