diff options
| author | Hilton Chain <hako@ultrarare.space> | 2026-01-06 15:22:25 +0800 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2026-01-06 15:57:25 +0800 |
| commit | 3a69a9542bb16e8b672a98c637100dfd29325183 (patch) | |
| tree | 5cc6bde9db2f65f0e90aafa58daf8a3e9f0f7b2f | |
| parent | 1399697b62ac11ac01bd12df129033b8eff9039e (diff) | |
nongnu: rtl8192eu-linux-module: Revise package style.
* nongnu/packages/linux.scm (rtl8192eu-linux-module) [arguments]: Use gexps.
<#:make-flags>: Move KSRC to...
<#:phases>: ...here.
Allow building in parallel.
| -rw-r--r-- | nongnu/packages/linux.scm | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/nongnu/packages/linux.scm b/nongnu/packages/linux.scm index 9e65e84..ae040ea 100644 --- a/nongnu/packages/linux.scm +++ b/nongnu/packages/linux.scm @@ -964,17 +964,23 @@ package contains nonfree firmware for the following chips: "0lklpn1gl202i49xjrd735pl595ynh2wpkdk1nlpcvxssi3qi0l7")))) (build-system linux-module-build-system) (arguments - `(#:make-flags - (list "CC=gcc" - (string-append "KSRC=" - (assoc-ref %build-inputs "linux-module-builder") - "/lib/modules/build")) - #:phases - (modify-phases %standard-phases - (replace 'build - (lambda* (#:key (make-flags '()) #:allow-other-keys) - (apply invoke "make" make-flags)))) - #:tests? #f)) ; no test suite + (list #:tests? #f ; no test suite + #:make-flags + #~(list (string-append "CC=" #$(cc-for-target))) + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda* (#:key (make-flags '()) (parallel-build? #t) inputs + #:allow-other-keys) + (apply invoke "make" + (string-append "KSRC=" + (search-input-directory + inputs "lib/modules/build")) + `(,@(if parallel-build? + `("-j" ,(number->string + (parallel-job-count))) + '()) + ,@make-flags))))))) (home-page "https://github.com/clnhub/rtl8192eu-linux") (synopsis "Linux driver for Realtek RTL8192EU wireless network adapters") (description "This is Realtek's RTL8192EU Linux driver for wireless |
