Created
November 12, 2020 00:19
-
-
Save MykolaBova/6643f2d0e3f5502b82ba7c95d861f2a3 to your computer and use it in GitHub Desktop.
usr/src/amdgpu-5.6.14.224-1147286/dkms.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myk@myk-Bravo-17-A4DDK:/usr/src$ cat /usr/src/amdgpu-5.6.14.224-1147286/dkms.conf | |
PACKAGE_NAME="amdgpu" | |
PACKAGE_VERSION="5.6.14.224-1147286" | |
AUTOINSTALL="yes" | |
REMAKE_INITRD="no" | |
PRE_BUILD="amd/dkms/pre-build.sh $kernelver" | |
# not work with RHEL DKMS | |
#MODULES_CONF[0]="blacklist radeon" | |
BUILT_MODULE_NAME[0]="amdgpu" | |
BUILT_MODULE_LOCATION[0]="amd/amdgpu" | |
DEST_MODULE_LOCATION[0]="/updates" | |
BUILT_MODULE_NAME[1]="amdttm" | |
BUILT_MODULE_LOCATION[1]="ttm" | |
DEST_MODULE_LOCATION[1]="/updates" | |
BUILT_MODULE_NAME[2]="amdkcl" | |
BUILT_MODULE_LOCATION[2]="amd/amdkcl" | |
DEST_MODULE_LOCATION[2]="/updates" | |
BUILT_MODULE_NAME[3]="amd-sched" | |
BUILT_MODULE_LOCATION[3]="scheduler" | |
DEST_MODULE_LOCATION[3]="/updates" | |
# Find out how many CPU cores can be use if we pass appropriate -j option to make. | |
# DKMS could use all cores on multicore systems to build the kernel module. | |
num_cpu_cores() | |
{ | |
if [ -x /usr/bin/nproc ]; then | |
nproc | |
else | |
echo "1" | |
fi | |
} | |
MAKE[0]="make -j$(num_cpu_cores) TTM_NAME=${BUILT_MODULE_NAME[1]} \ | |
SCHED_NAME=${BUILT_MODULE_NAME[3]} \ | |
-C $kernel_source_dir \ | |
M=$dkms_tree/$module/$module_version/build" | |
POST_INSTALL="amd/dkms/post-install.sh" | |
POST_REMOVE="amd/dkms/post-remove.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment