Skip to content

Commit

Permalink
lr-pcsx-rearmed - fix build by using libretro makefile directly
Browse files Browse the repository at this point in the history
* After upstream commit b26afb9 the build broke because of the
  configure script incorrectly trying to always build `gpu_unai.so`
* Instead use the libretro makefile directly and set `platform` as
  done in other cores in RetroPie
* For non-RPI2/3 devices, use `arm` and `neon` flags to set platform
* For none of the above, use `unix` as fallback platform
* The built core is now correctly named: `pcsx_rearmed_libretro.so`
  • Loading branch information
hhromic committed Mar 18, 2019
1 parent 5d5014a commit f9c26d3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions scriptmodules/libretrocores/lr-pcsx-rearmed.sh
Expand Up @@ -26,22 +26,25 @@ function sources_lr-pcsx-rearmed() {
}

function build_lr-pcsx-rearmed() {
if isPlatform "neon"; then
./configure --platform=libretro --enable-neon
local platform
if isPlatform "rpi2" || isPlatform "rpi3"; then
platform="$__platform"
else
./configure --platform=libretro --disable-neon
isPlatform "arm" && platform+="armv"
isPlatform "neon" && platform+="neon"
fi
make clean
make
md_ret_require="$md_build/libretro.so"
[[ -z "$platform" ]] && platform="unix"
make -f Makefile.libretro clean
make -f Makefile.libretro platform="$platform"
md_ret_require="$md_build/pcsx_rearmed_libretro.so"
}

function install_lr-pcsx-rearmed() {
md_ret_files=(
'AUTHORS'
'ChangeLog.df'
'COPYING'
'libretro.so'
'pcsx_rearmed_libretro.so'
'NEWS'
'README.md'
'readme.txt'
Expand All @@ -52,6 +55,6 @@ function configure_lr-pcsx-rearmed() {
mkRomDir "psx"
ensureSystemretroconfig "psx"

addEmulator 1 "$md_id" "psx" "$md_inst/libretro.so"
addEmulator 1 "$md_id" "psx" "$md_inst/pcsx_rearmed_libretro.so"
addSystem "psx"
}

0 comments on commit f9c26d3

Please sign in to comment.