tools: Support building U-Boot host tools for Windows via MSYS2
Get series with b4
b4 am 20191028135550.GK11173@bill-the-catVersions newest first
- v3 Latest9 patches 0 repliesNew
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | tools: image.h: Use portable uint32_t instead of linux-specific __be32 | +0 | 0 replies | |
| 2/9 | tools: mtk_image.h: Use portable uintXX_t instead of linux-specific __leXX | +0 | 0 replies | |
| 3/9 | tools: zynqmpbif: Use compiler builtin instead of linux-specific __swab32 | +0 | 0 replies | |
| 4/9 | linux/types.h: Surround 'struct ustat' with __linux__ | +0 | 0 replies | |
| 5/9 | tools: ifwitool: Define __packed when it is not defined | +0 | 0 replies | |
| 6/9 | doc: Add documentation for how to build U-Boot host tools | +0 | 0 replies | |
| 7/9 | Add .gitattributes for line endings | +0 | 0 replies | |
| 8/9 | tools: Avoid creating symbolic links for tools/version.h | +0 | 0 replies | |
| 9/9 | Add Microsoft Azure Pipelines configuration | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [U-Boot] [PATCH v3 0/9] tools: Support building U-Boot host tools for Windows via MSYS2
Quoted 33 lines · Bin Meng
Hi Tom,
Quoted 30 lines · Bin Meng
Per current U-Boot README, building Windows versions of the utilities in the tools directory is done via the MinGW toolchain. But testing shows that it is broken and actually it must have been broken for quite a long time.
Fixing MinGW build seems quite amount of work as developers of U-Boot normally work on Linux boxes hence codes written are mainly for Linux or POSIX OSes. We must investigate another way of building host tools for Windows, and now we have MSYS2, a software distro and building platform for Windows, to build POSIX compliant software on Windows using an emulation layer.
This small series fixes several issues in current U-Boot tools codes, that only assume a Linux host is used. Cases are using standard C typedefs whenever possbile, or using compiler builtin functions to improve portability, etc.
A reST document for how to build U-Boot host tools for both platforms is added.
A new CI pipeline configuration for Microsoft Azure Pipelines is added for U-Boot. We rely on it to ensure future host tools for Windows build does not break.
I've also investigated putting what we have for now on GitLab-CI and Travis-CI to Azure Pipelines, and it turns out there are several issues that should be fixed. I will post a follow-up patch series for enabling full CI testing on Azure Pipelines.
Quoted 6 lines
Quoted 4 lines
Changes in v3:
- new patch: tools: ifwitool: Define__packedwhen it is not defined
- rename to .azure-pipelines.yml
- correct typo in the commit summaryIf there is no issue, could we get this series applied in v2020.01-rc1?
Yes, I would like to, and I think I've gotten far enough along with my account setup that I should be able to test this as well.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20191028/92328c07/attachment.sig>