diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-19 00:03:42 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-19 00:44:24 +0900 |
| commit | 8807cbc7305e424725b2be8eed7ecd9234f7772e (patch) | |
| tree | 5998f055396505becf0f99fcba3c86514f00650b /internal/rosa/kernel.go | |
| parent | 0e95573f187f64de1a46f27af67325e57037b9a9 (diff) | |
internal/rosa: create metadata alongside artifact
This enables deferring evaluation of azalea-based packages and fixes the longstanding quirk of version being disjoint from other metadata.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/kernel.go')
| -rw-r--r-- | internal/rosa/kernel.go | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/internal/rosa/kernel.go b/internal/rosa/kernel.go index 354e97ed..054008cd 100644 --- a/internal/rosa/kernel.go +++ b/internal/rosa/kernel.go @@ -19,9 +19,7 @@ chmod -R +w /work/usr/src/linux/ `, pkg.Path(AbsUsrSrc.Append("linux"), false, kernelSource)), kernelVersion } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newKernelSource, - + native.mustRegister(Toolchain.newKernelSource, &Metadata{ Name: "kernel-source", Description: "a writable kernel source tree installed to /usr/src/linux", Website: "https://kernel.org/", @@ -70,9 +68,7 @@ cat \ ), kernelVersion } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newKernelHeaders, - + native.mustRegister(Toolchain.newKernelHeaders, &Metadata{ Name: "kernel-headers", Description: "an installation of kernel headers", Website: "https://kernel.org/", @@ -1275,9 +1271,7 @@ rm -v /work/system/lib/modules/` + kernelVersion + `/build ), kernelVersion } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newKernel, - + native.mustRegister(Toolchain.newKernel, &Metadata{ Name: "kernel", Description: "the generic Rosa OS linux kernel", Website: "https://kernel.org/", @@ -1293,9 +1287,7 @@ cc -o /work/system/bin/gen_init_cpio /usr/src/linux/usr/gen_init_cpio.c `, pkg.Path(AbsUsrSrc.Append("linux"), false, kernelSource)), kernelVersion } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newGenInitCPIO, - + native.mustRegister(Toolchain.newGenInitCPIO, &Metadata{ Name: "gen_init_cpio", Description: "a program in the kernel source tree for creating initramfs archive", }) @@ -1340,9 +1332,7 @@ func (t Toolchain) newFirmware() (pkg.Artifact, string) { ), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newFirmware, - + native.mustRegister(Toolchain.newFirmware, &Metadata{ Name: "firmware", Description: "firmware blobs for use with the Linux kernel", Website: "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/", |
