From 8a7dd30ff5148e54e3c4a63c675611e557fd0851 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Paul=20H=C3=A4nsch?= <paul@plutz.net>
Date: Wed, 15 Jan 2020 15:51:33 +0100
Subject: [PATCH] Use rpiconfig from example image

---
 retropie.mk | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/retropie.mk b/retropie.mk
index a822b0d..27842cc 100644
--- a/retropie.mk
+++ b/retropie.mk
@@ -5,7 +5,7 @@ raspi=retropie.img
 
 ## Image size in MB. Needs to be able to hold all software.
 # imagesize=3072
-imagesize=2048
+imagesize=4096
 
 ## Additional packages
 # packages:=chromium-browser,ssh,lsb-release
@@ -16,7 +16,7 @@ packages=ssh lsb-release bison bluetooth build-essential cmake dialog fbi fbset
 release=stretch
 
 ## Comma separated list of config modules from modules/ directory
-modules=approx,autoresize,display_ws5inch # nodm,xfce
+modules=approx,autoresize #,display_ws5inch # nodm,xfce
 # approxhost := localhost:9999
 
 ## Hostname for the generated machine
@@ -102,3 +102,11 @@ ${CFGROOT}/etc/profile.d/retropie_autostart.sh: | _config
 			'if which emulationstation; then' '  emulationstation' \
 			'else' '  sudo /opt/RetroPie-Setup/retropie_setup.sh' 'fi' \
 		>"$@"
+
+define RPICONFIG :=
+dtparam=audio=on
+gpu_mem_256=128
+gpu_mem_512=256
+gpu_mem_1024=256
+overscan_scale=1
+endef
-- 
2.39.5