mirror of
https://github.com/armbian/build.git
synced 2026-01-06 09:58:46 -08:00
framework - enable NTSYNC as a module on most kernels
This commit is contained in:
@@ -20,6 +20,9 @@ declare -g BOOTSCRIPT='boot-filogic.cmd:boot.cmd'
|
||||
declare -g IMAGE_PARTITION_TABLE="gpt"
|
||||
declare -g LINUXFAMILY=filogic
|
||||
|
||||
# filogic is a network platform so Proton/WINE isn't probable.
|
||||
unset -f armbian_kernel_config__enable_ntsync
|
||||
|
||||
# This build requires xxd
|
||||
function add_host_dependencies__filogic_add_xxd_hostdep() {
|
||||
display_alert "Adding xxd dep" "for ${BOARD} bootloader compile" "debug"
|
||||
|
||||
@@ -438,6 +438,20 @@ function armbian_kernel_config__restore_enable_gpio_sysfs() {
|
||||
opts_y+=("GPIO_SYSFS") # This was a victim of not having EXPERT=y due to some _DEBUG conflicts in old times. Re-enable it forcefully.
|
||||
}
|
||||
|
||||
# NTSYNC support for Windows NT synchronization primitives (Wine/Proton performance)
|
||||
# Available and functional since kernel 6.14 (was marked BROKEN in 6.10-6.13)
|
||||
# Skip vendor kernels due to their inconsistent upstream merge status
|
||||
function armbian_kernel_config__enable_ntsync() {
|
||||
if linux-version compare "${KERNEL_MAJOR_MINOR}" ge 6.14; then
|
||||
if [[ "${BRANCH}" =~ 'vendor' ]]; then
|
||||
display_alert "Skipping NTSYNC for vendor kernel" "${BRANCH} branch, ${KERNEL_MAJOR_MINOR} version" "debug"
|
||||
else
|
||||
display_alert "Enabling NTSYNC support" "for Wine/Proton compatibility" "debug"
|
||||
opts_m+=("NTSYNC")
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# +++++++++++ HELPERS CORNER +++++++++++
|
||||
#
|
||||
# Helpers for manipulating kernel config.
|
||||
|
||||
Reference in New Issue
Block a user