build.sh 311 B

1234567891011121314
  1. #!/bin/bash
  2. _CUR_PWD=`pwd`
  3. if [ ! -d "${USER}/rpmbuild/" ]; then
  4. ln -fs "${_CUR_PWD}" ~/rpmbuild
  5. fi
  6. pushd ~/rpmbuild
  7. rpmbuild -bb --target=aarch64-himix100-linux --define "cross \"aarch64-himix100linux\"" SPECS/yolov3app.spec
  8. cd -
  9. find ~ -maxdepth 1 -name "rpmbuild" -type l -exec rm -rfv {} \;
  10. exit 0