您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324
  1. #!/bin/bash -e
  2. on_chroot << EOF
  3. mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software"
  4. cd "/home/${FIRST_USER_NAME}/PiSDR/Software"
  5. if [ ! -d "uhd" ]; then
  6. git clone --single-branch --branch UHD-3.15.LTS --depth 1 https://github.com/EttusResearch/uhd.git
  7. fi
  8. cd uhd/host
  9. mkdir -p build
  10. cd build
  11. cmake -DCMAKE_CXX_FLAGS:STRING="-march=armv6z -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -Wno-psabi" \
  12. -DCMAKE_C_FLAGS:STRING="-march=armv6z -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -Wno-psabi" \
  13. -DCMAKE_ASM_FLAGS:STRING="-march=armv6z -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard " \
  14. -GNinja -DNEON_SIMD_ENABLE=OFF -DCMAKE_BUILD_TYPE=Release ../
  15. ninja install
  16. cp /usr/local/lib/uhd/utils/uhd-usrp.rules /etc/udev/rules.d/
  17. ldconfig
  18. uhd_images_downloader
  19. cd ..
  20. rm -fr build
  21. EOF