mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Use extension for Lima X.Org serverflags
* Remove create_desktop_package.sh for rk3318 board from config/optional, clearing the whole directory tree * Add an extension to implement serverflags workaround for X.Org and Lima driver not being autodetected * Fix rk3318-box and rk322x family to use extension in place of 40-serverflags.conf bsp file
This commit is contained in:
34
extensions/xorg-lima-serverflags.sh
Normal file
34
extensions/xorg-lima-serverflags.sh
Normal file
@@ -0,0 +1,34 @@
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Copyright (c) 2023 Armbian
|
||||
# This file is a part of the Armbian Build Framework https://github.com/armbian/build/
|
||||
#
|
||||
|
||||
# Install 40-serverflags.conf in xorg.conf.d directory because autodetection
|
||||
# may be faulty on some x.org revisions.
|
||||
function post_family_tweaks_bsp__install_lima_serverflags() {
|
||||
|
||||
display_alert "${EXTENSION} ${BOARD}" "adding lima x.org serverflags workaround to BSP" "info"
|
||||
|
||||
declare xorg_conf_dir="/etc/X11/xorg.conf.d"
|
||||
declare conf_lima_file="40-serverflags.conf"
|
||||
run_host_command_logged mkdir -pv "${destination}${xorg_conf_dir}"
|
||||
|
||||
cat <<- LIMA_SERVERFLAGS > "${destination}${xorg_conf_dir}/${conf_lima_file}"
|
||||
Section "ServerFlags"
|
||||
Option "AutoAddGPU" "off"
|
||||
Option "Debug" "dmabuf_capable"
|
||||
EndSection
|
||||
|
||||
Section "OutputClass"
|
||||
Identifier "Lima"
|
||||
Driver "modesetting"
|
||||
MatchDriver "rockchip"
|
||||
Option "AccelMethod" "glamor"
|
||||
Option "PrimaryGPU" "true"
|
||||
EndSection
|
||||
LIMA_SERVERFLAGS
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user