forked from FemboyOS/fempkg_recipes
feat: add linux-firmware
This commit is contained in:
@@ -246,6 +246,7 @@ libxmlb.recipe.py
|
|||||||
libyaml.recipe.py
|
libyaml.recipe.py
|
||||||
libzip.recipe.py
|
libzip.recipe.py
|
||||||
links.recipe.py
|
links.recipe.py
|
||||||
|
linux-firmware.recipe.py
|
||||||
Linux-PAM.recipe.py
|
Linux-PAM.recipe.py
|
||||||
linux.recipe.py
|
linux.recipe.py
|
||||||
llvm.recipe.py
|
llvm.recipe.py
|
||||||
|
|||||||
25
linux-firmware.recipe.py
Normal file
25
linux-firmware.recipe.py
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
pkgname = "linux-firmware"
|
||||||
|
pkgver = "20251125-2"
|
||||||
|
source = f"https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
|
||||||
|
builddir = f"/tmp/fempkgbuild/{pkgname}"
|
||||||
|
fembuilddir = builddir
|
||||||
|
source_type = "git"
|
||||||
|
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||||
|
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||||
|
destdir = f"{fembuilddir}/DESTDIR"
|
||||||
|
|
||||||
|
deps = []
|
||||||
|
|
||||||
|
build = [
|
||||||
|
|
||||||
|
# 64-bit build
|
||||||
|
f"cd {builddir} && install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/ && cp -pv LICENSE* {destdir}/usr/share/licenses/{pkgname}/",
|
||||||
|
f"cd {builddir} && ./copy-firmware.sh {destdir}/usr/lib/firmware",
|
||||||
|
|
||||||
|
# Make tarball + manifests
|
||||||
|
f"mkdir -p {outputdir} && cd {destdir} && tar --transform 's|^\\.||' -I zstd -cf {outputdir}/{pkgname}-{pkgver}.tar.zst .",
|
||||||
|
f"mkdir -p {manifestdir} && tar -tf {outputdir}/{pkgname}-{pkgver}.tar.zst | grep -v '/$' > {manifestdir}/{pkgname}.txt",
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
f"rm -rf {fembuilddir}"
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user