From 362d94e8e947608a81aaf27b39f7157769d2f24b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 18 Dec 2019 14:20:24 +0100 Subject: [PATCH] retropie initial setup --- retropie.mk | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 retropie.mk diff --git a/retropie.mk b/retropie.mk new file mode 100644 index 0000000..da650d0 --- /dev/null +++ b/retropie.mk @@ -0,0 +1,96 @@ +## Choose only on of the possible target types +# image=disk.img +# squash=rootfs.squash +raspi=retropie.img + +## Image size in MB. Needs to be able to hold all software. +imagesize=3072 + +## Additional packages +packages=chromium-browser,ssh,lsb-release +packages=supertuxkart/buster,libc-bin/buster,libc6/buster,libopenal1/buster,locales/buster + +## Debian release, so far only stretch has been tested +release=stretch + +## Comma separated list of config modules from modules/ directory +modules=approx,nodm,xfce,autoresize,display_ws5inch +approxhost := localhost:9999 + +## Hostname for the generated machine +hostname=retropie + +## Root password will be salted and encrypted in image +rootpass=root + +## The corresponding .pub file for the given rootkey will be applied as +## SSH login file for the root user. +## If the pub file is not found, a new key pair will be generated +# rootkey=image_ssh + +## Comma separated list of users to be set up. +## User logins will start out with an empty password +## If the live module is in use, users will also be added to the sudo group +# users=adam,steve +users=rpi + +## Wifi configuration, if a Wifi password is given, WPA encryption will be used +## without the password, the system will try to connect to an open wifi +wifi=berlin.freifunk.net +# wifi=MyWiFi +# wifipass=P4ssW0rD + +## Timezone as offered by Debians tzdata selection +timezone=Europe/Berlin + +## Comma separated list of locales, first one will become default locale +locales=de_DE.UTF-8,en_US.UTF-8 + +## If nodm is installed, you can choose a user to login automatically +## If no user is given here, then nodm will default to root +nodm_user=rpi + +## In nodm, use full screen chromium web browser as session +# webui=http://localhost/ + +## When using NIS modules the directory server should be given +# nis_server=nismaster + +## If the approxmodule is enabled, then one (and only one) apt-source +## can be choosen to install packages from +## See modules/approx.mk if you need more flexibility +# approx=http://localhost:9000/debian + +define stk_config := + + + + + + + +endef +export stk_config + +${CFGROOT}/etc/xdg/.config/supertuxkart/0.8.2/config.xml: ${CFGROOT} + mkdir -p "$${CFGROOT}"/etc/xdg/.config/supertuxkart/0.8.2/ + printf '%s\n' "$${stk_config}" >"$${CFGROOT}"/etc/xdg/.config/supertuxkart/0.8.2/config.xml + +# _config: ${CFGROOT}/etc/xdg/.config/supertuxkart/0.8.2/config.xml + +RetroPie-Setup/: + [ ! -d "$@" ] && git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git + +${FGROOT}/opt/RetroPie-Setup/: RetroPie-Setup/ + cp -au "$<" "$@" + +_config: ${FGROOT}/opt/RetroPie-Setup/ -- 2.39.2