From 3a69a9542bb16e8b672a98c637100dfd29325183 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Tue, 6 Jan 2026 15:22:25 +0800 Subject: 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. --- nongnu/packages/linux.scm | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'nongnu/packages') 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 -- cgit v1.2.3