internal/rosa/package: migrate firmware

This does not depend on the kernel.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-19 21:46:18 +09:00
parent 962b02cf25
commit d6be116ff8
2 changed files with 47 additions and 51 deletions

View File

@@ -0,0 +1,47 @@
package firmware {
description = "firmware blobs for use with the Linux kernel";
website = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
anitya = 141464;
version* = "20260410";
source = remoteGitLab {
domain = "gitlab.com";
suffix = "kernel-firmware/linux-firmware";
ref = version;
checksum = "J8PdQlGqwrivpskPzbL6xacqR6mlKtXpe5RpzFfVzKPAgG81ZRXsc3qrxwdGJbil";
};
// dedup creates temporary file
writable = true;
// does not use configure
enterSource = true;
env = [
"HOME=/proc/nonexistent",
];
exec = make {
omitDefaults = true;
skipConfigure = true;
inPlace = true;
make = [
"DESTDIR=/work/system",
"install-zst",
];
// requires pre-commit
skipCheck = true;
install = "make " + jobsFlagE + " DESTDIR=/work/system dedup";
};
inputs = [
parallel,
rdfind,
zstd,
findutils,
coreutils,
];
}