From ae1fe638d5767e326c88bba261db8752ebdd874e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 1 May 2026 03:52:41 +0900 Subject: [PATCH] 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 --- internal/rosa/stage0.go | 36 +++++++++++------------------------- 1 file 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{