|
22 | 22 | - sj201-rev10-pwm-fan-overlay |
23 | 23 |
|
24 | 24 | - name: Manage sj201, buttons and PWM overlays |
25 | | - vars: |
26 | | - _is_rpi5: "{{ '-pi5' if 'Raspberry Pi 5' in ovos_installer_raspberrypi else '' }}" |
27 | 25 | ansible.builtin.lineinfile: |
28 | | - path: "{{ _boot_directory }}/config.txt" |
| 26 | + path: "{{ ovos_hardware_mark2_boot_directory }}/config.txt" |
29 | 27 | regexp: "^{{ item }}=" |
30 | | - line: "{{ item }}{{ _is_rpi5 }}" |
| 28 | + line: "{{ item }}{{ '-pi5' if 'Raspberry Pi 5' in ovos_installer_raspberrypi else '' }}" |
31 | 29 | loop: |
32 | 30 | - dtoverlay=sj201 |
33 | 31 | - dtoverlay=sj201-buttons-overlay |
34 | 32 | - dtoverlay=sj201-rev10-pwm-fan-overlay |
35 | 33 |
|
36 | 34 | - name: Build vocalfusion-soundcard.ko kernel module |
37 | 35 | ansible.builtin.shell: |
38 | | - cmd: | |
39 | | - sudo make -j {{ ansible_processor_count }} KDIR=/lib/modules/{{ ansible_kernel }}/build all |
| 36 | + cmd: > |
| 37 | + sudo make -j {{ ansible_processor_count }} |
| 38 | + KDIR=/lib/modules/{{ ansible_kernel }}/build |
| 39 | + all |
40 | 40 | executable: /bin/bash |
41 | 41 | chdir: "{{ _ovos_hardware_mark2_vocalfusion_src_path }}/driver" |
42 | 42 | changed_when: false |
|
61 | 61 | group: root |
62 | 62 | mode: "0644" |
63 | 63 |
|
64 | | -- name: Create {{ ovos_installer_user_home }}/.venvs/sj201 Python |
| 64 | +- name: Create sj201 Python virtualenv |
65 | 65 | moreati.uv.pip: |
66 | 66 | name: |
67 | 67 | - Adafruit-Blinka |
|
79 | 79 | group: root |
80 | 80 | mode: "0755" |
81 | 81 | loop: |
82 | | - - { |
83 | | - "url": "https://raw.githubusercontent.com/OpenVoiceOS/ovos-buildroot/0e464466194f58553af11c34f7435dba76ec70a3/buildroot-external/package/vocalfusion/xvf3510-flash", |
84 | | - "dest": "xvf3510-flash", |
85 | | - } |
86 | | - - { |
87 | | - "url": "https://raw.githubusercontent.com/OpenVoiceOS/ovos-buildroot/c67d7f0b7f2a3eff5faab96d6adf7495e9b48b93/buildroot-external/package/vocalfusion/app_xvf3510_int_spi_boot_v4_2_0.bin", |
88 | | - "dest": "app_xvf3510_int_spi_boot_v4_2_0.bin", |
89 | | - } |
90 | | - - { |
91 | | - "url": "https://raw.githubusercontent.com/MycroftAI/mark-ii-hardware-testing/main/utils/init_tas5806.py", |
92 | | - "dest": "init_tas5806", |
93 | | - } |
| 82 | + - url: >- |
| 83 | + https://raw.githubusercontent.com/OpenVoiceOS/ovos-buildroot/0e464466194f58553af11c34f7435dba76ec70a3/buildroot-external/package/vocalfusion/xvf3510-flash |
| 84 | + dest: xvf3510-flash |
| 85 | + - url: >- |
| 86 | + https://raw.githubusercontent.com/OpenVoiceOS/ovos-buildroot/c67d7f0b7f2a3eff5faab96d6adf7495e9b48b93/buildroot-external/package/vocalfusion/app_xvf3510_int_spi_boot_v4_2_0.bin |
| 87 | + dest: app_xvf3510_int_spi_boot_v4_2_0.bin |
| 88 | + - url: https://raw.githubusercontent.com/MycroftAI/mark-ii-hardware-testing/main/utils/init_tas5806.py |
| 89 | + dest: init_tas5806 |
94 | 90 |
|
95 | 91 | - name: Copy SJ201 systemd unit file |
96 | 92 | ansible.builtin.template: |
|
113 | 109 | force: true |
114 | 110 | scope: user |
115 | 111 |
|
116 | | -- name: Delete {{ _ovos_hardware_mark2_vocalfusion_src_path }} once compiled |
| 112 | +- name: Delete vocalfusion source once compiled |
117 | 113 | ansible.builtin.file: |
118 | 114 | path: "{{ _ovos_hardware_mark2_vocalfusion_src_path }}" |
119 | 115 | state: absent |
0 commit comments