libretro/stella2014-libretro

Please, I need help to compiling for Rpi3 platform

Opened this issue · 0 comments

Hi guys,
to compile retroarch and libretro core I use the LibreELEC build enviroinment with some scripts in package.mk files. So, to compile I use something like PROJECT=RPi2 ARCH=arm scripts/build stella

In one of the latest commit (024e226) you added Rpi3 platform in Makefile.
Seems so cool.

To try to understand which kink of improvements we can reach with this optimization, I edited a Stella package.mk to try to compile for rpi3:

PKG_NAME="stella"
PKG_VERSION="a3a7689"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/libretro/stella-libretro.git"
PKG_URL="https://github.com/libretro/stella-libretro/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="emulation"
PKG_SHORTDESC="Port of Stella to libretro."
PKG_LONGDESC="Stella is a multi-platform Atari 2600 VCS emulator released under the GNU General Public License (GPL)."

PKG_IS_ADDON="no"
PKG_AUTORECONF="no"

unpack() {
  tar -zxf $SOURCES/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.gz -C $BUILD
  mv $BUILD/stella-libretro* $BUILD/$PKG_NAME-$PKG_VERSION
}

make_target() {
make -f Makefile platform=rpi3
}

makeinstall_target() {
  mkdir -p $INSTALL/usr/lib/libretro
  cp stella_libretro.so $INSTALL/usr/lib/libretro/
}

but when I run compilation I receive this warning:

libretro.cxx:1:0: warning: switch -mcpu=cortex-a53 conflicts with -march=armv7ve switch
 #ifndef _MSC_VER

and

lto1: warning: switch -mcpu=cortex-a53 conflicts with -march=armv7ve switch
At the end, stella_libretro.so is created and it works fine, but how can I verify if the compiled platform is cortex-a53 (Rpi3)?

If you add this optimization also in retroarch and other cores, we can expect a performance improvement?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.