feat add sof-firmware
This commit is contained in:
@@ -394,6 +394,7 @@ sed.recipe.py
|
||||
shadow.recipe.py
|
||||
shared-mime-info.recipe.py
|
||||
slang.recipe.py
|
||||
sof-firmware.recipe.py
|
||||
sound-theme-freedesktop.recipe.py
|
||||
spirv-headers.recipe.py
|
||||
spirv-llvm-translator.recipe.py
|
||||
|
||||
30
sof-firmware.recipe.py
Normal file
30
sof-firmware.recipe.py
Normal file
@@ -0,0 +1,30 @@
|
||||
pkgname = "sof-firmware"
|
||||
pkgver = "2025.12"
|
||||
source = f"https://github.com/thesofproject/sof-bin/releases/download/v{pkgver}/sof-bin-{pkgver}.tar.gz"
|
||||
builddir = f"/tmp/fempkg/build/{pkgname}/sof-bin-{pkgver}"
|
||||
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
|
||||
deps = []
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir -p {fembuilddir} && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/sof-bin-{pkgver}.tar.gz",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && mkdir -p {destdir}/usr/lib/firmware/intel",
|
||||
f"cd {builddir} && cp -at {destdir}/usr/lib/firmware/intel sof*",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"cp -vr {builddir}/LICENCE* {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"cp -v {builddir}/Notice.NXP {destdir}/usr/share/licenses/{pkgname}/",
|
||||
|
||||
# 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