@@ -20,11 +20,13 @@ EOF | |||||
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages-nr")" | PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages-nr")" | ||||
if [ -n "$PACKAGES" ]; then | if [ -n "$PACKAGES" ]; then | ||||
on_chroot << EOF | on_chroot << EOF | ||||
apt-get -m --ignore-missing --fix-missing install --no-install-recommends -y $PACKAGES || true | |||||
sleep 25 | |||||
apt-get -m --ignore-missing --fix-missing install --no-install-recommends -y $PACKAGES || true | |||||
sleep 25 | |||||
apt-get --ignore-missing --fix-missing install --no-install-recommends -y $PACKAGES | |||||
n=0 | |||||
until [ "$n" -ge 5 ] | |||||
do | |||||
apt-get --ignore-missing --fix-missing install --no-install-recommends -y $PACKAGES && break | |||||
n=$((n+1)) | |||||
sleep 15 | |||||
done | |||||
EOF | EOF | ||||
fi | fi | ||||
log "End ${SUB_STAGE_DIR}/${i}-packages-nr" | log "End ${SUB_STAGE_DIR}/${i}-packages-nr" | ||||
@@ -34,11 +36,13 @@ EOF | |||||
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")" | PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")" | ||||
if [ -n "$PACKAGES" ]; then | if [ -n "$PACKAGES" ]; then | ||||
on_chroot << EOF | on_chroot << EOF | ||||
apt-get -m --ignore-missing --fix-missing install -y $PACKAGES || true | |||||
sleep 25 | |||||
apt-get -m --ignore-missing --fix-missing install -y $PACKAGES || true | |||||
sleep 25 | |||||
apt-get --ignore-missing --fix-missing install -y $PACKAGES | |||||
n=0 | |||||
until [ "$n" -ge 5 ] | |||||
do | |||||
apt-get --ignore-missing --fix-missing install -y $PACKAGES && break | |||||
n=$((n+1)) | |||||
sleep 15 | |||||
done | |||||
EOF | EOF | ||||
fi | fi | ||||
log "End ${SUB_STAGE_DIR}/${i}-packages" | log "End ${SUB_STAGE_DIR}/${i}-packages" | ||||
@@ -1,2 +1,7 @@ | |||||
vim | vim | ||||
tmux | |||||
tmux | |||||
cmake | |||||
build-essential | |||||
git | |||||
pkg-config | |||||
re2c |
@@ -0,0 +1,18 @@ | |||||
#!/bin/bash -e | |||||
install -m 755 patch/ninja.patch "${ROOTFS_DIR}/etc/" | |||||
on_chroot << EOF | |||||
cd "/tmp" | |||||
if [ ! -d "ninja" ]; then | |||||
git clone https://github.com/ninja-build/ninja.git | |||||
cd ninja | |||||
patch -u CMakeLists.txt -i /etc/ninja.patch | |||||
mkdir -p build | |||||
cd build | |||||
cmake -DCMAKE_BUILD_TYPE=Release .. | |||||
make -j$(nproc) install | |||||
ldconfig | |||||
fi | |||||
EOF |
@@ -0,0 +1,6 @@ | |||||
@@ -1,4 +1,4 @@ | |||||
-cmake_minimum_required(VERSION 3.15) | |||||
+cmake_minimum_required(VERSION 3.13) | |||||
project(ninja) | |||||
# --- optional link-time optimization |
@@ -1,29 +0,0 @@ | |||||
cmake | |||||
git | |||||
g++ | |||||
libboost-all-dev | |||||
swig | |||||
libzmq3-dev | |||||
libfftw3-dev | |||||
libgsl-dev | |||||
libcppunit-dev | |||||
libcomedi-dev | |||||
libqt4-opengl-dev | |||||
libqwt-dev | |||||
libsdl1.2-dev | |||||
libusb-1.0-0-dev | |||||
pkg-config | |||||
libasound2-dev | |||||
pulseaudio | |||||
libjack-dev | |||||
python-wxgtk3.0 | |||||
python-qt4 | |||||
python-gtk2 | |||||
python-qt4 | |||||
python-lxml python3-lxml | |||||
python-sip-dev python3-sip-dev | |||||
python-mako python3-mako | |||||
python-dev python3-dev | |||||
python-numpy python3-numpy | |||||
python-sphinx python3-sphinx | |||||
python-cheetah python3-cheetah |
@@ -1,35 +0,0 @@ | |||||
#!/bin/bash -e | |||||
on_chroot << EOF | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "volk" ]; then | |||||
git clone --recursive https://github.com/gnuradio/volk.git | |||||
fi | |||||
cd volk | |||||
mkdir -p build | |||||
cd build | |||||
cmake -DCMAKE_BUILD_TYPE=Release ../ | |||||
make -j$(nproc) install | |||||
ldconfig | |||||
EOF | |||||
on_chroot << EOF | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "gnuradio" ]; then | |||||
git clone --recursive https://github.com/gnuradio/gnuradio.git | |||||
fi | |||||
cd gnuradio | |||||
git checkout maint-3.7 | |||||
mkdir -p build | |||||
cd build | |||||
cmake -DENABLE_INTERNAL_VOLK=OFF -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python ../ | |||||
make -j$(nproc) install | |||||
ldconfig | |||||
EOF | |||||
@@ -0,0 +1,3 @@ | |||||
libboost-all-dev | |||||
libusb-1.0-0-dev | |||||
python3-mako |
@@ -0,0 +1,21 @@ | |||||
#!/bin/bash -e | |||||
on_chroot << EOF | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "uhd" ]; then | |||||
git clone https://github.com/EttusResearch/uhd.git | |||||
fi | |||||
cd uhd/host | |||||
mkdir -p build | |||||
cd build | |||||
cmake -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15 -Wno-psabi" \ | |||||
-DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15 -Wno-psabi" \ | |||||
-DCMAKE_ASM_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15" \ | |||||
-GNinja -DCMAKE_BUILD_TYPE=Release ../ | |||||
ninja install | |||||
ldconfig | |||||
EOF | |||||
@@ -0,0 +1,32 @@ | |||||
libboost-all-dev | |||||
swig | |||||
libzmq3-dev | |||||
libfftw3-dev | |||||
libgsl-dev | |||||
libcppunit-dev | |||||
libcomedi-dev | |||||
libqt4-opengl-dev | |||||
libqwt-dev | |||||
libsdl1.2-dev | |||||
libusb-1.0-0-dev | |||||
libasound2-dev | |||||
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-cairo |
@@ -0,0 +1,20 @@ | |||||
#!/bin/bash -e | |||||
on_chroot << EOF | |||||
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
cd "/home/${FIRST_USER_NAME}/PiSDR/Software" | |||||
if [ ! -d "gnuradio" ]; then | |||||
git clone --recursive https://github.com/gnuradio/gnuradio.git | |||||
fi | |||||
cd gnuradio | |||||
git checkout maint-3.8 | |||||
git submodule update --init --recursive | |||||
mkdir -p build | |||||
cd build | |||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../ | |||||
ninja | |||||
ldconfig | |||||
EOF | |||||
@@ -1,7 +1,4 @@ | |||||
git | |||||
g++ | |||||
swig | swig | ||||
cmake | |||||
libsqlite3-dev | libsqlite3-dev | ||||
libi2c-dev | libi2c-dev | ||||
libusb-1.0-0-dev | libusb-1.0-0-dev | ||||
@@ -11,8 +11,8 @@ fi | |||||
cd LimeSuite | cd LimeSuite | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake -DCMAKE_CXX_FLAGS=-latomic ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic ../ | |||||
ninja | |||||
ldconfig | ldconfig | ||||
cd ../udev-rules | cd ../udev-rules | ||||
@@ -9,9 +9,10 @@ if [ ! -d "gr-limesdr" ]; then | |||||
fi | fi | ||||
cd gr-limesdr | cd gr-limesdr | ||||
git checkout gr-3.8 | |||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake -DCMAKE_CXX_FLAGS=-latomic ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic ../ | |||||
ninja | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd airspyone_host | cd airspyone_host | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ -DINSTALL_UDEV_RULES=ON | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DINSTALL_UDEV_RULES=ON .. | |||||
ninja | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -11,9 +11,7 @@ fi | |||||
cd airspyhf | cd airspyhf | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ -DINSTALL_UDEV_RULES=ON | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DINSTALL_UDEV_RULES=ON .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | |||||
EOF |
@@ -11,9 +11,7 @@ fi | |||||
cd SoapyAirspy | cd SoapyAirspy | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake -DCMAKE_CXX_FLAGS=-latomic ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | |||||
EOF |
@@ -11,9 +11,7 @@ fi | |||||
cd SoapyAirspyHF | cd SoapyAirspyHF | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake -DCMAKE_CXX_FLAGS=-latomic ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | |||||
EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd rtl-sdr | cd rtl-sdr | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd SoapyRTLSDR | cd SoapyRTLSDR | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake -DCMAKE_CXX_FLAGS=-latomic ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -2,7 +2,6 @@ libxml2-dev | |||||
bison | bison | ||||
flex | flex | ||||
libcdk5-dev | libcdk5-dev | ||||
cmake | |||||
libaio-dev | libaio-dev | ||||
libusb-1.0-0-dev | libusb-1.0-0-dev | ||||
libserialport-dev | libserialport-dev |
@@ -11,7 +11,7 @@ fi | |||||
cd libiio | cd libiio | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ -DINSTALL_UDEV_RULE=ON | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DINSTALL_UDEV_RULE=ON .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd libad9361-iio | cd libad9361-iio | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ -DINSTALL_UDEV_RULE=ON | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DINSTALL_UDEV_RULE=ON .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -9,9 +9,10 @@ if [ ! -d "gr-iio" ]; then | |||||
fi | fi | ||||
cd gr-iio | cd gr-iio | ||||
git checkout upgrade-3.8 | |||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ -DINSTALL_UDEV_RULE=ON | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DINSTALL_UDEV_RULE=ON .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd SoapyPlutoSDR | cd SoapyPlutoSDR | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake -DCMAKE_CXX_FLAGS=-latomic ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd hackrf/host | cd hackrf/host | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ -DINSTALL_UDEV_RULES=ON | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DINSTALL_UDEV_RULES=ON .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd SoapyHackRF | cd SoapyHackRF | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake -DCMAKE_CXX_FLAGS=-latomic ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -9,10 +9,9 @@ if [ ! -d "gr-osmosdr" ]; then | |||||
fi | fi | ||||
cd gr-osmosdr | cd gr-osmosdr | ||||
git checkout gr3.7 | |||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | |||||
EOF |
@@ -1,7 +1,3 @@ | |||||
git | |||||
cmake | |||||
g++ | |||||
pkg-config | |||||
autoconf | autoconf | ||||
automake | automake | ||||
libtool | libtool | ||||
@@ -11,7 +11,7 @@ fi | |||||
cd gqrx | cd gqrx | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | |||||
EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd rtl_433 | cd rtl_433 | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -1,7 +1,3 @@ | |||||
git | |||||
cmake | |||||
g++ | |||||
pkg-config | |||||
autoconf | autoconf | ||||
automake | automake | ||||
libtool | libtool | ||||
@@ -12,7 +12,7 @@ cd cm256cc | |||||
git reset --hard c0e92b92aca3d1d36c990b642b937c64d363c559 | git reset --hard c0e92b92aca3d1d36c990b642b937c64d363c559 | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -12,7 +12,7 @@ cd mbelib | |||||
git reset --hard 9a04ed5c78176a9965f3d43f7aa1b1f5330e771f | git reset --hard 9a04ed5c78176a9965f3d43f7aa1b1f5330e771f | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -12,7 +12,7 @@ cd serialDV | |||||
git reset --hard "v1.1.4" | git reset --hard "v1.1.4" | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -12,7 +12,7 @@ cd dsdcc | |||||
git reset --hard "v1.9.0" | git reset --hard "v1.9.0" | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake -DUSE_MBELIB=ON ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja -DUSE_MBELIB=ON .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -12,7 +12,7 @@ cd codec2 | |||||
git reset --hard 76a20416d715ee06f8b36a9953506876689a3bd2 | git reset --hard 76a20416d715ee06f8b36a9953506876689a3bd2 | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd sdrangel | cd sdrangel | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd libacars | cd libacars | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd acarsdec | cd acarsdec | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd multimon-ng | cd multimon-ng | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -1,7 +1,4 @@ | |||||
git | |||||
g++ | |||||
swig | swig | ||||
cmake | |||||
avahi-daemon | avahi-daemon | ||||
libavahi-client-dev | libavahi-client-dev | ||||
libusb-1.0-0-dev | libusb-1.0-0-dev |
@@ -11,7 +11,7 @@ fi | |||||
cd SoapySDR | cd SoapySDR | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -11,7 +11,7 @@ fi | |||||
cd SoapyRemote | cd SoapyRemote | ||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | EOF |
@@ -9,10 +9,9 @@ if [ ! -d "gr-soapy" ]; then | |||||
fi | fi | ||||
cd gr-soapy | cd gr-soapy | ||||
git checkout maint-3.7 | |||||
mkdir -p build | mkdir -p build | ||||
cd build | cd build | ||||
cmake ../ | |||||
make -j$(nproc) install | |||||
cmake -GNinja .. | |||||
ninja install | |||||
ldconfig | ldconfig | ||||
EOF | |||||
EOF |