Dynamically build up ARMVERSION depending on params passed

This commit is contained in:
twinaphex 2013-07-13 18:25:03 +02:00
parent 0f5d02dde3
commit fbf62c0b08
2 changed files with 9 additions and 8 deletions

View File

@ -14,27 +14,27 @@ fi
echo "Compiler: $COMPILER"
platformvar=armv
export ARMPLATFORM=$ARMPLATFORM-armv
if [ "$ARM_NEON" ]; then
echo "=== ARM NEON opts enabled... ==="
platformvar += -neon
export ARMPLATFORM = $ARMPLATFORM-neon
fi
if [ "$CORTEX_A8" ]; then
echo "=== Cortex A8 opts enabled... ==="
platformvar += -cortexa8
export ARMPLATFORM = $ARMPLATFORM-cortexa8
fi
if [ "$CORTEX_A9" ]; then
echo "=== Cortex A9 opts enabled... ==="
platformvar += -cortexa9
export ARMPLATFORM = $ARMPLATFORM-cortexa9
fi
if [ "$ARM_HARDFLOAT" ]; then
echo "=== ARM hardfloat ABI enabled... ==="
platformvar += -hardfloat
ARMPLATFORM = $ARMPLATFORM-hardfloat
fi
if [ "$ARM_SOFTFLOAT" ]; then
echo "=== ARM softfloat ABI enabled... ==="
platformvar += -softfloat
ARMPLATFORM += ARMPLATFORM-softfloat
fi
build_libretro_fba_full()
@ -508,8 +508,8 @@ build_libretro_picodrive()
cd libretro-picodrive
if [ "$ARMV7" = true ]; then
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"
${MAKE} -f Makefile.libretro platform=$ARMPLATFORM -j$JOBS clean || die "Failed to clean Picodrive"
${MAKE} -f Makefile.libretro platform=$ARMPLATFORM -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

@ -21,6 +21,7 @@ fi
#ARM DEFINES
#-----------
export ARMPLATFORM=
#if uncommented, will build cores with Cortex A8 compiler optimizations
#export CORTEX_A8