nongnu: rtl8821ce-linux-module: Revise package style.

* nongnu/packages/linux.scm (rtl8821ce-linux-module) [arguments]
<#:make-flags>: Move KSRC to...
<#:phases>: ...here.
This commit is contained in:
Hilton Chain 2026-01-06 15:52:11 +08:00
parent d55c16ec05
commit 4fd6a3c1f6
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -1001,23 +1001,23 @@ network adapters.")
"0dn1cmp8gn2g42q67lny15rrf092kw2rrb3gxc1qn07hbklj73bx")))) "0dn1cmp8gn2g42q67lny15rrf092kw2rrb3gxc1qn07hbklj73bx"))))
(build-system linux-module-build-system) (build-system linux-module-build-system)
(arguments (arguments
(list #:make-flags (list #:tests? #f ; no test suite
#~(list (string-append "CC=" #$(cc-for-target)) #:make-flags
(string-append "KSRC=" #~(list (string-append "CC=" #$(cc-for-target)))
(assoc-ref %build-inputs
"linux-module-builder")
"/lib/modules/build"))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(replace 'build (replace 'build
(lambda* (#:key (make-flags '()) (parallel-build? #t) (lambda* (#:key (make-flags '()) (parallel-build? #t) inputs
#:allow-other-keys) #:allow-other-keys)
(apply invoke "make" (apply invoke "make"
(string-append "KSRC="
(search-input-directory
inputs "lib/modules/build"))
`(,@(if parallel-build? `(,@(if parallel-build?
`("-j" ,(number->string (parallel-job-count))) `("-j" ,(number->string
(parallel-job-count)))
'()) '())
,@make-flags))))) ,@make-flags)))))))
#:tests? #f)) ; no test suite
(home-page "https://github.com/tomaspinho/rtl8821ce") (home-page "https://github.com/tomaspinho/rtl8821ce")
(synopsis "Linux driver for Realtek RTL8821CE wireless network adapters") (synopsis "Linux driver for Realtek RTL8821CE wireless network adapters")
(description "This is Realtek's RTL8821CE Linux driver for wireless (description "This is Realtek's RTL8821CE Linux driver for wireless