From 826347fe1f6131fbbd42b253441790a7c740bc86 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 26 Feb 2026 14:21:32 +0900 Subject: [PATCH] internal/rosa: expose standalone musl This is useful in the system image and might also be used elsewhere. Signed-off-by: Ophestra --- internal/rosa/all.go | 3 +++ internal/rosa/musl.go | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 0c80c70..2634a5d 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -122,6 +122,9 @@ const ( buildcatrust utilMacros + // musl is a standalone libc that does not depend on the toolchain. + musl + // gcc is a hacked-to-pieces GCC toolchain meant for use in intermediate // stages only. This preset and its direct output must never be exposed. gcc diff --git a/internal/rosa/musl.go b/internal/rosa/musl.go index e06f777..4ac5a4e 100644 --- a/internal/rosa/musl.go +++ b/internal/rosa/musl.go @@ -46,3 +46,8 @@ rmdir -v /work/lib t.Load(Coreutils), )...) } +func init() { + artifactsF[musl] = func(t Toolchain) pkg.Artifact { + return t.newMusl(false, nil) + } +}