diff options
author | Mark H Weaver <mhw@netris.org> | 2016-02-27 08:52:23 -0500 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2016-02-27 08:52:23 -0500 |
commit | 048ec1a8b092a87de08bfe410be65642522b63ed (patch) | |
tree | 1279c4fa3fd09805dbfe06be3514879aa38d503e /gnu/build/linux-modules.scm | |
parent | fe5f687284889eeff3c1b73edab0aa26e58c3bc5 (diff) | |
parent | b35461748b20d0172744974b39e7d9d033400c51 (diff) | |
download | patches-048ec1a8b092a87de08bfe410be65642522b63ed.tar patches-048ec1a8b092a87de08bfe410be65642522b63ed.tar.gz |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/build/linux-modules.scm')
-rw-r--r-- | gnu/build/linux-modules.scm | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/gnu/build/linux-modules.scm b/gnu/build/linux-modules.scm index bbe1a74d85..d7feb3a080 100644 --- a/gnu/build/linux-modules.scm +++ b/gnu/build/linux-modules.scm @@ -96,10 +96,20 @@ contains module names, not actual file names." name (dot-ko name))) +(define (normalize-module-name module) + "Return the \"canonical\" name for MODULE, replacing hyphens with +underscores." + ;; See 'modname_normalize' in libkmod. + (string-map (lambda (chr) + (case chr + ((#\-) #\_) + (else chr))) + module)) + (define (file-name->module-name file) - "Return the module name corresponding to FILE, stripping the trailing '.ko', -etc." - (basename file ".ko")) + "Return the module name corresponding to FILE, stripping the trailing '.ko' +and normalizing it." + (normalize-module-name (basename file ".ko"))) (define* (recursive-module-dependencies files #:key (lookup-module dot-ko)) @@ -138,7 +148,9 @@ LOOKUP-MODULE to the module name." (define (module-black-list) "Return the black list of modules that must not be loaded. This black list is specified using 'modprobe.blacklist=MODULE1,MODULE2,...' on the kernel -command line; it is honored by libkmod." +command line; it is honored by libkmod for users that pass +'KMOD_PROBE_APPLY_BLACKLIST', which includes 'modprobe --use-blacklist' and +udev." (define parameter "modprobe.blacklist=") |