Skip to content

RFC Change newlib configuration to require libgloss

Mark Hatle openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1newlib: Move syscalls from newlib to libglossmeta/recipes-core/newlib/newlib.inc+1 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/1] Change newlib configuration to require libgloss

This is an RFC, because I only know of my particular use-case. So I'm not sure how generic of a change this really is.

In my own use-case, we want to build a generic newlib and then customize our equivalent to libgloss when linking baremetal applications.

I found that if we don't pass --disable-newlib-supplied-syscalls, even if libgloss was linked in, the syscalls -always- came from newlib (on 32-bit arm) and would not permit my implementations to override the built-in newlib versions.

By setting the disable in BOTH newlib an libgloss, newlib syscalls are disabled, while libgloss syscalls are enabled. This results in a newlib that will now require to be linked against a 'BSP' implementation, such as libgloss, in order to build baremetal applications.

Alternatively to this I'd suggest we add pkgconfigs (or even distro flags) to be able to change this behavior as well as flip some other newlib switches if desired.

Mark Hatle (1):
newlib: Move syscalls from newlib to libgloss

 meta/recipes-core/newlib/newlib.inc | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
2.17.1