PACKAGES += $(subst ${comma_},${space_},${packages})
endif
-export DEBCONF
+export DEBCONF RPICONFIG
define DEBCONF :=
+${DEBCONF}
keyboard-configuration keyboard-configuration/model select Generic 105-key (Intl) PC
keyboard-configuration keyboard-configuration/variant select English (US) - English (Macintosh)
endef
-.PHONY: _debconf_selections
+define RPICONFIG :=
+${RPICONFIG}
+
+dtoverlay=vc4-fkms-v3d,cma-128
+endef
+
+.PHONY: _debconf_selections _raspberry_config
_install: _debconf_selections
_debconf_selections: ${SYSROOT}
printf '%s\n' "$${DEBCONF}" |chroot "$${SYSROOT}" debconf-set-selections
+ifdef raspi
+ _config: _raspberry_config
+endif
+_raspberry_config: ${CFGROOT}
+ printf '%s\n' "$${RPICONFIG}" >>"$${CFGROOT}/boot/config.txt"
+
.PHONY: _timezone _locales
ifdef timezone
done
_hostname: ${CFGROOT}
- printf '%s\n' "$${hostname}" "$${CFGROOT}/etc/hostname"
+ printf '%s\n' "$${hostname}" >"$${CFGROOT}/etc/hostname"
ifdef wifi
_config: ${CFGROOT}/etc/network/interfaces.d/wifi