Skip to content

macOS improvements

Josef Schlehofer u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tools: kwboot: Link with libncurses on macOStools/Makefile+5 -00 replies
2/3tools: kwboot: Define _is_within_tolerance() only with BOTHERtools/kwboot.c+2 -00 replies
3/3lib: crc8: Do not include asm/sections.h in host buildslib/crc8.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] macOS improvements

With HOST_TOOLS_ALL=y, the U-Boot host tools do not build on macOS. crc8.o does not compile and kwboot does not link. The kwboot link error also stops board builds such as turris_omnia.

Patch 1 links kwboot with the system libncurses, patch 2 removes an unused function warning in kwboot, and patch 3 keeps the sandbox asm/sections.h out of the host build of crc8.c.

Tested on macOS 27.0.1 with Apple clang 21: tools-only with HOST_TOOLS_ALL=y and the host tools of turris_omnia_defconfig now build, and kwboot boots a Turris Omnia over UART. On Linux (Debian trixie, GCC 14.2) the same tools-only build and a full turris_omnia build still pass, and kwboot still links against libtinfo.

Josef Schlehofer (3):
tools: kwboot: Link with libncurses on macOS
tools: kwboot: Define _is_within_tolerance() only with BOTHER
lib: crc8: Do not include asm/sections.h in host builds

 lib/crc8.c     | 4 +++-
 tools/Makefile | 5 +++++
 tools/kwboot.c | 2 ++
 3 files changed, 10 insertions(+), 1 deletion(-)
Signature · 1 line
2.54.0 (Apple Git-157)