aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/stage0.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/stage0.go')
-rw-r--r--internal/rosa/stage0.go13
1 files changed, 10 insertions, 3 deletions
diff --git a/internal/rosa/stage0.go b/internal/rosa/stage0.go
index e446ffe5..b579d392 100644
--- a/internal/rosa/stage0.go
+++ b/internal/rosa/stage0.go
@@ -7,7 +7,7 @@ import (
"hakurei.app/internal/pkg"
)
-func (t Toolchain) newStage0() pkg.Artifact {
+func (t Toolchain) newStage0() (pkg.Artifact, string) {
musl, compilerRT, runtimes, clang := t.NewLLVM()
return t.New("rosa-stage0", 0, []pkg.Artifact{
musl,
@@ -39,9 +39,16 @@ tar \
-C / \
-f /work/stage0-`+triplet()+`.tar.bz2 \
system bin usr/bin/env
-`)
+`), Unversioned
+}
+func init() {
+ artifactsM[Stage0] = Metadata{
+ f: Toolchain.newStage0,
+
+ Name: "rosa-stage0",
+ Description: "Rosa OS stage0 toolchain tarball for bootstrap",
+ }
}
-func init() { artifactsF[Stage0] = Toolchain.newStage0 }
var (
// stage0 stores the tarball unpack artifact.