gnu: linux-libre: Build virtio modules.
authorLudovic Courtès <ludo@gnu.org>
Wed, 29 Jan 2014 22:42:36 +0000 (23:42 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 29 Jan 2014 22:42:36 +0000 (23:42 +0100)
* gnu/packages/linux.scm (linux-libre): Build modules matching
  CONFIG.*VIRTIO.

gnu/packages/linux.scm

index b79318f..8fe91b4 100644 (file)
                       (format #t "enabling additional modules...~%")
                       (substitute* ".config"
                         (("^# CONFIG_CIFS.*$")
-                         "CONFIG_CIFS=m\n"))
+                         "CONFIG_CIFS=m\n")
+                        (("^# CONFIG_([[:graph:]]*)VIRTIO([[:graph:]]*) .*$"
+                          _ before after)
+                         (string-append "CONFIG_" before "VIRTIO"
+                                        after "=m\n")))
                       (zero? (system* "make" "oldconfig")))
 
                     ;; Call the default `build' phase so `-j' is correctly