gnu: b43-tools: Use make-flags.
* gnu/packages/firmware.scm (b43-tools)[arguments]: Add make-flags. Use make-flags in custom 'build and 'install phases. Remove trailing #t from phases. Change-Id: I8576351ecd571d191598943a2d143ab3e3e9da09
This commit is contained in:
parent
d96a9c7473
commit
e82b700228
|
@ -175,6 +175,8 @@ (define-public b43-tools
|
||||||
(guix build gnu-build-system)
|
(guix build gnu-build-system)
|
||||||
(guix build utils))
|
(guix build utils))
|
||||||
#:tests? #f ; no tests
|
#:tests? #f ; no tests
|
||||||
|
#:make-flags `(,(string-append "PREFIX=" (assoc-ref %outputs "out"))
|
||||||
|
,(string-append "CC=" ,(cc-for-target)))
|
||||||
#:phases
|
#:phases
|
||||||
(let ((subdirs '("assembler" "disassembler")))
|
(let ((subdirs '("assembler" "disassembler")))
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
@ -182,24 +184,19 @@ (define-public b43-tools
|
||||||
(add-before 'build 'patch-/bin/true
|
(add-before 'build 'patch-/bin/true
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* (find-files "." "Makefile")
|
(substitute* (find-files "." "Makefile")
|
||||||
(("/bin/true") ":"))
|
(("/bin/true") ":"))))
|
||||||
#t))
|
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(lambda _
|
(lambda* (#:key (make-flags '()) #:allow-other-keys)
|
||||||
(for-each (lambda (dir)
|
(for-each (lambda (dir)
|
||||||
(invoke "make" "-C" dir "CC=gcc"))
|
(apply invoke "make" "-C" dir make-flags))
|
||||||
subdirs)
|
subdirs)))
|
||||||
#t))
|
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs (make-flags '()) #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(mkdir-p (string-append out "/bin"))
|
(mkdir-p (string-append out "/bin"))
|
||||||
(for-each (lambda (dir)
|
(for-each (lambda (dir)
|
||||||
(invoke "make" "-C" dir
|
(apply invoke "make" "-C" dir "install" make-flags))
|
||||||
(string-append "PREFIX=" out)
|
subdirs))))))))
|
||||||
"install"))
|
|
||||||
subdirs)
|
|
||||||
#t)))))))
|
|
||||||
(home-page
|
(home-page
|
||||||
"https://bues.ch/cms/hacking/misc.html#linux_b43_driver_firmware_tools")
|
"https://bues.ch/cms/hacking/misc.html#linux_b43_driver_firmware_tools")
|
||||||
(synopsis "Collection of tools for the b43 wireless driver")
|
(synopsis "Collection of tools for the b43 wireless driver")
|
||||||
|
|
Loading…
Reference in a new issue