doodlewind / MiyooSDK

🐳 Docker environment for developing Miyoo Linux apps.
24 stars 11 forks source link
docker-image gui linux linux-app miyoo retro sdl

Miyoo SDK

Docker environment for developing Miyoo Linux apps.

miyoo

Introduction

Miyoo is a handheld retro game emulator. It supports a variety of classic game emulators and indie games, which are generally based on the SDL framework. This repo provides a battery included environment for compiling graphics apps on Miyoo. A simplest demo app is also available.

Usage

Make sure you have Docker installed. Just init the environment with precompiled toolchain:

cd MiyooSDK
wget https://fe-lab.gaoding.com/miyoo/toolchain.tar.gz

docker pull debian:9
docker build -t miyoo_sdk .

Then we have the miyoo_sdk docker image ready. We can try out the toolchain in terminal now:

docker run -it --rm miyoo_sdk

Build demo app:

cd demo

# Run make inside container
docker run -d --rm -v `pwd`:/root miyoo_sdk make

This should compile the demo/demo.out output, just copy this file to SD card, and start it from the App Installer on Miyoo. For a standalone icon entry, checkout the GMenu2X documentation about using links.

For multi app projects, we can use this approach to compile them separately. The image itself always remain clean and immutable after builds, which doesn't contradict to reuse build cache in your host FS.

About Miyoo Development

This toolchain is compatible with Miyoo, PocketGO and New BittBoy handheld, whose CPU model is Allwinner F1C100S.

For app development, you don't have to build the firmware from scratch, just focus on compiling the app binary. If you are intereted in building CFW, please checkout the Miyoo and MiyooCFW project.

Credit

Toolchain courtesy of Steward 🏅