fix building for arm arch below armv6 (gp2x, bittboy)

This commit is contained in:
kub 2020-12-29 12:10:10 +01:00
parent 15eed40550
commit 5ab80df952
2 changed files with 4 additions and 1 deletions

View file

@ -161,7 +161,6 @@ OBJS += platform/gp2x/warm.o
USE_FRONTEND = 1 USE_FRONTEND = 1
PLATFORM_MP3 = 1 PLATFORM_MP3 = 1
PLATFORM_ZLIB = 1 PLATFORM_ZLIB = 1
HAVE_ARMv6 = 0
endif endif
ifeq "$(PLATFORM)" "libretro" ifeq "$(PLATFORM)" "libretro"
OBJS += platform/libretro/libretro.o OBJS += platform/libretro/libretro.o

4
configure vendored
View file

@ -430,6 +430,10 @@ fi
if [ "$need_zlib" = "yes" ]; then if [ "$need_zlib" = "yes" ]; then
echo "PLATFORM_ZLIB = 1" >> $config_mak echo "PLATFORM_ZLIB = 1" >> $config_mak
fi fi
if [ "$ARCH" = "arm" -a "$have_armv6" != "yes" -a "$have_armv7" != "yes" ]; then
# pass info to cyclone not to use newer arm arch instructions
echo "HAVE_ARMv6 = 0" >> $config_mak
fi
# GP2X toolchains are too old for UAL asm, # GP2X toolchains are too old for UAL asm,
# so add this here to not litter main Makefile # so add this here to not litter main Makefile