Skip to contentSkip to conversation

buildman - U-Boot multi-threaded builder and summary tool

PATCH Superseded Simon Glass 1 participant 1 message Feb 25, 2013

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 8/8 buildman - U-Boot multi-threaded builder and summary tool

This tool handles building U-Boot to check that you have not broken it with your patch series. It can build each individual commit and report which boards fail on which commits, and which errors come up. It also shows differences in image sizes due to particular commits.

Buildman aims to make full use of multi-processor machines.

Documentation and caveats are in tools/buildman/README.

---
Changes in v4:
- Remove + and - symbols within the list of boards (easier copy/paste)
- Add --step option to process only every nth commit
- Retry failing builds with a re-config step
- Move image size code into its own function
- Show number of boards summarised in image size information
- Add -d option to show image size detail for each board
- Bring in bloat-o-meter function as -B to show changes in function code sizes
- Separate out rodata from the text section
- Update README to describe new features
- Minor update to test so that it still passes

Changes in v3:
- Fix typos in README and clarify use of the -n flag
- Only checkout source when we are actually going to build
- Don't write build results when the build is interrupted
- Minor updates to README re these improvements

Changes in v2:
- Split out patman updates correctly into 7 separate patches
- Add support for collecting and summarising image size information
- Expand README with more information, including -S option
- Remove a few TODOs from the README, which are now done
- Add some missing class and method comments
- Fixed various typos in comments
- Make builder reconfigure if previous builds were already done
- Add code comments in some places in the builder to clarify operation
- Fix up unit tests to run properly
- Produce a sensible error when no branch is given
- Avoid any git operations on the current repo (was checking out HEAD)
- Collect toolchain information without updating default environment

 tools/buildman/.gitignore   |    1 +
 tools/buildman/README       |  679 ++++++++++++++++++++
 tools/buildman/board.py     |  167 +++++
 tools/buildman/bsettings.py |   60 ++
 tools/buildman/builder.py   | 1432 +++++++++++++++++++++++++++++++++++++++++++
 tools/buildman/buildman     |    1 +
 tools/buildman/buildman.py  |  126 ++++
 tools/buildman/control.py   |  181 ++++++
 tools/buildman/test.py      |  185 ++++++
 tools/buildman/toolchain.py |  185 ++++++
 10 files changed, 3017 insertions(+)
 create mode 100644 tools/buildman/.gitignore
 create mode 100644 tools/buildman/README
 create mode 100644 tools/buildman/board.py
 create mode 100644 tools/buildman/bsettings.py
 create mode 100644 tools/buildman/builder.py
 create mode 120000 tools/buildman/buildman
 create mode 100755 tools/buildman/buildman.py
 create mode 100644 tools/buildman/control.py
 create mode 100644 tools/buildman/test.py
 create mode 100644 tools/buildman/toolchain.py
tools/buildman/.gitignore new file +1 -0
new file mode 100644
index 0000000..0d20b64
@@ -0,0 +1 @@
+*.pyc
tools/buildman/README new file +679 -0

679 lines not on this page · raw message

tools/buildman/board.py new file +167 -0

167 lines not on this page · raw message

tools/buildman/bsettings.py new file +60 -0

60 lines not on this page · raw message

tools/buildman/builder.py new file +1432 -0

1,432 lines not on this page · raw message

tools/buildman/buildman new file +1 -0
new file mode 120000
index 0000000..e4fba2d
@@ -0,0 +1 @@
+buildman.py
\ No newline at end of file
tools/buildman/buildman.py new file +126 -0

126 lines not on this page · raw message

tools/buildman/control.py new file +181 -0

181 lines not on this page · raw message

tools/buildman/test.py new file +185 -0

185 lines not on this page · raw message

tools/buildman/toolchain.py new file +185 -0

167 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.8.1.3

Part of the diff is not shown here. View the raw message.