forked from rosa/hakurei
This introduces bindings for extra paths and KnownChecksum, and exposes a passthrough special case. Signed-off-by: Ophestra <cat@gensokyo.uk>
52 lines
1.1 KiB
Go
52 lines
1.1 KiB
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newFirmware() (pkg.Artifact, string) {
|
|
const (
|
|
version = "20260410"
|
|
checksum = "J8PdQlGqwrivpskPzbL6xacqR6mlKtXpe5RpzFfVzKPAgG81ZRXsc3qrxwdGJbil"
|
|
)
|
|
return t.NewPackage("firmware", version, newFromGitLab(
|
|
"gitlab.com",
|
|
"kernel-firmware/linux-firmware",
|
|
version,
|
|
checksum,
|
|
), &PackageAttr{
|
|
// dedup creates temporary file
|
|
Writable: true,
|
|
// does not use configure
|
|
EnterSource: true,
|
|
|
|
Env: []string{
|
|
"HOME=/proc/nonexistent",
|
|
},
|
|
}, &MakeHelper{
|
|
OmitDefaults: true,
|
|
SkipConfigure: true,
|
|
InPlace: true,
|
|
|
|
Make: []string{
|
|
"DESTDIR=/work/system",
|
|
"install-zst",
|
|
},
|
|
SkipCheck: true, // requires pre-commit
|
|
Install: "make " + jobsFlagE + " DESTDIR=/work/system dedup",
|
|
},
|
|
Parallel,
|
|
Rdfind,
|
|
Zstd,
|
|
Findutils,
|
|
Coreutils,
|
|
), version
|
|
}
|
|
func init() {
|
|
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/",
|
|
|
|
ID: 141464,
|
|
})
|
|
}
|