aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/kmod.go
blob: 5be48732f5999bdcd40324c721d27fed933033d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package rosa

import "hakurei.app/internal/pkg"

func (t Toolchain) newKmod() pkg.Artifact {
	const (
		version  = "34.2"
		checksum = "0K7POeTKxMhExsaTsnKAC6LUNsRSfe6sSZxWONPbOu-GI_pXOw3toU_BIoqfBhJV"
	)
	return t.NewViaMeson("kmod", version, pkg.NewHTTPGetTar(
		nil, "https://www.kernel.org/pub/linux/utils/kernel/"+
			"kmod/kmod-"+version+".tar.gz",
		mustDecode(checksum),
		pkg.TarGzip,
	), &MesonAttr{
		Configure: [][2]string{
			{"Dsysconfdir", "/system/etc"},
			{"Dbashcompletiondir", "no"},
			{"Dfishcompletiondir", "no"},
			{"Dxz", "disabled"},
			{"Dmanpages", "false"},
		},

		// makes assumptions about the running kernel
		SkipCheck: true,
	},
		t.Load(Zlib),
		t.Load(Zstd),
		t.Load(OpenSSL),
		t.Load(KernelHeaders),
	)
}
func init() { artifactsF[Kmod] = Toolchain.newKmod }