aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-26 14:21:32 +0900
committerOphestra <cat@gensokyo.uk>2026-02-26 14:21:32 +0900
commit826347fe1f6131fbbd42b253441790a7c740bc86 (patch)
treea7b7c888482d8da93d1389d1b05e64891b7843a9
parent085eaed7bae88a04c1dd45dfd4dcde8cfe3caf53 (diff)
internal/rosa: expose standalone musl
This is useful in the system image and might also be used elsewhere. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/rosa/all.go3
-rw-r--r--internal/rosa/musl.go5
2 files changed, 8 insertions, 0 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go
index 0c80c706..2634a5dc 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 e06f777e..4ac5a4e5 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)
+ }
+}