mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* Add Nvidia driver to the x86 desktop images * Enable this driver on uefi x86 not on arm64 * Enable nvidia driver extension only on desktop builds
14 lines
450 B
Bash
14 lines
450 B
Bash
function pre_install_kernel_debs__build_nvidia_kernel_module() {
|
|
|
|
export INSTALL_HEADERS="yes"
|
|
|
|
}
|
|
|
|
function post_install_kernel_debs__build_nvidia_kernel_module() {
|
|
|
|
display_alert "Build kernel module" "${EXTENSION}" "info"
|
|
chroot "${SDCARD}" /bin/bash -c "apt -y -qq install nvidia-dkms-510 nvidia-driver-510 nvidia-settings nvidia-common" >>"$DEST"/"${LOG_SUBPATH}"/install.log 2>&1 || {
|
|
exit_with_error "${install_grub_cmdline} failed!"
|
|
}
|
|
}
|