|
|
@@ -3,33 +3,17 @@ |
|
|
|
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 |
|
|
|
if [ ! -d "uhd" ]; then |
|
|
|
git clone https://github.com/EttusResearch/uhd.git |
|
|
|
fi |
|
|
|
|
|
|
|
cd gnuradio |
|
|
|
git checkout maint-3.7 |
|
|
|
cd uhd/host |
|
|
|
git checkout UHD-3.15.LTS |
|
|
|
mkdir -p build |
|
|
|
cd build |
|
|
|
cmake -DENABLE_INTERNAL_VOLK=OFF -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python ../ |
|
|
|
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" \ |
|
|
|
-DCMAKE_BUILD_TYPE=Release ../ |
|
|
|
make -j$(nproc) install |
|
|
|
ldconfig |
|
|
|
EOF |
|
|
|
|
|
|
|
EOF |