You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
615 B

  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 "volk" ]; then
  6. git clone --single-branch --branch v2.5.0 --depth 1 --recurse-submodules --shallow-submodules https://github.com/luigifcruz/volk.git
  7. fi
  8. cd volk
  9. git checkout m1fix
  10. mkdir -p build
  11. cd build
  12. cmake -DCMAKE_CXX_FLAGS:STRING="-march=armv8-a -Wno-psabi" \
  13. -DCMAKE_C_FLAGS:STRING="-march=armv8-a -Wno-psabi" \
  14. DCMAKE_ASM_FLAGS:STRING="-march=armv8-a -Wno-psabi" \
  15. -GNinja -DCMAKE_BUILD_TYPE=Release ..
  16. ninja install
  17. ldconfig
  18. cd ..
  19. rm -fr build
  20. EOF