blob: 5e895ae15aef5c34dd30b2eff8a54adff6430c88 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
(define-module (px packages sof)
#:use-module (gnu packages)
#:use-module ((guix licenses)
#:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system trivial)
#:use-module (gnu packages bash)
#:use-module (px packages python-xyz))
(define-public sof-bin
(package
(name "sof-bin")
(version "1.5.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/thesofproject/sof-bin")
(commit "a06502dfe1d6d7c00fa355788430dab7527dc829")
(recursive? #t)))
(sha256
(base32 "17bl463qm01d534fld7gb4cd658y0hyzd1p3vvj7n08k8ggp8q9y"))
(file-name (git-file-name name version))))
(build-system trivial-build-system)
(arguments
`(#:modules ((guix build utils))
#:builder (begin
(use-modules (guix build utils)
(srfi srfi-26))
(let* ((source (assoc-ref %build-inputs "source"))
(bash (assoc-ref %build-inputs "bash"))
(lib-dir (string-append %output "/lib/firmware")))
(mkdir-p lib-dir)
(setenv "PATH"
(string-append (string-append bash "/bin:")))
(copy-recursively source ".")
(substitute* "go.sh"
(("\\$\\{ROOT\\}")
%output))
(substitute* "go.sh"
(("\\$\\{VERSION\\}")
,version))
(invoke "./go.sh")
#t))))
(inputs `(("bash" ,bash)))
(home-page "https://thesofproject.github.io")
(synopsis "SOF Firmware and Topology Binaries.")
(description
"This is the living area and distribution channel for SOF firmware and topology binaries. It's still very much WiP and may churn a little until things settle down.")
(license license:lgpl2.1+)))
|