Skip to content

Commit 8a39a76

Browse files
authored
Merge pull request #3402 from Chips-fr/master
Add uae4arm core support
2 parents 9b9f052 + 4f46416 commit 8a39a76

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env bash
2+
3+
# This file is part of The RetroPie Project
4+
#
5+
# The RetroPie Project is the legal property of its developers, whose names are
6+
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
7+
#
8+
# See the LICENSE.md file at the top-level directory of this distribution and
9+
# at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md
10+
#
11+
12+
rp_module_id="lr-uae4arm"
13+
rp_module_desc="Uae4arm port for libretro"
14+
rp_module_help="ROM Extensions: .adf .uae .lha .ipf .iso\n\nCopy your Amigas games to $romdir/amiga."
15+
rp_module_licence="GPL2"
16+
rp_module_repo="git https://github.com/Chips-fr/uae4arm-rpi.git master"
17+
rp_module_section="exp"
18+
rp_module_flags="!all arm aarch64"
19+
20+
function depends_lr-uae4arm() {
21+
getDepends libmpg123-dev libflac-dev
22+
}
23+
24+
function sources_lr-uae4arm() {
25+
gitPullOrClone
26+
}
27+
28+
function build_lr-uae4arm() {
29+
make -f Makefile.libretro clean
30+
local params=(platform=unix)
31+
isPlatform "neon" && params=(platform=unix-neon)
32+
isPlatform "aarch64" && params=(platform=unix-aarch64)
33+
make -f Makefile.libretro "${params[@]}"
34+
md_ret_require="$md_build/uae4arm_libretro.so"
35+
}
36+
37+
function install_lr-uae4arm() {
38+
md_ret_files=(
39+
'uae4arm_libretro.so'
40+
'README.md'
41+
)
42+
}
43+
44+
function configure_lr-uae4arm() {
45+
mkRomDir "amiga"
46+
ensureSystemretroconfig "amiga"
47+
addEmulator 1 "$md_id" "amiga" "$md_inst/uae4arm_libretro.so"
48+
addSystem "amiga"
49+
}

scriptmodules/system.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ function conf_build_vars() {
121121
# add our cpu and optimisation flags
122122
__default_cflags+=" $__cpu_flags $__opt_flags"
123123
__default_cxxflags+=" $__cpu_flags $__opt_flags"
124+
__default_asflags+=" $__cpu_flags"
124125

125126
# if not overridden by user, configure our compiler flags
126127
[[ -z "$__cflags" ]] && __cflags="$__default_cflags"

0 commit comments

Comments
 (0)