diff options
Diffstat (limited to 'internal/rosa/rosa.go')
| -rw-r--r-- | internal/rosa/rosa.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go index 3ad0b089..aee3fdb4 100644 --- a/internal/rosa/rosa.go +++ b/internal/rosa/rosa.go @@ -231,6 +231,10 @@ var ( // The Mksh shell is added by [Toolchain.New] and used by almost all packages. Mksh = H("mksh") + // Toybox is standard utilities added by [Toolchain.New]. + Toybox = H("toybox") + // LLVM is the standard toolchain added by [Toolchain.New]. + LLVM = H("llvm") ) // New returns a [pkg.Artifact] based on a [Toolchain] via s. @@ -298,7 +302,7 @@ mkdir -vp /work/system/bin base := LLVM if flag&TNoToolchain != 0 { - base = Musl + base = musl } support = slices.Concat(extra, t.S.New(t.stage-1).Append([]pkg.Artifact{ @@ -335,6 +339,9 @@ mkdir -vp /work/system/bin ) } +// patch is used by [Toolchain.NewPatchedSource]. +var patch = H("patch") + // NewPatchedSource returns [pkg.Artifact] of source with patches applied. If // passthrough is true, source is returned as is for zero length patches. func (t Toolchain) NewPatchedSource( @@ -371,7 +378,7 @@ cat /usr/src/` + name + `-patches/* | \ aname += "-patched" } return t.New(aname, 0, t.Append(nil, - Patch, + patch, ), nil, nil, script, paths...) } |
