Merge pull request #327 from elezar/add-driver-config

Add config search path option to driver root
This commit is contained in:
Evan Lezar
2024-04-11 16:58:33 +02:00
committed by GitHub
6 changed files with 43 additions and 10 deletions

View File

@@ -50,6 +50,7 @@ type nvcdilib struct {
devRoot string
nvidiaCTKPath string
ldconfigPath string
configSearchPaths []string
librarySearchPaths []string
csvFiles []string

View File

@@ -126,6 +126,13 @@ func WithCSVIgnorePatterns(csvIgnorePatterns []string) Option {
}
}
// WithConfigSearchPaths sets the search paths for config files.
func WithConfigSearchPaths(paths []string) Option {
return func(o *nvcdilib) {
o.configSearchPaths = paths
}
}
// WithLibrarySearchPaths sets the library search paths.
// This is currently only used for CSV-mode.
func WithLibrarySearchPaths(paths []string) Option {