Skip to content

Commit 382121d

Browse files
committed
MBa8MPxL: cleanup fix X11 settings
- post_family_tweaks_bsp_ is called during the build of armbian-bsp-cli-xxx - the cli package is built separately on the build server - comparisons to build parameters such as DESKTOP_ENVIRONMENT do not work Signed-off-by: Martin Schmiedel <[email protected]>
1 parent cba2963 commit 382121d

File tree

2 files changed

+35
-36
lines changed

2 files changed

+35
-36
lines changed

config/boards/mba8mpxl-ras314.conf

+18-19
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,27 @@ function post_family_tweaks_bsp__mba8mpxl-ras314() {
2222
run_host_command_logged cp -Pv "pcieuart8997_combo_v4.bin" "$destination/lib/firmware/mrvl/" || exit_with_error "Unable to copy mrvl firmware"
2323

2424
# Add udev rule to delay btnxpuart loading
25-
cat <<- EOF > "${destination}"/etc/udev/rules.d/10-nxp-bluetooth-delay.rules
25+
cat <<- NXP_UDEV_RULE > "${destination}"/etc/udev/rules.d/10-nxp-bluetooth-delay.rules
2626
# wait until combo FW is loaded by wifi driver
2727
KERNEL=="mlan*", ACTION=="add", RUN+="/sbin/modprobe btnxpuart"
28-
EOF
28+
NXP_UDEV_RULE
2929

30-
if [[ "${BUILD_DESKTOP}" == "yes" ]]; then
31-
# fix X11 config
32-
mkdir -p "$destination"/etc/X11/xorg.conf.d
33-
cat <<- XORG_HDMI_CONF > "$destination"/etc/X11/xorg.conf.d/10-hdmi.conf
34-
Section "Device"
35-
Identifier "etnaviv"
36-
Driver "modesetting"
37-
Option "kmsdev" "/dev/dri/card1"
38-
Option "AccelMethod" "none" ### "glamor" to enable 3D acceleration, "none" to disable.
39-
Option "Atomic" "On"
40-
EndSection
30+
# fix X11 config
31+
mkdir -p "$destination"/etc/X11/xorg.conf.d
4132

42-
Section "ServerFlags"
43-
Option "AutoAddGPU" "false"
44-
Option "DRI" "3"
45-
EndSection
46-
XORG_HDMI_CONF
47-
fi
33+
cat <<- XORG_HDMI_CONF > "$destination"/etc/X11/xorg.conf.d/10-hdmi.conf
34+
Section "Device"
35+
Identifier "etnaviv"
36+
Driver "modesetting"
37+
Option "kmsdev" "/dev/dri/card1"
38+
Option "AccelMethod" "none" ### "glamor" to enable 3D acceleration, "none" to disable.
39+
Option "Atomic" "On"
40+
EndSection
41+
42+
Section "ServerFlags"
43+
Option "AutoAddGPU" "false"
44+
Option "DRI" "3"
45+
EndSection
46+
XORG_HDMI_CONF
4847

4948
}

config/boards/mba8mpxl.conf

+17-17
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ ASOUND_STATE="asound.state.tqma"
1414

1515
function post_family_tweaks_bsp__mba8mpxl() {
1616

17-
if [[ "${BUILD_DESKTOP}" == "yes" ]]; then
18-
# fix X11 config
19-
mkdir -p "$destination"/etc/X11/xorg.conf.d
20-
cat <<- XORG_HDMI_CONF > "$destination"/etc/X11/xorg.conf.d/10-hdmi.conf
21-
Section "Device"
22-
Identifier "etnaviv"
23-
Driver "modesetting"
24-
Option "kmsdev" "/dev/dri/card1"
25-
Option "AccelMethod" "none" ### "glamor" to enable 3D acceleration, "none" to disable.
26-
Option "Atomic" "On"
27-
EndSection
17+
# fix X11 config
18+
mkdir -p "$destination"/etc/X11/xorg.conf.d
19+
20+
cat <<- XORG_HDMI_CONF > "$destination"/etc/X11/xorg.conf.d/10-hdmi.conf
21+
Section "Device"
22+
Identifier "etnaviv"
23+
Driver "modesetting"
24+
Option "kmsdev" "/dev/dri/card1"
25+
Option "AccelMethod" "none" ### "glamor" to enable 3D acceleration, "none" to disable.
26+
Option "Atomic" "On"
27+
EndSection
28+
29+
Section "ServerFlags"
30+
Option "AutoAddGPU" "false"
31+
Option "DRI" "3"
32+
EndSection
33+
XORG_HDMI_CONF
2834

29-
Section "ServerFlags"
30-
Option "AutoAddGPU" "false"
31-
Option "DRI" "3"
32-
EndSection
33-
XORG_HDMI_CONF
34-
fi
3535
}

0 commit comments

Comments
 (0)