瀏覽代碼

GR 3.8, UHD (experimental), Ninja builder

pull/31/head
Luigi Cruz 4 年之前
父節點
當前提交
7e7fe38f32
共有 45 個文件被更改,包括 186 次插入162 次删除
  1. +14
    -10
      builder/build.sh
  2. +6
    -1
      builder/stage4/04-pisdr-system/00-packages
  3. +18
    -0
      builder/stage4/04-pisdr-system/03-run.sh
  4. +6
    -0
      builder/stage4/04-pisdr-system/patch/ninja.patch
  5. +0
    -29
      builder/stage4/05-pisdr-gnuradio/00-packages-nr
  6. +0
    -35
      builder/stage4/05-pisdr-gnuradio/00-run.sh
  7. +3
    -0
      builder/stage4/05-pisdr-uhd/00-packages-nr
  8. +21
    -0
      builder/stage4/05-pisdr-uhd/00-run.sh
  9. +32
    -0
      builder/stage4/06-pisdr-gnuradio/00-packages-nr
  10. +20
    -0
      builder/stage4/06-pisdr-gnuradio/00-run.sh
  11. +0
    -3
      builder/stage4/07-pisdr-limesdr/00-packages-nr
  12. +2
    -2
      builder/stage4/07-pisdr-limesdr/00-run.sh
  13. +3
    -2
      builder/stage4/07-pisdr-limesdr/01-run.sh
  14. +2
    -2
      builder/stage4/08-pisdr-airspy/00-run.sh
  15. +3
    -5
      builder/stage4/08-pisdr-airspy/01-run.sh
  16. +3
    -5
      builder/stage4/08-pisdr-airspy/02-run.sh
  17. +3
    -5
      builder/stage4/08-pisdr-airspy/03-run.sh
  18. +2
    -2
      builder/stage4/09-pisdr-rtlsdr/00-run.sh
  19. +2
    -2
      builder/stage4/09-pisdr-rtlsdr/01-run.sh
  20. +0
    -1
      builder/stage4/10-pisdr-plutosdr/00-packages-nr
  21. +2
    -2
      builder/stage4/10-pisdr-plutosdr/00-run.sh
  22. +2
    -2
      builder/stage4/10-pisdr-plutosdr/01-run.sh
  23. +3
    -2
      builder/stage4/10-pisdr-plutosdr/02-run.sh
  24. +2
    -2
      builder/stage4/10-pisdr-plutosdr/03-run.sh
  25. +2
    -2
      builder/stage4/11-pisdr-hackrf/00-run.sh
  26. +2
    -2
      builder/stage4/11-pisdr-hackrf/01-run.sh
  27. +3
    -4
      builder/stage4/12-pisdr-osmocom/00-run.sh
  28. +0
    -4
      builder/stage4/13-pisdr-gqrx/00-packages-nr
  29. +3
    -3
      builder/stage4/13-pisdr-gqrx/00-run.sh
  30. +2
    -2
      builder/stage4/15-pisdr-rtl443/00-run.sh
  31. +0
    -4
      builder/stage4/16-pisdr-sdrangel/00-packages-nr
  32. +2
    -2
      builder/stage4/16-pisdr-sdrangel/00-run.sh
  33. +2
    -2
      builder/stage4/16-pisdr-sdrangel/01-run.sh
  34. +2
    -2
      builder/stage4/16-pisdr-sdrangel/02-run.sh
  35. +2
    -2
      builder/stage4/16-pisdr-sdrangel/03-run.sh
  36. +2
    -2
      builder/stage4/16-pisdr-sdrangel/04-run.sh
  37. +2
    -2
      builder/stage4/16-pisdr-sdrangel/05-run.sh
  38. +2
    -2
      builder/stage4/17-pisdr-libacars/00-run.sh
  39. +2
    -2
      builder/stage4/18-pisdr-acarsdec/00-run.sh
  40. +2
    -2
      builder/stage4/19-pisdr-multimonng/00-run.sh
  41. +0
    -3
      builder/stage4/23-pisdr-soapysdr/00-packages-nr
  42. +2
    -2
      builder/stage4/23-pisdr-soapysdr/01-run.sh
  43. +2
    -2
      builder/stage4/23-pisdr-soapysdr/02-run.sh
  44. +3
    -4
      builder/stage4/23-pisdr-soapysdr/03-run.sh
  45. +0
    -0
      builder/stage4/25-pisdr-virgo/00-run.sh

+ 14
- 10
builder/build.sh 查看文件

@@ -20,11 +20,13 @@ EOF
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages-nr")"
if [ -n "$PACKAGES" ]; then
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
fi
log "End ${SUB_STAGE_DIR}/${i}-packages-nr"
@@ -34,11 +36,13 @@ EOF
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")"
if [ -n "$PACKAGES" ]; then
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
fi
log "End ${SUB_STAGE_DIR}/${i}-packages"


+ 6
- 1
builder/stage4/04-pisdr-system/00-packages 查看文件

@@ -1,2 +1,7 @@
vim
tmux
tmux
cmake
build-essential
git
pkg-config
re2c

+ 18
- 0
builder/stage4/04-pisdr-system/03-run.sh 查看文件

@@ -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

+ 6
- 0
builder/stage4/04-pisdr-system/patch/ninja.patch 查看文件

@@ -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

+ 0
- 29
builder/stage4/05-pisdr-gnuradio/00-packages-nr 查看文件

@@ -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

+ 0
- 35
builder/stage4/05-pisdr-gnuradio/00-run.sh 查看文件

@@ -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


+ 3
- 0
builder/stage4/05-pisdr-uhd/00-packages-nr 查看文件

@@ -0,0 +1,3 @@
libboost-all-dev
libusb-1.0-0-dev
python3-mako

+ 21
- 0
builder/stage4/05-pisdr-uhd/00-run.sh 查看文件

@@ -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


+ 32
- 0
builder/stage4/06-pisdr-gnuradio/00-packages-nr 查看文件

@@ -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

+ 20
- 0
builder/stage4/06-pisdr-gnuradio/00-run.sh 查看文件

@@ -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


+ 0
- 3
builder/stage4/07-pisdr-limesdr/00-packages-nr 查看文件

@@ -1,7 +1,4 @@
git
g++
swig
cmake
libsqlite3-dev
libi2c-dev
libusb-1.0-0-dev


+ 2
- 2
builder/stage4/07-pisdr-limesdr/00-run.sh 查看文件

@@ -11,8 +11,8 @@ fi
cd LimeSuite
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS=-latomic ../
make -j$(nproc) install
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic ../
ninja
ldconfig

cd ../udev-rules


+ 3
- 2
builder/stage4/07-pisdr-limesdr/01-run.sh 查看文件

@@ -9,9 +9,10 @@ if [ ! -d "gr-limesdr" ]; then
fi

cd gr-limesdr
git checkout gr-3.8
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS=-latomic ../
make -j$(nproc) install
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic ../
ninja
ldconfig
EOF

+ 2
- 2
builder/stage4/08-pisdr-airspy/00-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd airspyone_host
mkdir -p build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make -j$(nproc) install
cmake -GNinja -DINSTALL_UDEV_RULES=ON ..
ninja
ldconfig
EOF

+ 3
- 5
builder/stage4/08-pisdr-airspy/01-run.sh 查看文件

@@ -11,9 +11,7 @@ fi
cd airspyhf
mkdir -p build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make -j$(nproc) install
cmake -GNinja -DINSTALL_UDEV_RULES=ON ..
ninja install
ldconfig
EOF


EOF

+ 3
- 5
builder/stage4/08-pisdr-airspy/02-run.sh 查看文件

@@ -11,9 +11,7 @@ fi
cd SoapyAirspy
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS=-latomic ../
make -j$(nproc) install
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic ..
ninja install
ldconfig
EOF


EOF

+ 3
- 5
builder/stage4/08-pisdr-airspy/03-run.sh 查看文件

@@ -11,9 +11,7 @@ fi
cd SoapyAirspyHF
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS=-latomic ../
make -j$(nproc) install
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic ..
ninja install
ldconfig
EOF


EOF

+ 2
- 2
builder/stage4/09-pisdr-rtlsdr/00-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd rtl-sdr
mkdir -p 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
EOF

+ 2
- 2
builder/stage4/09-pisdr-rtlsdr/01-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd SoapyRTLSDR
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS=-latomic ../
make -j$(nproc) install
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic ..
ninja install
ldconfig
EOF

+ 0
- 1
builder/stage4/10-pisdr-plutosdr/00-packages-nr 查看文件

@@ -2,7 +2,6 @@ libxml2-dev
bison
flex
libcdk5-dev
cmake
libaio-dev
libusb-1.0-0-dev
libserialport-dev

+ 2
- 2
builder/stage4/10-pisdr-plutosdr/00-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd libiio
mkdir -p build
cd build
cmake ../ -DINSTALL_UDEV_RULE=ON
make -j$(nproc) install
cmake -GNinja -DINSTALL_UDEV_RULE=ON ..
ninja install
ldconfig
EOF

+ 2
- 2
builder/stage4/10-pisdr-plutosdr/01-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd libad9361-iio
mkdir -p build
cd build
cmake ../ -DINSTALL_UDEV_RULE=ON
make -j$(nproc) install
cmake -GNinja -DINSTALL_UDEV_RULE=ON ..
ninja install
ldconfig
EOF

+ 3
- 2
builder/stage4/10-pisdr-plutosdr/02-run.sh 查看文件

@@ -9,9 +9,10 @@ if [ ! -d "gr-iio" ]; then
fi

cd gr-iio
git checkout upgrade-3.8
mkdir -p build
cd build
cmake ../ -DINSTALL_UDEV_RULE=ON
make -j$(nproc) install
cmake -GNinja -DINSTALL_UDEV_RULE=ON ..
ninja install
ldconfig
EOF

+ 2
- 2
builder/stage4/10-pisdr-plutosdr/03-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd SoapyPlutoSDR
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS=-latomic ../
make -j$(nproc) install
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic ..
ninja install
ldconfig
EOF

+ 2
- 2
builder/stage4/11-pisdr-hackrf/00-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd hackrf/host
mkdir -p build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make -j$(nproc) install
cmake -GNinja -DINSTALL_UDEV_RULES=ON ..
ninja install
ldconfig
EOF

+ 2
- 2
builder/stage4/11-pisdr-hackrf/01-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd SoapyHackRF
mkdir -p build
cd build
cmake -DCMAKE_CXX_FLAGS=-latomic ../
make -j$(nproc) install
cmake -GNinja -DCMAKE_CXX_FLAGS=-latomic ..
ninja install
ldconfig
EOF

+ 3
- 4
builder/stage4/12-pisdr-osmocom/00-run.sh 查看文件

@@ -9,10 +9,9 @@ if [ ! -d "gr-osmosdr" ]; then
fi

cd gr-osmosdr
git checkout gr3.7
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF
EOF

+ 0
- 4
builder/stage4/13-pisdr-gqrx/00-packages-nr 查看文件

@@ -1,7 +1,3 @@
git
cmake
g++
pkg-config
autoconf
automake
libtool


+ 3
- 3
builder/stage4/13-pisdr-gqrx/00-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd gqrx
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF
EOF

+ 2
- 2
builder/stage4/15-pisdr-rtl443/00-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd rtl_433
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF

+ 0
- 4
builder/stage4/16-pisdr-sdrangel/00-packages-nr 查看文件

@@ -1,7 +1,3 @@
git
cmake
g++
pkg-config
autoconf
automake
libtool


+ 2
- 2
builder/stage4/16-pisdr-sdrangel/00-run.sh 查看文件

@@ -12,7 +12,7 @@ cd cm256cc
git reset --hard c0e92b92aca3d1d36c990b642b937c64d363c559
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja
ldconfig
EOF

+ 2
- 2
builder/stage4/16-pisdr-sdrangel/01-run.sh 查看文件

@@ -12,7 +12,7 @@ cd mbelib
git reset --hard 9a04ed5c78176a9965f3d43f7aa1b1f5330e771f
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF

+ 2
- 2
builder/stage4/16-pisdr-sdrangel/02-run.sh 查看文件

@@ -12,7 +12,7 @@ cd serialDV
git reset --hard "v1.1.4"
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF

+ 2
- 2
builder/stage4/16-pisdr-sdrangel/03-run.sh 查看文件

@@ -12,7 +12,7 @@ cd dsdcc
git reset --hard "v1.9.0"
mkdir -p build
cd build
cmake -DUSE_MBELIB=ON ../
make -j$(nproc) install
cmake -GNinja -DUSE_MBELIB=ON ..
ninja install
ldconfig
EOF

+ 2
- 2
builder/stage4/16-pisdr-sdrangel/04-run.sh 查看文件

@@ -12,7 +12,7 @@ cd codec2
git reset --hard 76a20416d715ee06f8b36a9953506876689a3bd2
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF

+ 2
- 2
builder/stage4/16-pisdr-sdrangel/05-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd sdrangel
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF

+ 2
- 2
builder/stage4/17-pisdr-libacars/00-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd libacars
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF

+ 2
- 2
builder/stage4/18-pisdr-acarsdec/00-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd acarsdec
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF

+ 2
- 2
builder/stage4/19-pisdr-multimonng/00-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd multimon-ng
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF

builder/stage4/06-pisdr-soapysdr/00-packages-nr → builder/stage4/23-pisdr-soapysdr/00-packages-nr 查看文件

@@ -1,7 +1,4 @@
git
g++
swig
cmake
avahi-daemon
libavahi-client-dev
libusb-1.0-0-dev

builder/stage4/06-pisdr-soapysdr/01-run.sh → builder/stage4/23-pisdr-soapysdr/01-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd SoapySDR
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF

builder/stage4/06-pisdr-soapysdr/02-run.sh → builder/stage4/23-pisdr-soapysdr/02-run.sh 查看文件

@@ -11,7 +11,7 @@ fi
cd SoapyRemote
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF

builder/stage4/06-pisdr-soapysdr/03-run.sh → builder/stage4/23-pisdr-soapysdr/03-run.sh 查看文件

@@ -9,10 +9,9 @@ if [ ! -d "gr-soapy" ]; then
fi

cd gr-soapy
git checkout maint-3.7
mkdir -p build
cd build
cmake ../
make -j$(nproc) install
cmake -GNinja ..
ninja install
ldconfig
EOF
EOF

builder/stage4/23-pisdr-virgo/00-run.sh → builder/stage4/25-pisdr-virgo/00-run.sh 查看文件


Loading…
取消
儲存