@@ -1,5 +1,4 @@ | |||||
--- | --- | ||||
- name: Install base system | - name: Install base system | ||||
hosts: pisdr | hosts: pisdr | ||||
connection: chroot | connection: chroot | ||||
@@ -7,5 +6,6 @@ | |||||
- include: tasks/mount.yaml | - include: tasks/mount.yaml | ||||
roles: | roles: | ||||
- base | - base | ||||
- pisdr | |||||
post_tasks: | post_tasks: | ||||
- include: tasks/umount.yaml | - include: tasks/umount.yaml |
@@ -1,14 +1,18 @@ | |||||
--- | --- | ||||
- name: Install headless system | - name: Install headless system | ||||
hosts: pisdr | hosts: pisdr | ||||
connection: chroot | connection: chroot | ||||
pre_tasks: | pre_tasks: | ||||
- include: tasks/mount.yaml | - include: tasks/mount.yaml | ||||
- include: tasks/update-apt.yaml | |||||
roles: | roles: | ||||
- uhd | - uhd | ||||
- gnuradio | - gnuradio | ||||
- soapysdr | - soapysdr | ||||
- limesdr | - limesdr | ||||
- airspy | |||||
- airspyhf | |||||
- rtlsdr | |||||
- plutosdr | |||||
post_tasks: | post_tasks: | ||||
- include: tasks/umount.yaml | |||||
- include: tasks/umount.yaml |
@@ -1,10 +1,10 @@ | |||||
--- | --- | ||||
- name: Install desktop system | - name: Install desktop system | ||||
hosts: pisdr | hosts: pisdr | ||||
connection: chroot | connection: chroot | ||||
pre_tasks: | pre_tasks: | ||||
- include: tasks/mount.yaml | - include: tasks/mount.yaml | ||||
- include: tasks/update-apt.yaml | |||||
roles: | roles: | ||||
- desktop | - desktop | ||||
post_tasks: | post_tasks: |
@@ -1,10 +1,10 @@ | |||||
--- | --- | ||||
- name: Install GRUB patches | - name: Install GRUB patches | ||||
hosts: pisdr | hosts: pisdr | ||||
connection: chroot | connection: chroot | ||||
pre_tasks: | pre_tasks: | ||||
- include: tasks/mount.yaml | - include: tasks/mount.yaml | ||||
- include: tasks/update-apt.yaml | |||||
roles: | roles: | ||||
- grub | - grub | ||||
post_tasks: | post_tasks: | ||||
@@ -1,19 +1,13 @@ | |||||
--- | --- | ||||
- name: Install Tegra patches | - name: Install Tegra patches | ||||
hosts: pisdr | hosts: pisdr | ||||
connection: chroot | connection: chroot | ||||
pre_tasks: | pre_tasks: | ||||
- include: tasks/mount.yaml | |||||
tags: | |||||
- always | |||||
- {include: 'tasks/mount.yaml', tags: 'always'} | |||||
- {include: 'tasks/update-apt.yaml', tags: 'always'} | |||||
roles: | roles: | ||||
- {role: 'tegra_pre', tags: 'pre'} | - {role: 'tegra_pre', tags: 'pre'} | ||||
- {role: 'tegra_post', tags: 'post'} | - {role: 'tegra_post', tags: 'post'} | ||||
post_tasks: | post_tasks: | ||||
- include: tasks/cleanup.yaml | |||||
tags: | |||||
- post | |||||
- include: tasks/umount.yaml | |||||
tags: | |||||
- always | |||||
- {include: 'tasks/cleanup.yaml', tags: 'post'} | |||||
- {include: 'tasks/umount.yaml', tags: 'always'} |
@@ -1,5 +1,4 @@ | |||||
--- | --- | ||||
user: | user: | ||||
shell: /bin/bash | shell: /bin/bash | ||||
name: "{{ lookup('env', 'PISDR_USER') }}" | name: "{{ lookup('env', 'PISDR_USER') }}" | ||||
@@ -0,0 +1,5 @@ | |||||
--- | |||||
dependencies: | |||||
- role: pisdr | |||||
- role: gnuradio | |||||
- role: soapysdr |
@@ -0,0 +1,10 @@ | |||||
--- | |||||
- name: Install Dependencies | |||||
apt: | |||||
name: "{{ item }}" | |||||
loop: | |||||
- libboost-all-dev | |||||
- libusb-1.0-0-dev | |||||
- ninja-build | |||||
- cmake | |||||
- build-essential |
@@ -0,0 +1,24 @@ | |||||
--- | |||||
- name: Git checkout | |||||
git: | |||||
repo: https://github.com/airspy/airspyone_host.git | |||||
dest: "{{ install_dir }}/Airspy" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/Airspy | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake \ | |||||
-DINSTALL_UDEV_RULES=ON ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
- name: Install UDEV Rules | |||||
shell: | | |||||
echo "/etc/udev/rules.d/52-airspy.rules" >> {{ config_dir }}/udev.paths |
@@ -0,0 +1,19 @@ | |||||
--- | |||||
- name: Git checkout | |||||
git: | |||||
repo: https://github.com/pothosware/SoapyAirspy.git | |||||
dest: "{{ install_dir }}/SoapyAirspy" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/SoapyAirspy | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs |
@@ -0,0 +1,4 @@ | |||||
--- | |||||
- include_tasks: 00_dep.yaml | |||||
- include_tasks: 01_base.yaml | |||||
- include_tasks: 02_soapy.yaml |
@@ -0,0 +1,5 @@ | |||||
--- | |||||
dependencies: | |||||
- role: pisdr | |||||
- role: gnuradio | |||||
- role: soapysdr |
@@ -0,0 +1,10 @@ | |||||
--- | |||||
- name: Install Dependencies | |||||
apt: | |||||
name: "{{ item }}" | |||||
loop: | |||||
- libboost-all-dev | |||||
- libusb-1.0-0-dev | |||||
- ninja-build | |||||
- cmake | |||||
- build-essential |
@@ -0,0 +1,24 @@ | |||||
--- | |||||
- name: Git checkout | |||||
git: | |||||
repo: https://github.com/airspy/airspyhf.git | |||||
dest: "{{ install_dir }}/AirspyHF" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/AirspyHF | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake \ | |||||
-DINSTALL_UDEV_RULES=ON ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
- name: Install UDEV Rules | |||||
shell: | | |||||
echo "/etc/udev/rules.d/52-airspyhf.rules" >> {{ config_dir }}/udev.paths |
@@ -0,0 +1,19 @@ | |||||
--- | |||||
- name: Git checkout | |||||
git: | |||||
repo: https://github.com/pothosware/SoapyAirspyHF.git | |||||
dest: "{{ install_dir }}/SoapyAirspyHF" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/SoapyAirspyHF | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs |
@@ -0,0 +1,4 @@ | |||||
--- | |||||
- include_tasks: 00_dep.yaml | |||||
- include_tasks: 01_base.yaml | |||||
- include_tasks: 02_soapy.yaml |
@@ -1,5 +1,4 @@ | |||||
--- | --- | ||||
- name: Update sources.list | - name: Update sources.list | ||||
template: | template: | ||||
src: etc/apt/sources.list | src: etc/apt/sources.list | ||||
@@ -69,42 +68,5 @@ | |||||
groups: sudo,sys,video,uucp,lp,input,audio,plugdev | groups: sudo,sys,video,uucp,lp,input,audio,plugdev | ||||
state: present | state: present | ||||
- name: Creates PiSDR directories | |||||
file: | |||||
path: "{{ item }}" | |||||
state: directory | |||||
loop: | |||||
- "{{ config_dir }}" | |||||
- "{{ install_dir }}" | |||||
- name: Update build directories | |||||
template: | |||||
src: "etc/pisdr/{{ item }}" | |||||
dest: "{{ config_dir }}/{{ item }}" | |||||
owner: root | |||||
group: root | |||||
mode: 0764 | |||||
loop: | |||||
- "build.dirs" | |||||
- "udev.paths" | |||||
- name: Update CMake optimization for ARM64 | |||||
template: | |||||
src: etc/pisdr/optimizations_arm64.cmake | |||||
dest: "{{ config_dir }}/optimizations.cmake" | |||||
owner: root | |||||
group: root | |||||
mode: 0644 | |||||
when: ansible_architecture == "aarch64" | |||||
- name: Update CMake optimization for AMD64 | |||||
template: | |||||
src: etc/pisdr/optimizations_amd64.cmake | |||||
dest: "{{ config_dir }}/optimizations.cmake" | |||||
owner: root | |||||
group: root | |||||
mode: 0644 | |||||
when: ansible_architecture == "x86_64" | |||||
- name: Ensure default multi-user target | - name: Ensure default multi-user target | ||||
shell: systemctl set-default multi-user.target | shell: systemctl set-default multi-user.target |
@@ -1,5 +1,4 @@ | |||||
--- | --- | ||||
- name: Install ubuntu desktop minimal | - name: Install ubuntu desktop minimal | ||||
apt: | apt: | ||||
name: ubuntu-desktop-minimal | name: ubuntu-desktop-minimal | ||||
@@ -0,0 +1,3 @@ | |||||
--- | |||||
dependencies: | |||||
- role: pisdr |
@@ -0,0 +1,40 @@ | |||||
--- | |||||
- name: Install Dependencies | |||||
apt: | |||||
name: "{{ item }}" | |||||
loop: | |||||
- libboost-all-dev | |||||
- swig | |||||
- libzmq3-dev | |||||
- libfftw3-dev | |||||
- libgsl-dev | |||||
- libsdl1.2-dev | |||||
- libusb-1.0-0-dev | |||||
- libasound2-dev | |||||
- portaudio19-dev | |||||
- libportaudio2 | |||||
- pulseaudio | |||||
- libjack-dev | |||||
- libgmp-dev | |||||
- libsdl1.2-dev | |||||
- liblog4cpp5-dev | |||||
- libqwt-qt5-dev | |||||
- libqt5opengl5-dev | |||||
- python3-numpy | |||||
- python3-mako | |||||
- python3-sphinx | |||||
- python3-lxml | |||||
- python3-pyqt5 | |||||
- python3-yaml | |||||
- python3-click | |||||
- python3-click-plugins | |||||
- python3-zmq | |||||
- python3-scipy | |||||
- python3-pip | |||||
- python3-gi | |||||
- python3-gi-cairo | |||||
- gobject-introspection | |||||
- gir1.2-gtk-3.0 | |||||
- ninja-build | |||||
- cmake | |||||
- build-essential |
@@ -0,0 +1,18 @@ | |||||
--- | |||||
- name: Git checkout | |||||
git: | |||||
repo: "https://github.com/gnuradio/gnuradio.git" | |||||
dest: "{{ install_dir }}/gnuradio" | |||||
version: maint-3.8 | |||||
recursive: yes | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/gnuradio | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs |
@@ -1,56 +1,3 @@ | |||||
--- | --- | ||||
- name: Install Dependencies | |||||
apt: | |||||
name: "{{ item }}" | |||||
loop: | |||||
- libboost-all-dev | |||||
- swig | |||||
- libzmq3-dev | |||||
- libfftw3-dev | |||||
- libgsl-dev | |||||
- libsdl1.2-dev | |||||
- libusb-1.0-0-dev | |||||
- libasound2-dev | |||||
- portaudio19-dev | |||||
- libportaudio2 | |||||
- pulseaudio | |||||
- libjack-dev | |||||
- libgmp-dev | |||||
- libsdl1.2-dev | |||||
- liblog4cpp5-dev | |||||
- libqwt-qt5-dev | |||||
- libqt5opengl5-dev | |||||
- python3-numpy | |||||
- python3-mako | |||||
- python3-sphinx | |||||
- python3-lxml | |||||
- python3-pyqt5 | |||||
- python3-yaml | |||||
- python3-click | |||||
- python3-click-plugins | |||||
- python3-zmq | |||||
- python3-scipy | |||||
- python3-pip | |||||
- python3-gi | |||||
- python3-gi-cairo | |||||
- gobject-introspection | |||||
- gir1.2-gtk-3.0 | |||||
- name: Git checkout | |||||
git: | |||||
repo: "https://github.com/gnuradio/gnuradio.git" | |||||
dest: "{{ install_dir }}/gnuradio" | |||||
version: maint-3.8 | |||||
recursive: yes | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/gnuradio | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
- include_tasks: 00_dep.yaml | |||||
- include_tasks: 01_base.yaml |
@@ -1,5 +1,4 @@ | |||||
--- | --- | ||||
- name: Install generic Linux kernel | - name: Install generic Linux kernel | ||||
apt: | apt: | ||||
name: linux-image-generic | name: linux-image-generic | ||||
@@ -0,0 +1,5 @@ | |||||
--- | |||||
dependencies: | |||||
- role: pisdr | |||||
- role: gnuradio | |||||
- role: soapysdr |
@@ -0,0 +1,14 @@ | |||||
--- | |||||
- name: Install Dependencies | |||||
apt: | |||||
name: "{{ item }}" | |||||
loop: | |||||
- swig | |||||
- libsqlite3-dev | |||||
- libi2c-dev | |||||
- libusb-1.0-0-dev | |||||
- libwxgtk3.0-gtk3-dev | |||||
- freeglut3-dev | |||||
- ninja-build | |||||
- cmake | |||||
- build-essential |
@@ -0,0 +1,27 @@ | |||||
--- | |||||
- name: Git checkout | |||||
git: | |||||
repo: "https://github.com/myriadrf/LimeSuite.git" | |||||
dest: "{{ install_dir }}/LimeSuite" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/LimeSuite | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake \ | |||||
-DCMAKE_CXX_FLAGS=-latomic ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
- name: Install UDEV Rules | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/LimeSuite/udev-rules | |||||
./install.sh | |||||
echo "/etc/udev/rules.d/64-limesuite.rules" >> {{ config_dir }}/udev.paths |
@@ -0,0 +1,20 @@ | |||||
--- | |||||
- name: Git checkout gr-limesdr | |||||
git: | |||||
repo: "https://github.com/myriadrf/gr-limesdr.git" | |||||
dest: "{{ install_dir }}/gr-limesdr" | |||||
version: gr-3.8 | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build gr-limesdr | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/gr-limesdr | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake \ | |||||
-DCMAKE_CXX_FLAGS=-latomic ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs |
@@ -1,57 +1,4 @@ | |||||
--- | --- | ||||
- name: Install Dependencies | |||||
apt: | |||||
name: "{{ item }}" | |||||
loop: | |||||
- swig | |||||
- libsqlite3-dev | |||||
- libi2c-dev | |||||
- libusb-1.0-0-dev | |||||
- libwxgtk3.0-gtk3-dev | |||||
- freeglut3-dev | |||||
- name: Git checkout | |||||
git: | |||||
repo: "https://github.com/myriadrf/LimeSuite.git" | |||||
dest: "{{ install_dir }}/LimeSuite" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/LimeSuite | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-latomic ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
- name: Install UDEV Rules | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/LimeSuite/udev-rules | |||||
./install.sh | |||||
echo "/etc/udev/rules.d/64-limesuite.rules" >> {{ config_dir }}/udev.paths | |||||
- name: Git checkout gr-limesdr | |||||
git: | |||||
repo: "https://github.com/myriadrf/gr-limesdr.git" | |||||
dest: "{{ install_dir }}/gr-limesdr" | |||||
version: gr-3.8 | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build gr-limesdr | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/gr-limesdr | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-latomic ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
- include_tasks: 00_dep.yaml | |||||
- include_tasks: 01_base.yaml | |||||
- include_tasks: 02_gnuradio.yaml |
@@ -0,0 +1,39 @@ | |||||
--- | |||||
- name: Creates PiSDR directories | |||||
file: | |||||
path: "{{ item }}" | |||||
state: directory | |||||
loop: | |||||
- "{{ config_dir }}" | |||||
- "{{ install_dir }}" | |||||
- name: Update build directories | |||||
template: | |||||
src: "etc/pisdr/{{ item }}" | |||||
dest: "{{ config_dir }}/{{ item }}" | |||||
owner: root | |||||
group: root | |||||
mode: 0764 | |||||
loop: | |||||
- "build.dirs" | |||||
- "udev.paths" | |||||
- name: Update CMake optimization for ARM64 | |||||
template: | |||||
src: etc/pisdr/optimizations_arm64.cmake | |||||
dest: "{{ config_dir }}/optimizations.cmake" | |||||
owner: root | |||||
group: root | |||||
mode: 0644 | |||||
force: no | |||||
when: ansible_architecture == "aarch64" | |||||
- name: Update CMake optimization for AMD64 | |||||
template: | |||||
src: etc/pisdr/optimizations_amd64.cmake | |||||
dest: "{{ config_dir }}/optimizations.cmake" | |||||
owner: root | |||||
group: root | |||||
mode: 0644 | |||||
force: no | |||||
when: ansible_architecture == "x86_64" |
@@ -0,0 +1,5 @@ | |||||
--- | |||||
dependencies: | |||||
- role: pisdr | |||||
- role: gnuradio | |||||
- role: soapysdr |
@@ -0,0 +1,16 @@ | |||||
--- | |||||
- name: Install Dependencies | |||||
apt: | |||||
name: "{{ item }}" | |||||
loop: | |||||
- libusb-1.0-0-dev | |||||
- ninja-build | |||||
- cmake | |||||
- build-essential | |||||
- libxml2-dev | |||||
- bison | |||||
- flex | |||||
- libcdk5-dev | |||||
- libaio-dev | |||||
- libserialport-dev | |||||
- libavahi-client-dev |
@@ -0,0 +1,43 @@ | |||||
--- | |||||
- name: Git checkout libiio | |||||
git: | |||||
repo: https://github.com/analogdevicesinc/libiio | |||||
dest: "{{ install_dir }}/libiio" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/libiio | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake \ | |||||
-DINSTALL_UDEV_RULES=ON ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
- name: Git checkout | |||||
git: | |||||
repo: https://github.com/analogdevicesinc/libad9361-iio | |||||
dest: "{{ install_dir }}/libad9361-iio" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/libad9361-iio | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
- name: Install UDEV Rules | |||||
shell: | | |||||
echo "/lib/udev/rules.d/90-libiio.rules" >> {{ config_dir }}/udev.paths |
@@ -0,0 +1,20 @@ | |||||
--- | |||||
- name: Git checkout | |||||
git: | |||||
repo: https://github.com/pothosware/SoapyPlutoSDR.git | |||||
dest: "{{ install_dir }}/SoapyPlutoSDR" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/SoapyPlutoSDR | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake \ | |||||
-DCMAKE_CXX_FLAGS=-latomic ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs |
@@ -0,0 +1,19 @@ | |||||
--- | |||||
- name: Git checkout | |||||
git: | |||||
repo: https://github.com/analogdevicesinc/gr-iio | |||||
dest: "{{ install_dir }}/gr-iio" | |||||
version: upgrade-3.8 | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/gr-iio | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs |
@@ -0,0 +1,5 @@ | |||||
--- | |||||
- include_tasks: 00_dep.yaml | |||||
- include_tasks: 01_base.yaml | |||||
- include_tasks: 02_soapy.yaml | |||||
- include_tasks: 03_gnuradio.yaml |
@@ -0,0 +1,5 @@ | |||||
--- | |||||
dependencies: | |||||
- role: pisdr | |||||
- role: gnuradio | |||||
- role: soapysdr |
@@ -0,0 +1,10 @@ | |||||
--- | |||||
- name: Install Dependencies | |||||
apt: | |||||
name: "{{ item }}" | |||||
loop: | |||||
- libboost-all-dev | |||||
- libusb-1.0-0-dev | |||||
- ninja-build | |||||
- cmake | |||||
- build-essential |
@@ -0,0 +1,24 @@ | |||||
--- | |||||
- name: Git checkout | |||||
git: | |||||
repo: https://github.com/osmocom/rtl-sdr | |||||
dest: "{{ install_dir }}/rtl-sdr" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/rtl-sdr | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake \ | |||||
-DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
- name: Install UDEV Rules | |||||
shell: | | |||||
echo "/etc/udev/rules.d/rtl-sdr.rules" >> {{ config_dir }}/udev.paths |
@@ -0,0 +1,20 @@ | |||||
--- | |||||
- name: Git checkout | |||||
git: | |||||
repo: https://github.com/pothosware/SoapyRTLSDR.git | |||||
dest: "{{ install_dir }}/SoapyRTLSDR" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/SoapyRTLSDR | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake \ | |||||
-DCMAKE_CXX_FLAGS=-latomic ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs |
@@ -0,0 +1,4 @@ | |||||
--- | |||||
- include_tasks: 00_dep.yaml | |||||
- include_tasks: 01_base.yaml | |||||
- include_tasks: 02_soapy.yaml |
@@ -0,0 +1,4 @@ | |||||
--- | |||||
dependencies: | |||||
- role: pisdr | |||||
- role: gnuradio |
@@ -0,0 +1,13 @@ | |||||
--- | |||||
- name: Install Dependencies | |||||
apt: | |||||
name: "{{ item }}" | |||||
loop: | |||||
- swig | |||||
- avahi-daemon | |||||
- libavahi-client-dev | |||||
- libusb-1.0-0-dev | |||||
- python3-dev | |||||
- ninja-build | |||||
- cmake | |||||
- build-essential |
@@ -0,0 +1,19 @@ | |||||
--- | |||||
- name: Git checkout SoapySDR | |||||
git: | |||||
repo: "https://github.com/pothosware/SoapySDR.git" | |||||
dest: "{{ install_dir }}/SoapySDR" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build SoapySDR | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/SoapySDR | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs |
@@ -0,0 +1,19 @@ | |||||
--- | |||||
- name: Git checkout SoapySDR Remote | |||||
git: | |||||
repo: "https://github.com/pothosware/SoapyRemote.git" | |||||
dest: "{{ install_dir }}/SoapyRemote" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build SoapySDR Remote | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/SoapyRemote | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs |
@@ -0,0 +1,19 @@ | |||||
--- | |||||
- name: Git checkout gr-soapy | |||||
git: | |||||
repo: "https://gitlab.com/librespacefoundation/gr-soapy.git" | |||||
dest: "{{ install_dir }}/gr-soapy" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build gr-soapy | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/gr-soapy | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs |
@@ -1,68 +1,5 @@ | |||||
--- | --- | ||||
- name: Install Dependencies | |||||
apt: | |||||
name: "{{ item }}" | |||||
loop: | |||||
- swig | |||||
- avahi-daemon | |||||
- libavahi-client-dev | |||||
- libusb-1.0-0-dev | |||||
- python3-dev | |||||
- name: Git checkout SoapySDR | |||||
git: | |||||
repo: "https://github.com/pothosware/SoapySDR.git" | |||||
dest: "{{ install_dir }}/SoapySDR" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build SoapySDR | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/SoapySDR | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
- name: Git checkout SoapySDR Remote | |||||
git: | |||||
repo: "https://github.com/pothosware/SoapyRemote.git" | |||||
dest: "{{ install_dir }}/SoapyRemote" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build SoapySDR Remote | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/SoapyRemote | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
- name: Git checkout gr-soapy | |||||
git: | |||||
repo: "https://gitlab.com/librespacefoundation/gr-soapy.git" | |||||
dest: "{{ install_dir }}/gr-soapy" | |||||
version: master | |||||
recursive: yes | |||||
depth: 1 | |||||
- name: Build gr-soapy | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/gr-soapy | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release ../ | |||||
ninja install | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
- include_tasks: 00_dep.yaml | |||||
- include_tasks: 01_base.yaml | |||||
- include_tasks: 02_remote.yaml | |||||
- include_tasks: 03_gnuradio.yaml |
@@ -1,5 +1,4 @@ | |||||
--- | --- | ||||
- name: Hold modules | - name: Hold modules | ||||
ignore_errors: yes | ignore_errors: yes | ||||
shell: "apt-mark hold {{ item }}" | shell: "apt-mark hold {{ item }}" | ||||
@@ -1,5 +1,4 @@ | |||||
--- | --- | ||||
- name: Install dependencies | - name: Install dependencies | ||||
apt: | apt: | ||||
name: "{{ item }}" | name: "{{ item }}" | ||||
@@ -0,0 +1,3 @@ | |||||
--- | |||||
dependencies: | |||||
- role: pisdr |
@@ -0,0 +1,11 @@ | |||||
--- | |||||
- name: Install Dependencies | |||||
apt: | |||||
name: "{{ item }}" | |||||
loop: | |||||
- libboost-all-dev | |||||
- libusb-1.0-0-dev | |||||
- python3-mako | |||||
- ninja-build | |||||
- cmake | |||||
- build-essential |
@@ -0,0 +1,21 @@ | |||||
--- | |||||
- name: Git checkout | |||||
git: | |||||
repo: "https://github.com/EttusResearch/uhd.git" | |||||
dest: "{{ install_dir }}/uhd" | |||||
version: UHD-3.15.LTS | |||||
recursive: yes | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/uhd/host | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake ../ | |||||
ninja install | |||||
cp /usr/local/lib/uhd/utils/uhd-usrp.rules /etc/udev/rules.d/ | |||||
uhd_images_downloader | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
echo "/etc/udev/rules.d/uhd-usrp.rules" >> {{ config_dir }}/udev.paths |
@@ -1,30 +1,3 @@ | |||||
--- | --- | ||||
- name: Install Dependencies | |||||
apt: | |||||
name: "{{ item }}" | |||||
loop: | |||||
- libboost-all-dev | |||||
- libusb-1.0-0-dev | |||||
- python3-mako | |||||
- name: Git checkout | |||||
git: | |||||
repo: "https://github.com/EttusResearch/uhd.git" | |||||
dest: "{{ install_dir }}/uhd" | |||||
version: UHD-3.15.LTS | |||||
recursive: yes | |||||
- name: Build | |||||
shell: | | |||||
set -e | |||||
cd {{ install_dir }}/uhd/host | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/etc/pisdr/optimizations.cmake ../ | |||||
ninja install | |||||
cp /usr/local/lib/uhd/utils/uhd-usrp.rules /etc/udev/rules.d/ | |||||
uhd_images_downloader | |||||
ldconfig | |||||
echo "$(pwd)" >> {{ config_dir }}/build.dirs | |||||
echo "/etc/udev/rules.d/uhd-usrp.rules" >> {{ config_dir }}/udev.paths | |||||
- include_tasks: 00_dep.yaml | |||||
- include_tasks: 01_base.yaml |
@@ -0,0 +1,14 @@ | |||||
--- | |||||
- name: Install Standalone Application | |||||
hosts: 127.0.0.1 | |||||
connection: local | |||||
vars: | |||||
PISDR_USER: luigi | |||||
pre_tasks: | |||||
- {include: 'tasks/mount.yaml', tags: 'always'} | |||||
- {include: 'tasks/update-apt.yaml', tags: 'always'} | |||||
roles: | |||||
- {role: 'uhd', tags: 'uhd'} | |||||
- {role: 'gnuradio', tags: 'gnuradio'} | |||||
- {role: 'soapysdr', tags: 'soapysdr'} | |||||
- {role: 'limesdr', tags: 'limesdr'} |
@@ -1,5 +1,4 @@ | |||||
--- | --- | ||||
- name: Clean apt cache | - name: Clean apt cache | ||||
command: apt clean | command: apt clean | ||||
become: yes | become: yes | ||||
@@ -1,5 +1,4 @@ | |||||
--- | --- | ||||
- name: Mount pseudo filesystems | - name: Mount pseudo filesystems | ||||
connection: local | connection: local | ||||
shell: mount -o bind '{{ item }}' '{{ lookup('env', 'ANSIBLE_ROOTFS_DIR') }}{{ item }}' | shell: mount -o bind '{{ item }}' '{{ lookup('env', 'ANSIBLE_ROOTFS_DIR') }}{{ item }}' | ||||
@@ -1,5 +1,4 @@ | |||||
--- | --- | ||||
- name: Umount pseudo filesystems | - name: Umount pseudo filesystems | ||||
connection: local | connection: local | ||||
shell: umount -l '{{ lookup('env', 'ANSIBLE_ROOTFS_DIR') }}{{ item }}' | shell: umount -l '{{ lookup('env', 'ANSIBLE_ROOTFS_DIR') }}{{ item }}' | ||||
@@ -0,0 +1,4 @@ | |||||
--- | |||||
- name: Update apt packages | |||||
apt: | |||||
update_cache: yes |
@@ -42,13 +42,13 @@ printf "(OK)\n" | |||||
############################################################## | ############################################################## | ||||
#### Phase 00 | #### Phase 00 | ||||
#( $TARGET/build_base.sh ) | |||||
( $TARGET/build_base.sh ) | |||||
#### Phase 01 | #### Phase 01 | ||||
#( $TARGET/build_headless.sh ) | |||||
( $TARGET/build_headless.sh ) | |||||
#### Phase 02 | #### Phase 02 | ||||
#( $TARGET/build_desktop.sh ) | |||||
( $TARGET/build_desktop.sh ) | |||||
#### Phase 03 | #### Phase 03 | ||||
if [[ "$PISDR_ARCH" == "arm64" ]]; then | if [[ "$PISDR_ARCH" == "arm64" ]]; then | ||||