PACKAGE_NAME="amdgpu-pro" PACKAGE_VERSION="1.0" AUTOINSTALL="yes" REMAKE_INITRD="yes" PRE_BUILD="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) kdir=$kernel_source_dir -C $kernel_source_dir M=$dkms_tree/$module/$module_version/build"