Skip to content

Commit 4f3cb69

Browse files
authored
Merge pull request #3945 from cmitu/amiberry-build-update
amiberry: update build/configuration
2 parents 6601234 + a1878ec commit 4f3cb69

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

scriptmodules/emulators/amiberry.sh

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function _get_branch_amiberry() {
3232
if isPlatform "dispmanx"; then
3333
echo "v5.7.1"
3434
elif isPlatform "x86"; then
35-
echo "v6.3.3"
35+
echo "preview-v6.3.3"
3636
else
3737
echo "v5.7.2"
3838
fi
@@ -69,7 +69,9 @@ function depends_amiberry() {
6969

7070
function sources_amiberry() {
7171
gitPullOrClone
72-
applyPatch "$md_data/01_preserve_env.diff"
72+
if ! isPlatform "x86"; then
73+
applyPatch "$md_data/01_preserve_env.diff"
74+
fi
7375
# Dispmanx is locked on v5.7.1, apply some critical fixes on top of it
7476
if isPlatform "dispmanx"; then
7577
applyPatch "$md_data/02_fix_uae_config_load.diff"
@@ -86,6 +88,7 @@ function build_amiberry() {
8688
./configure
8789
make clean
8890
make
91+
cp "*capsimg.so" "$md_build/plugins"
8992
cd "$md_build"
9093
make clean
9194
make PLATFORM="$platform" CPUFLAGS="$__cpu_flags"
@@ -97,7 +100,7 @@ function install_amiberry() {
97100
'abr'
98101
'amiberry'
99102
'data'
100-
'external/capsimg/capsimg.so'
103+
'plugins'
101104
'kickstarts'
102105
)
103106

@@ -127,6 +130,15 @@ function configure_amiberry() {
127130
moveConfigDir "$md_inst/$dir" "$md_conf_root/amiga/amiberry/$dir"
128131
done
129132

133+
# set various media paths to the 'amiga' rom folder
134+
if [ -f "$md_inst/conf/amiberry.conf" ]; then
135+
iniConfig "=" "" "$md_inst/conf/amiberry.conf"
136+
iniSet "floppy_path" "$romdir/amiga"
137+
iniSet "harddrive_path" "$romdir/amiga"
138+
iniSet "cdrom_path" "$romdir/amiga"
139+
iniSet "lha_path" "$romdir/amiga"
140+
fi
141+
130142
# check for cd32.nvr and move it to $md_conf_root/amiga/amiberry/nvram
131143
if [[ -f "$md_conf_root/amiga/amiberry/cd32.nvr" ]]; then
132144
mv "$md_conf_root/amiga/amiberry/cd32.nvr" "$md_conf_root/amiga/amiberry/nvram/"

0 commit comments

Comments
 (0)