Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions tasks/install_freedv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,18 @@
register: result
until: result.failed == false

- name: Build freedv-gui Binaries
- name: Build freedv-gui Binaries (not 32-bit ARM)
when: ansible_architecture != "armhf" and ansible_architecture != "armv7l"
command: ./build_linux.sh pulseaudio
args:
chdir: /home/{{ ham_user }}/hamradio/freedv-gui

- name: Build freedv-gui Binaries (32-bit ARM)
when: ansible_architecture == "armhf" or ansible_architecture == "armv7l"
command: LPCNET_DISABLE=1 ./build_linux.sh pulseaudio
args:
chdir: /home/{{ ham_user }}/hamradio/freedv-gui

- name: Install freedv-gui
become: yes
command: make install
Expand Down Expand Up @@ -138,23 +145,28 @@
delay: 30
register: result
until: result.failed == false
when: ansible_architecture != "armhf" and ansible_architecture != "armv7l"

- name: Create directory LPCNet/build
when: ansible_architecture != "armhf" and ansible_architecture != "armv7l"
file:
path: /home/{{ ham_user }}/hamradio/LPCNet/build
state: directory

- name: Build LPCNet CMakeFiles
when: ansible_architecture != "armhf" and ansible_architecture != "armv7l"
command: cmake ..
args:
chdir: /home/{{ ham_user }}/hamradio/LPCNet/build

- name: Build LPCNet
when: ansible_architecture != "armhf" and ansible_architecture != "armv7l"
command: make
args:
chdir: /home/{{ ham_user }}/hamradio/LPCNet/build

- name: Install LPCNet
when: ansible_architecture != "armhf" and ansible_architecture != "armv7l"
become: yes
command: make install
args:
Expand All @@ -174,11 +186,18 @@
path: /home/{{ ham_user }}/hamradio/codec2/build
state: directory

- name: Build Codec2 CMakeFiles
- name: Build Codec2 CMakeFiles (not 32-bit ARM)
when: ansible_architecture != "armhf" and ansible_architecture != "armv7l"
command: cmake -Wno-dev -DLPCNET_BUILD_DIR=/home/{{ ham_user }}/hamradio/LPCNet/build ..
args:
chdir: /home/{{ ham_user }}/hamradio/codec2/build

- name: Build Codec2 CMakeFiles (32-bit ARM)
when: ansible_architecture == "armhf" or ansible_architecture == "armv7l"
command: cmake -Wno-dev ..
args:
chdir: /home/{{ ham_user }}/hamradio/codec2/build

- name: Build Codec2
command: make
args:
Expand All @@ -195,6 +214,7 @@
command: ldconfig

- name: Remove LPCNet build directory
when: ansible_architecture != "armhf" and ansible_architecture != "armv7l"
file:
path: /home/{{ ham_user }}/hamradio/LPCNet
state: absent
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
### DJS Website gone - import_playbook: install_twclock.yml
### DJS Website gone - import_playbook: install_twhamqth.yml
- import_playbook: install_wxtoimg.yml
### Build broken under Bookworm - import_playbook: install_freedv.yml
- import_playbook: install_freedv.yml
### Build broken under Bookworm - import_playbook: install_dump1090.yml
- import_playbook: install_acarsdec.yml
- import_playbook: install_voacapl.yml
Expand Down