Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please, I need help to compiling for Rpi3 platform #25

Open
lollo78 opened this issue May 31, 2016 · 0 comments
Open

Please, I need help to compiling for Rpi3 platform #25

lollo78 opened this issue May 31, 2016 · 0 comments

Comments

@lollo78
Copy link

lollo78 commented May 31, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant