]> git.plutz.net Git - blast/commitdiff
introduced concept for raspberry config.txt
authorPaul Hänsch <paul@plutz.net>
Sun, 21 Jul 2019 14:45:14 +0000 (16:45 +0200)
committerPaul Hänsch <paul@plutz.net>
Sun, 21 Jul 2019 14:45:14 +0000 (16:45 +0200)
modules/default.mk

index 326344006abffc2bdd6497bdd9b3ed7f5cef2c42..5a21e36d22f5ab94599489f94f86ea5c751c8ab1 100644 (file)
@@ -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