mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
add CI for GP2X also
no helix as it has (had?) weird license IIRC
This commit is contained in:
parent
842f4e44d4
commit
8013663ec2
3 changed files with 28 additions and 3 deletions
20
.github/workflows/ci-gp2x.yml
vendored
Normal file
20
.github/workflows/ci-gp2x.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
name: CI (GP2X)
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
build-linux:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
whoami
|
||||||
|
sudo apt-get update -qq
|
||||||
|
sudo apt-get install -y wget
|
||||||
|
wget http://notaz.gp2x.de/downloads/gp2x/devkitGP2X_small.tar.xz
|
||||||
|
tar -C /tmp/ -xf devkitGP2X_small.tar.xz
|
||||||
|
- name: configure
|
||||||
|
run: DUMP_CONFIG_LOG=1 PATH=$PATH:/tmp/devkitGP2X/bin CROSS_COMPILE=arm-linux- ./configure --platform=gp2x
|
||||||
|
- name: make
|
||||||
|
run: PATH=$PATH:/tmp/devkitGP2X/bin CROSS_COMPILE=arm-linux- make PLATFORM_MP3=0
|
7
Makefile
7
Makefile
|
@ -61,14 +61,15 @@ chkCCflag = $(shell n=/dev/null; echo $(1) | tr " " "\n" | while read f; do \
|
||||||
|
|
||||||
ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","gp2x" "opendingux" "miyoo" "rpi1"))
|
ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","gp2x" "opendingux" "miyoo" "rpi1"))
|
||||||
# very small caches, avoid optimization options making the binary much bigger
|
# very small caches, avoid optimization options making the binary much bigger
|
||||||
CFLAGS += -fno-common -fno-stack-protector -finline-limit=42 -fno-unroll-loops -ffast-math
|
CFLAGS += -fno-common -finline-limit=42 -fno-unroll-loops -ffast-math
|
||||||
|
CFLAGS += $(call chkCCflag, -fno-stack-protector)
|
||||||
ifneq ($(call chkCCflag, -fipa-ra),) # gcc >= 5
|
ifneq ($(call chkCCflag, -fipa-ra),) # gcc >= 5
|
||||||
CFLAGS += $(call chkCCflag, -flto -fipa-pta -fipa-ra)
|
CFLAGS += $(call chkCCflag, -flto -fipa-pta -fipa-ra)
|
||||||
else
|
else
|
||||||
# these improve execution speed on 32bit arm/mips with gcc pre-5 toolchains
|
# these improve execution speed on 32bit arm/mips with gcc pre-5 toolchains
|
||||||
CFLAGS += -fno-ipa-cp -fno-caller-saves -fno-guess-branch-probability -fno-regmove
|
CFLAGS += -fno-caller-saves -fno-guess-branch-probability -fno-regmove
|
||||||
# very old gcc toolchains may not have these options
|
# very old gcc toolchains may not have these options
|
||||||
CFLAGS += $(call chkCCflag, -fno-tree-loop-if-convert -fipa-pta)
|
CFLAGS += $(call chkCCflag, -fno-tree-loop-if-convert -fipa-pta -fno-ipa-cp)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
#define _wfopen_s(p,m) NULL
|
#define _wfopen_s(p,m) NULL
|
||||||
#define _wfopen(p,m) NULL
|
#define _wfopen(p,m) NULL
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __GP2X__
|
||||||
|
#define mp3dec_decode _mp3dec_decode
|
||||||
|
#define mp3dec_start _mp3dec_start
|
||||||
|
#endif
|
||||||
#define DR_MP3_IMPLEMENTATION
|
#define DR_MP3_IMPLEMENTATION
|
||||||
#include "dr_libs/dr_mp3.h"
|
#include "dr_libs/dr_mp3.h"
|
||||||
#include "mp3.h"
|
#include "mp3.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue