diff options
Diffstat (limited to 'core/modules/nvidia-kernel/module.build')
-rw-r--r-- | core/modules/nvidia-kernel/module.build | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/modules/nvidia-kernel/module.build b/core/modules/nvidia-kernel/module.build new file mode 100644 index 00000000..38c96a75 --- /dev/null +++ b/core/modules/nvidia-kernel/module.build @@ -0,0 +1,12 @@ +#!/bin/bash + +module_load() { + [ -z "$NVIDIA_VERSIONS" ] && perror "No NVIDIA_VERSIONS set in config" + local version + for version in $NVIDIA_VERSIONS; do + [ -d "${ROOT_DIR}/tmp/work/nvidia-common/build/${version}" ] || perror "nvidia-common did not build $version" + done + # XXX Now we change out build dir to that of nvidia-common + MODULE_BUILD_DIR="${ROOT_DIR}/tmp/work/nvidia-common/build" +} + |