diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-30 00:24:14 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-30 00:24:14 +0900 |
| commit | 616ed29edf92fb2d60962058a3e2c545d3b652ea (patch) | |
| tree | 5dcb7ec94e95950d80c94c17443004c3c1b0a458 /internal/rosa/rosa.go | |
| parent | 9d9b7294a4a9e93301bfbbf327e9beb99cfa685b (diff) | |
internal/rosa: early toybox variant
This is a variant of toybox with unfinished tools enabled, for artifacts that will end up in a dependency loop without them.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/rosa.go')
| -rw-r--r-- | internal/rosa/rosa.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go index eb96947e..b5e883c2 100644 --- a/internal/rosa/rosa.go +++ b/internal/rosa/rosa.go @@ -178,6 +178,8 @@ var absCureScript = fhs.AbsUsrBin.Append(".cure-script") const ( // TExclusive denotes an exclusive [pkg.Artifact]. TExclusive = 1 << iota + // TEarly hints for an early variant of [Toybox] to be used when available. + TEarly ) // New returns a [pkg.Artifact] compiled on this toolchain. @@ -253,6 +255,10 @@ ln -vs ../usr/bin /work/bin boot := t - 1 musl, compilerRT, runtimes, clang := boot.NewLLVM() + toybox := Toybox + if flag&TEarly != 0 { + toybox = toyboxEarly + } support = slices.Concat(extra, []pkg.Artifact{ cureEtc{newIANAEtc()}, musl, @@ -260,7 +266,7 @@ ln -vs ../usr/bin /work/bin runtimes, clang, boot.Load(Mksh), - boot.Load(Toybox), + boot.Load(toybox), }) env = fixupEnviron(env, []string{ EnvTriplet + "=" + triplet(), |
