DPF with Max Gen
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
693B

  1. #!/bin/bash
  2. BASENAME=arm-mod-linux-gnueabihf
  3. OPTS_BASE="-O3 -mcpu=cortex-a7 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -mvectorize-with-neon-quad"
  4. OPTS_AGGRESSIVE="$OPTS_BASE -ffast-math -fno-finite-math-only -fprefetch-loop-arrays -funroll-loops -funsafe-loop-optimizations"
  5. export PATH=/opt/mod-toolchain/usr/bin/:$PATH
  6. export AR=$BASENAME-gcc
  7. export CC=$BASENAME-gcc
  8. export CPP=$BASENAME-cpp
  9. export CXX=$BASENAME-g++
  10. export LD=$BASENAME-ld
  11. export STRIP=$BASENAME-strip
  12. export CFLAGS=$OPTS_AGGRESSIVE
  13. export CXXFLAGS=$OPTS_AGGRESSIVE
  14. export LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--strip-all -Wl,--no-undefined"
  15. unset CPPFLAGS
  16. unset BASENAME
  17. unset OPTS_BASE
  18. unset OPTS_AGGRESSIVE