Page 1 of 1

MiSTer Software AddOn Files and Folder Structure

Posted: Mon Aug 30, 2021 7:37 am
by venice
Hi@all,
I am thinking about an general folder Structure for MiSTer Software Add-On's and like know what you think about.

My Software Add-On tty2oled uses actually files in /etc/init.d/, /usr/bin/, /media/fat/tty2oledpics and a script in /media/fat/scripts/.
Some of these files needs to be re-copied after each Linux Update.
So I like to move all my AddOn Files together to an area which is a bit more persistent ;)

Here is my Idea:
-----------------------------------------------------
General Base Folder for Add-Ons:
/media/fat/addon/

Scripts which needs Auto-Start via INIT or /media/fat/linux/user-startup.sh (Examples):
/media/fat/addon/init.d/tty2oled
/media/fat/addon/init.d/tty2oled.init
/media/fat/addon/init.d/S60tty2oled

AddOn-Folder:
/media/fat/addon/[Add-On-Name]/

Scripts or Binaries in Add-On-Base Folder:
/media/fat/addon/[Add-On-Name]/tty2oled.sh

Resources in Sub-Folder:
/media/fat/addon/[Add-On-Name]/Pics/

Maybe we find something useful for other AddOn-Builders.

Cheers