[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30604] [PATCH v6 1/6] linux-modules: Add module-aliases.
From: |
Danny Milosavljevic |
Subject: |
[bug#30604] [PATCH v6 1/6] linux-modules: Add module-aliases. |
Date: |
Fri, 2 Mar 2018 15:17:15 +0100 |
* gnu/build/linux-modules.scm (module-aliases): New variable.
---
gnu/build/linux-modules.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/build/linux-modules.scm b/gnu/build/linux-modules.scm
index 4a6d4ff08..364339df9 100644
--- a/gnu/build/linux-modules.scm
+++ b/gnu/build/linux-modules.scm
@@ -30,6 +30,7 @@
#:use-module (ice-9 rdelim)
#:export (dot-ko
ensure-dot-ko
+ module-aliases
module-dependencies
recursive-module-dependencies
modules-loaded
@@ -95,6 +96,14 @@ contains module names, not actual file names."
(('depends . what)
(string-tokenize what %not-comma)))))
+(define (module-aliases file)
+ "Return the list of aliases for FILE."
+ (let ((info (modinfo-section-contents file)))
+ (filter-map (match-lambda
+ (('alias . value)
+ value)
+ (_ #f)) (modinfo-section-contents file))))
+
(define dot-ko
(cut string-append <> ".ko"))
- [bug#30604] [PATCH v6 0/6] Load Linux module only when supported hardware is present., Danny Milosavljevic, 2018/03/02
- [bug#30604] [PATCH v6 1/6] linux-modules: Add module-aliases.,
Danny Milosavljevic <=
- [bug#30604] [PATCH v6 2/6] linux-modules: Add install-modules., Danny Milosavljevic, 2018/03/02
- [bug#30604] [PATCH v6 6/6] linux-initrd: Provide modprobe to the initrd., Danny Milosavljevic, 2018/03/02
- [bug#30604] [PATCH v6 5/6] vm: Make the virtio-blk uniquely identifiable in /sys., Danny Milosavljevic, 2018/03/02
- [bug#30604] [PATCH v6 3/6] linux-boot: Load kernel modules only when the hardware is present., Danny Milosavljevic, 2018/03/02
- [bug#30604] [PATCH v6 4/6] vm: Allow qemu-image builder to load Linux kernel modules., Danny Milosavljevic, 2018/03/02
- [bug#30604] [PATCH v7 0/6] Load Linux module only when supported hardware is present., Danny Milosavljevic, 2018/03/02