mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 15:48:05 -04:00
compile fixes for CI
This commit is contained in:
parent
725e007ae5
commit
3167aa9a94
15 changed files with 56 additions and 51 deletions
|
@ -1,9 +1,9 @@
|
|||
CROSS ?= arm-linux-gnueabi-
|
||||
CROSS_COMPILE ?= arm-linux-gnueabi-
|
||||
|
||||
CC = $(CROSS)gcc
|
||||
AS = $(CROSS)as
|
||||
AR = $(CROSS)ar
|
||||
TOOLCHAIN = $(notdir $(CROSS))
|
||||
CC = $(CROSS_COMPILE)gcc
|
||||
AS = $(CROSS_COMPILE)as
|
||||
AR = $(CROSS_COMPILE)ar
|
||||
TOOLCHAIN = $(notdir $(CROSS_COMPILE))
|
||||
LIBGCC ?= ${HOME}/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib/gcc/arm-open2x-linux/4.1.1/libgcc.a
|
||||
|
||||
CFLAGS += -Ipub -O2 -Wall -fstrict-aliasing -ffast-math
|
||||
|
|
|
@ -12,10 +12,16 @@
|
|||
#include <dlfcn.h>
|
||||
|
||||
#include <pico/pico_int.h>
|
||||
#include "helix/pub/mp3dec.h"
|
||||
/*#include "helix/pub/mp3dec.h"*/
|
||||
#include "mp3.h"
|
||||
|
||||
static HMP3Decoder mp3dec;
|
||||
#ifndef _MP3DEC_H
|
||||
typedef void *HMP3Decoder;
|
||||
#define ERR_MP3_INDATA_UNDERFLOW -1
|
||||
#define ERR_MP3_MAINDATA_UNDERFLOW -2
|
||||
#endif
|
||||
|
||||
static void *mp3dec;
|
||||
static unsigned char mp3_input_buffer[2 * 1024];
|
||||
|
||||
#ifdef __GP2X__
|
||||
|
|
|
@ -1,15 +1,6 @@
|
|||
# you may or may not need to change this
|
||||
#devkit_path ?= $(HOME)/opt/devkitGP2X/
|
||||
#lgcc_path = $(devkit_path)lib/gcc/arm-linux/4.0.3/
|
||||
#CROSS = $(devkit_path)bin/arm-linux-
|
||||
#devkit_path ?= $(HOME)/opt/open2x
|
||||
#lgcc_path = $(devkit_path)/gcc-4.1.1-glibc-2.3.6/lib/gcc/arm-open2x-linux/4.1.1/
|
||||
#CROSS ?= $(devkit_path)/gcc-4.1.1-glibc-2.3.6/bin/arm-open2x-linux-
|
||||
#devkit_path ?= $(HOME)/opt/arm-unknown-linux-gnu
|
||||
#lgcc_path = $(HOME)/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib/gcc/arm-open2x-linux/4.1.1/
|
||||
#CROSS ?= $(devkit_path)/bin/arm-unknown-linux-gnu-
|
||||
lgcc_path = $(HOME)/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib/gcc/arm-open2x-linux/4.1.1/
|
||||
CROSS ?= arm-linux-gnueabi-
|
||||
CROSS_COMPILE ?= arm-none-eabi-
|
||||
|
||||
# settings
|
||||
#up = 1
|
||||
|
@ -19,11 +10,11 @@ CFLAGS += -I../../common/helix/pub -I../../.. -I. -D__GP2X__ -DARM
|
|||
CFLAGS += -mcpu=arm940t -mtune=arm940t -mabi=apcs-gnu -mfloat-abi=soft -mfpu=fpa
|
||||
LDFLAGS = -static -e code940 -Ttext 0x0 -L$(lgcc_path) -lgcc
|
||||
|
||||
GCC = $(CROSS)gcc
|
||||
STRIP = $(CROSS)strip
|
||||
AS = $(CROSS)as
|
||||
LD = $(CROSS)ld
|
||||
OBJCOPY = $(CROSS)objcopy
|
||||
GCC = $(CROSS_COMPILE)gcc
|
||||
STRIP = $(CROSS_COMPILE)strip
|
||||
AS = $(CROSS_COMPILE)as
|
||||
LD = $(CROSS_COMPILE)ld
|
||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||
|
||||
vpath %.c = ../../common
|
||||
|
||||
|
@ -52,7 +43,7 @@ OBJS940 += 940init.o 940.o 940ym2612.o misc_arm.o mp3_sync.o
|
|||
OBJS940 += uClibc/memset.o uClibc/s_floor.o uClibc/e_pow.o uClibc/e_sqrt.o uClibc/s_fabs.o
|
||||
OBJS940 += uClibc/s_scalbn.o uClibc/s_copysign.o uClibc/k_sin.o uClibc/k_cos.o uClibc/s_sin.o
|
||||
OBJS940 += uClibc/e_rem_pio2.o uClibc/k_rem_pio2.o uClibc/e_log.o uClibc/wrappers.o
|
||||
LIBHELIX ?= ../../common/helix/$(notdir $(CROSS))helix_mp3.a
|
||||
LIBHELIX ?= ../../common/helix/$(notdir $(CROSS_COMPILE))helix_mp3.a
|
||||
|
||||
$(BIN) : code940.elf
|
||||
@echo ">>>" $@
|
||||
|
@ -75,7 +66,7 @@ mp3_sync.o: ../../common/mp3_sync.c
|
|||
$(GCC) $(CFLAGS) -Os -DCODE940 -c $< -o $@
|
||||
|
||||
$(LIBHELIX):
|
||||
@$(MAKE) -C ../../common/helix/ CROSS=$(CROSS)
|
||||
@$(MAKE) -C ../../common/helix/ CROSS_COMPILE=$(CROSS_COMPILE)
|
||||
|
||||
|
||||
up: $(BIN)
|
||||
|
|
BIN
platform/gp2x/code940/pico940_v3.bin
Executable file
BIN
platform/gp2x/code940/pico940_v3.bin
Executable file
Binary file not shown.
BIN
platform/gp2x/warm_2.4.25.o
Normal file
BIN
platform/gp2x/warm_2.4.25.o
Normal file
Binary file not shown.
BIN
platform/gp2x/warm_2.4.26-open2x.o
Normal file
BIN
platform/gp2x/warm_2.4.26-open2x.o
Normal file
Binary file not shown.
BIN
platform/gp2x/warm_2.6.24.ko
Normal file
BIN
platform/gp2x/warm_2.6.24.ko
Normal file
Binary file not shown.
|
@ -6,6 +6,12 @@ $(error need VER)
|
|||
endif
|
||||
endif
|
||||
|
||||
../../tools/textfilter: ../../tools/textfilter.c
|
||||
make -C ../../tools/ textfilter
|
||||
|
||||
readme.txt: ../../tools/textfilter ../base_readme.txt ../../ChangeLog
|
||||
../../tools/textfilter ../base_readme.txt $@ PSP
|
||||
|
||||
# ?
|
||||
rel: ../../EBOOT.PBP readme.txt ../game_def.cfg
|
||||
mkdir -p PicoDrive/skin/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue