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.

23 lines
681B

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