Skip to content

Commit

Permalink
Update floppybridge to latest version (#1313)
Browse files Browse the repository at this point in the history
* Update FloppyBridge code to 1.6

- Updated FloppyBridge code to latest version (1.6)
- Moved floppybridge files to externals, build it as a library
- Created CMakeLists file for floppybridge

* Added floppybridge in Makefile

* Add libfloppybridge to CI and macOS packaging

* bugfix: FloppyBridge - Fixed an issue where removing a disk while the motor was switched on caused a crash, and also failed to detect a disk change

* Updated floppybridge to latest version

* Remove unused variable

* Rename Fast profile to Normal

* Minor updates

* Moved floppybridge includes under src
  • Loading branch information
midwan authored May 9, 2024
1 parent ef40417 commit f357617
Show file tree
Hide file tree
Showing 42 changed files with 1,336 additions and 591 deletions.
66 changes: 48 additions & 18 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- name: make capsimg
run: make capsimg

- name: make floppybridge
run: make floppybridge

- name: make for macOS X64
run: make -j4 PLATFORM=osx-x86

Expand Down Expand Up @@ -70,6 +73,9 @@ jobs:
- name: make capsimg
run: make capsimg

- name: make floppybridge
run: make floppybridge

- name: make for macOS M1
run: make -j4 PLATFORM=osx-m1

Expand Down Expand Up @@ -106,6 +112,7 @@ jobs:
options: -v ${{ github.workspace }}:/build
run: |
make capsimg
make floppybridge
make -j8 PLATFORM=x86-64
- name: Upload artifact
Expand All @@ -116,6 +123,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -133,7 +141,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-buster-x86_64.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-buster-x86_64.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand All @@ -156,6 +164,7 @@ jobs:
options: -v ${{ github.workspace }}:/build
run: |
make capsimg
make floppybridge
make -j8 PLATFORM=x86-64
- name: Upload artifact
Expand All @@ -166,6 +175,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -183,7 +193,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-bullseye-x86_64.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-bullseye-x86_64.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand All @@ -206,6 +216,7 @@ jobs:
options: -v ${{ github.workspace }}:/build
run: |
make capsimg
make floppybridge
make -j8 PLATFORM=x86-64
- name: Upload artifact
Expand All @@ -216,6 +227,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -233,7 +245,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-x86_64.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-x86_64.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand All @@ -253,6 +265,9 @@ jobs:
- name: make capsimg
run: make capsimg

- name: make floppybridge
run: make floppybridge

- name: build for RPI4 64-bit
run: make -j4 PLATFORM=rpi4-64-sdl2

Expand All @@ -264,6 +279,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -281,7 +297,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-manjaro-aarch64-rpi4.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-manjaro-aarch64-rpi4.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -314,6 +330,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -331,7 +348,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi5.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi5.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -365,6 +382,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -382,7 +400,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi5.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi5.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -415,6 +433,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -432,7 +451,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-buster-aarch64-rpi4.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-buster-aarch64-rpi4.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -466,6 +485,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -483,7 +503,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-buster-armhf-rpi4.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-buster-armhf-rpi4.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -516,6 +536,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -533,7 +554,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-bullseye-aarch64-rpi4.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-bullseye-aarch64-rpi4.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -567,6 +588,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -584,7 +606,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-bullseye-armhf-rpi4.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-bullseye-armhf-rpi4.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -617,6 +639,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -634,7 +657,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi4.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi4.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -668,6 +691,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -685,7 +709,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi4.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi4.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -719,6 +743,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -736,7 +761,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-buster-aarch64-rpi3.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-buster-aarch64-rpi3.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -770,6 +795,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -787,7 +813,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-buster-armhf-rpi3.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-buster-armhf-rpi3.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -821,6 +847,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -838,7 +865,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-bullseye-aarch64-rpi3.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-bullseye-aarch64-rpi3.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -872,6 +899,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -889,7 +917,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-bullseye-armhf-rpi3.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-bullseye-armhf-rpi3.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -923,6 +951,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -940,7 +969,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi3.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-aarch64-rpi3.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down Expand Up @@ -974,6 +1003,7 @@ jobs:
path: |
amiberry
capsimg.so
libfloppybridge.so
abr/**
cdroms/**
conf/**
Expand All @@ -991,7 +1021,7 @@ jobs:
- name: ZIP binaries
if: github.ref_type == 'tag'
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi3.zip amiberry capsimg.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot
run: zip -r amiberry-${{ github.ref_name }}-debian-bookworm-armhf-rpi3.zip amiberry capsimg.so libfloppybridge.so abr cdroms conf controllers data floppies harddrives kickstarts lha savestates screenshots whdboot

- name: Upload artifact
if: github.ref_type == 'tag'
Expand Down
Loading

0 comments on commit f357617

Please sign in to comment.