File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
lib/functions/compilation Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ declare -g BOOTSCRIPT='boot-filogic.cmd:boot.cmd'
2020declare -g IMAGE_PARTITION_TABLE="gpt"
2121declare -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
2427function add_host_dependencies__filogic_add_xxd_hostdep() {
2528 display_alert "Adding xxd dep" "for ${BOARD} bootloader compile" "debug"
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments