framework - enable NTSYNC as a module on most kernels

This commit is contained in:
tabris
2025-12-05 12:07:16 -05:00
committed by Igor
parent 43addca1d4
commit f53eac4253
2 changed files with 17 additions and 0 deletions

View File

@@ -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"

View File

@@ -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.