Will have to define user flags for ARM systems now in libretro-config-user.sh

This commit is contained in:
twinaphex 2013-07-13 17:32:29 +02:00
parent 4c09bdde3a
commit 8006f8c0e9
2 changed files with 45 additions and 6 deletions

View File

@ -14,6 +14,24 @@ fi
echo "Compiler: $COMPILER"
platformvar=armv
if [ "$ARM_NEON"= true]; then
platformvar += -neon
fi
if [ "$CORTEX_A8"= true]; then
platformvar += -cortexa8
fi
if [ "$CORTEX_A9"= true]; then
platformvar += -cortexa9
fi
if [ "$ARM_HARDFLOAT"= true]; then
platformvar += -cortexa9
fi
if [ "$ARM_SOFTFLOAT"= true]; then
platformvar += -softfloat
fi
build_libretro_fba_full()
{
cd "$BASE_DIR"
@ -484,9 +502,9 @@ build_libretro_picodrive()
echo "=== Building Picodrive ==="
cd libretro-picodrive
if [ "$ARMV7" = true ]; then
echo "=== Building PCSX ReARMed (ARMV7 NEON) ==="
${MAKE} -f Makefile.libretro platform=arm -j$JOBS clean || die "Failed to clean Picodrive"
${MAKE} -f Makefile.libretro platform=arm -j$JOBS || die "Failed to build Picodrive"
echo "=== Building Picodrive (ARMv7) ==="
${MAKE} -f Makefile.libretro platform=$platformvar -j$JOBS clean || die "Failed to clean Picodrive"
${MAKE} -f Makefile.libretro platform=$platformvar -j$JOBS || die "Failed to build Picodrive"
else
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS clean || die "Failed to clean Picodrive"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS || die "Failed to build PCSX Picodrive"

View File

@ -1,12 +1,15 @@
#!/bin/sh
#USER DEFINES
#------------
#These options should be defined inside your own
#local libretro-config-user.sh file rather than here.
#The following below is just a sample.
if [ -f "libretro-config-user.sh" ]; then
# All your user defines (listed below) should go in this local file
. ./libretro-config-user.sh
fi
#User defines (should be defined in local libretro-config-user.sh file)
#if uncommented, will fetch repos with read+write access. Useful for committers
#export WRITERIGHTS
@ -15,3 +18,21 @@ fi
#if uncommented, will build experimental cores as well which are not yet fit for release.
#export BUILD_EXPERIMENTAL
#ARM DEFINES
#-----------
#if uncommented, will build cores with Cortex A8 compiler optimizations
#export CORTEX_A8
#if uncommented, will build cores with Cortex A9 compiler optimizations
#export CORTEX_A9
#if uncommented, will build cores with ARM hardfloat ABI
#export ARM_HARDFLOAT
#if uncommented, will build cores with ARM softfloat ABI
#export ARM_SOFTFLOAT
#if uncommented, will build cores with ARM NEON support (ARMv7+ only)
#export ARM_NEON