WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 1cf23f5

Browse files
committed
framework - enable NTSYNC as a module on most kernels
1 parent fb95e49 commit 1cf23f5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

config/sources/families/filogic.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ declare -g BOOTSCRIPT='boot-filogic.cmd:boot.cmd'
2020
declare -g IMAGE_PARTITION_TABLE="gpt"
2121
declare -g LINUXFAMILY=filogic
2222

23+
# filogic is a network platform so Proton/WINE isn't probable.
24+
unset -f armbian_kernel_config__enable_ntsync
25+
2326
# This build requires xxd
2427
function add_host_dependencies__filogic_add_xxd_hostdep() {
2528
display_alert "Adding xxd dep" "for ${BOARD} bootloader compile" "debug"

lib/functions/compilation/armbian-kernel.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,20 @@ function armbian_kernel_config__restore_enable_gpio_sysfs() {
438438
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.
439439
}
440440

441+
# NTSYNC support for Windows NT synchronization primitives (Wine/Proton performance)
442+
# Available and functional since kernel 6.14 (was marked BROKEN in 6.10-6.13)
443+
# Skip vendor kernels due to their inconsistent upstream merge status
444+
function armbian_kernel_config__enable_ntsync() {
445+
if linux-version compare "${KERNEL_MAJOR_MINOR}" ge 6.14; then
446+
if [[ "${BRANCH}" =~ 'vendor' ]]; then
447+
display_alert "Skipping NTSYNC for vendor kernel" "${BRANCH} branch, ${KERNEL_MAJOR_MINOR} version" "debug"
448+
else
449+
display_alert "Enabling NTSYNC support" "for Wine/Proton compatibility" "debug"
450+
opts_m+=("NTSYNC")
451+
fi
452+
fi
453+
}
454+
441455
# +++++++++++ HELPERS CORNER +++++++++++
442456
#
443457
# Helpers for manipulating kernel config.

0 commit comments

Comments
 (0)