X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=modules%2Fdefault.mk;h=ceb91ff07aee2c7f856a7a62c874991d7a25cffb;hb=2ab18f465bb026cdde2164cc37667d02f177c7a0;hp=171f531e6a51e483e940edddb647d99aab6404f1;hpb=e133b5db92164c4351229424ae40cf158a9b1e1c;p=blast diff --git a/modules/default.mk b/modules/default.mk index 171f531..ceb91ff 100644 --- a/modules/default.mk +++ b/modules/default.mk @@ -15,12 +15,19 @@ ${DEBCONF} keyboard-configuration keyboard-configuration/model select Generic 105-key (Intl) PC keyboard-configuration keyboard-configuration/variant select English (US) - English (Macintosh) + +console-setup console-setup/charmap47 select UTF-8 +console-setup console-setup/codeset47 select # Latin1 and Latin5 - western Europe and Turkic languages endef +ifndef rpivmem + rpivmem := 128 +endif + define RPICONFIG := ${RPICONFIG} -dtoverlay=vc4-fkms-v3d,cma-256 +dtoverlay=vc4-fkms-v3d,cma-${rpivmem} endef .PHONY: _debconf_selections _raspberry_config _keyboard @@ -43,8 +50,8 @@ _raspberry_config: ${CFGROOT} _raspberry_initrd: ${CFGROOT} printf '${fstype}\n' >>"$${CFGROOT}/etc/initramfs-tools/modules" - k="${kernel}"; \ - [ "$$k" ] || k="$$(echo "$${CFGROOT}"/lib/modules/*-v7+)"; \ + k="$$(printf '%s\n' "$${CFGROOT}"/lib/modules/* |sed 's;^.*/;;; /-/d')"; \ + [ "${kernel}" ] && k="${kernel}"; \ chroot $${CFGROOT} update-initramfs -c -k "$${k##*/}"; \ printf 'initramfs initrd.img-%s\n' "$${k##*/}" >>"$${CFGROOT}/boot/config.txt"