From: Paul Hänsch Date: Sun, 21 Jul 2019 14:45:14 +0000 (+0200) Subject: introduced concept for raspberry config.txt X-Git-Url: http://git.plutz.net/?p=blast;a=commitdiff_plain;h=0cb5b61d02a2fb4dbfc0c40a63aa39d98899c77a introduced concept for raspberry config.txt --- diff --git a/modules/default.mk b/modules/default.mk index 3263440..5a21e36 100644 --- a/modules/default.mk +++ b/modules/default.mk @@ -8,19 +8,32 @@ ifdef packages 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 @@ -82,7 +95,7 @@ _users: ${CFGROOT} 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