-define display_ws5inch_boot =
+define display_ws5inch_boot :=
# Waveshare 5 Inch Display
hdmi_group=2
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
endef
-define display_ws5inch_cfg =
+define display_ws5inch_cfg :=
Section "InputClass"
Identifier "evdev touchscreen catchall"
MatchIsTouchscreen "on"
export display_ws5inch_boot display_ws5inch_cfg
-PACKAGES := ${PACKAGES} xserver-xorg-input-evdev xinput xinput-calibrator
+PACKAGES += xserver-xorg-input-evdev xinput xinput-calibrator
.PHONY: _display_ws5inch
_config: _display_ws5inch
printf %s "$${display_ws5inch_boot}" >>"$${CFGROOT}/boot/config.txt"
mkdir -p "$${CFGROOT}/usr/share/X11/xorg.conf.d/"
printf %s "$${display_ws5inch_cfg}" >"$${CFGROOT}/usr/share/X11/xorg.conf.d/45-evdev.conf"
- #-chroot "$${CFGROOT}" adduser local input