
Right now the 'binman test' command fails spectacularly on arm64 since it cannot even setup the test environments properly due to errors during setUpClass(). I can get a 100% coverage result with all tests passing if I cross-compile things to x86 and run the cross-compiling versions of some tools. This series tries to implement that solution in a general way.
I think the thoroughly proper thing would be to make the tests and their files portable. I don't really know how. Another alternative is to split the test environments into multiple parts and skip the parts that can't be prepared for an architecture, but that affects the test coverage results. In any case, this series doesn't really prevent these other solutions from being implemented on top of it.
Changes in v2: - Fix detecting architecture (HOST_ARCH should've been HOSTARCH) - Remove Makefile variables for unused tools - Fix typo in an "e.g." (had used commas instead of dots) - Add a table of target-specific versions in the docstring - Add a table of host-specific versions in the docstring - Add patch to document CROSS_COMPILE, CC, HOSTCC etc. in README - Collect tags
v1: https://patchwork.ozlabs.org/project/uboot/list/?series=199707
Alper Nebi Yasak (4): binman: Support cross-compiling test files to x86 binman: Use target-specific tools when cross-compiling binman: Allow resolving host-specific tools from env vars binman: Document how CROSS_COMPILE, CC, HOSTCC etc. are used in README
tools/binman/README | 24 +++++++ tools/binman/elf.py | 6 +- tools/binman/elf_test.py | 4 +- tools/binman/test/Makefile | 15 ++++- tools/dtoc/fdt_util.py | 9 +-- tools/patman/tools.py | 125 +++++++++++++++++++++++++++++++++++++ 6 files changed, 175 insertions(+), 8 deletions(-)