From 6223f86897eae835caf910870d2c5a48057a2279 Mon Sep 17 00:00:00 2001 From: Luigi Cruz Date: Fri, 31 Jul 2020 01:46:13 -0300 Subject: [PATCH] Fix GNURadio Build --- builder/stage4/05-pisdr-gnuradio/00-run.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/builder/stage4/05-pisdr-gnuradio/00-run.sh b/builder/stage4/05-pisdr-gnuradio/00-run.sh index 1453ba9..fe4ff70 100755 --- a/builder/stage4/05-pisdr-gnuradio/00-run.sh +++ b/builder/stage4/05-pisdr-gnuradio/00-run.sh @@ -4,6 +4,22 @@ 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 @@ -12,7 +28,8 @@ cd gnuradio git checkout maint-3.7 mkdir -p build cd build -cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python ../ +cmake -DENABLE_INTERNAL_VOLK=OFF -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python ../ make -j$(nproc) install ldconfig EOF +