From 0cb5b61d02a2fb4dbfc0c40a63aa39d98899c77a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sun, 21 Jul 2019 16:45:14 +0200 Subject: [PATCH] introduced concept for raspberry config.txt --- modules/default.mk | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) 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 -- 2.39.2