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

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

View file

@ -1049,22 +1049,23 @@ network adapters.")
(base32 "1ril9xnv3bbmfj9yynm3nzpdgjyh0a93rag51hia7ix6ppm8w0a6")))) (base32 "1ril9xnv3bbmfj9yynm3nzpdgjyh0a93rag51hia7ix6ppm8w0a6"))))
(build-system linux-module-build-system) (build-system linux-module-build-system)
(arguments (arguments
(list (list #:tests? #f ; no test suite
#:make-flags #~(list (string-append "CC=" #:make-flags
#$(cc-for-target)) #~(list (string-append "CC=" #$(cc-for-target)))
(string-append "KSRC=" #:phases
(assoc-ref %build-inputs #~(modify-phases %standard-phases
"linux-module-builder")
"/lib/modules/build"))
#:phases #~(modify-phases %standard-phases
(replace 'build (replace 'build
(lambda* (#:key (make-flags '()) (lambda* (#:key (make-flags '()) (parallel-build? #t) inputs
(parallel-build? #t) #: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
'()) ,@make-flags))))) (parallel-job-count)))
#:tests? #f)) '())
,@make-flags)))))))
(home-page "https://github.com/morrownr/8821cu-20210916") (home-page "https://github.com/morrownr/8821cu-20210916")
(synopsis "Linux driver for Realtek USB WiFi adapters") (synopsis "Linux driver for Realtek USB WiFi adapters")
(description (description