aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-01 03:52:41 +0900
committerOphestra <cat@gensokyo.uk>2026-05-01 03:52:41 +0900
commitae1fe638d5767e326c88bba261db8752ebdd874e (patch)
treead70e939b9338cd8673b0635d05bb3c941a05bd6 /internal
parent445d95023b1d9d152417838c4edad54f7bf4efe3 (diff)
internal/rosa/stage0: remove unused layers
The stage0 toolchain no longer requires bundled dependencies other than the bare toolchain and environment itself. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/stage0.go36
1 files changed, 11 insertions, 25 deletions
diff --git a/internal/rosa/stage0.go b/internal/rosa/stage0.go
index 0afaddfb..5e145c82 100644
--- a/internal/rosa/stage0.go
+++ b/internal/rosa/stage0.go
@@ -3,39 +3,25 @@ package rosa
import (
"sync"
+ "hakurei.app/fhs"
"hakurei.app/internal/pkg"
)
func (t Toolchain) newStage0() (pkg.Artifact, string) {
- return t.New("rosa-stage0", 0, []pkg.Artifact{
- t.Load(Musl),
-
- t.Load(Zlib),
- t.Load(Bzip2),
-
- t.Load(Patch),
- t.Load(Make),
- t.Load(CMake),
- t.Load(Ninja),
-
- t.Load(Libffi),
- t.Load(Python),
- t.Load(Perl),
- t.Load(Diffutils),
- t.Load(Bash),
- t.Load(Gawk),
- t.Load(Coreutils),
- t.Load(Findutils),
-
- t.Load(KernelHeaders),
- }, nil, nil, `
+ return t.New("rosa-stage0", 0, t.AppendPresets(nil,
+ Bzip2,
+ ), nil, nil, `
umask 377
tar \
-vjc \
- -C / \
+ -C /stage0 \
-f /work/stage0-`+triplet()+`.tar.bz2 \
- system bin usr/bin/env
-`), Unversioned
+ .
+`, pkg.Path(fhs.AbsRoot.Append("stage0"), false, t.AppendPresets(nil,
+ LLVM,
+ Mksh,
+ toyboxEarly,
+ )...)), Unversioned
}
func init() {
artifactsM[Stage0] = Metadata{