guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/06: gnu: rtl8821ce-linux-module: Use MAKE-FLAGS.


From: guix-commits
Subject: 06/06: gnu: rtl8821ce-linux-module: Use MAKE-FLAGS.
Date: Mon, 8 Jun 2020 04:37:08 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit d1fe14be6a98bf8dec63bbee7ac82cd9fadc90f5
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Mon Jun 8 08:53:07 2020 +0200

    gnu: rtl8821ce-linux-module: Use MAKE-FLAGS.
    
    * gnu/packages/linux.scm (rtl8821ce-linux-module)[arguments]: Use
    MAKE-FLAGS keyword.  Make CC environment variable a make flag.
---
 gnu/packages/linux.scm | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index c78f2fe..329bf7c 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1051,16 +1051,17 @@ RTL8812AU, RTL8821AU, and RTL8814AU chips.")
            "17jiw25k74kv5lnvgycvj2g1n06hbrpjz6p4znk4a62g136rhn4s"))))
       (build-system linux-module-build-system)
       (arguments
-       `(#:phases
+       `(#: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 '()) inputs #:allow-other-keys)
-               (setenv "CC" "gcc")
-               (invoke "make"
-                       (string-append "KSRC="
-                                      (assoc-ref inputs "linux-module-builder")
-                                      "/lib/modules/build")))))
-         #:tests? #f))
+             (lambda* (#:key (make-flags '()) #:allow-other-keys)
+               (apply invoke "make" make-flags))))
+         #:tests? #f))                  ; no test suite
       (home-page "https://github.com/tomaspinho/rtl8821ce";)
       (synopsis "Linux driver for Realtek RTL8821CE wireless network adapters")
       (description "This is Realtek's RTL8821CE Linux driver for wireless



reply via email to

[Prev in Thread] Current Thread [Next in Thread]