makepkg-arm.conf 939 B

1234567891011121314151617181920212223242526272829
  1. #
  2. # makepkg-arm.conf
  3. #
  4. source /etc/makepkg.conf
  5. CARCH="armv7h"
  6. CHOST="armv7l-unknown-linux-gnueabihf"
  7. export PATH='/usr/local/toolchain/arm-unknown-linux-gnueabi-prefixed/bin':${PATH}
  8. export ARCH='arm'
  9. export CROSS_COMPILE='arm-linux-gnueabihf-'
  10. #-- Compiler and Linker Flags
  11. # -march (or -mcpu) builds exclusively for an architecture
  12. # -mtune optimizes for an architecture, but builds for whole processor family
  13. CPPFLAGS="-D_FORTIFY_SOURCE=2"
  14. CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
  15. CXXFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
  16. LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
  17. #-- Make Flags: change this for DistCC/SMP systems
  18. MAKEFLAGS="-j17"
  19. #-- Debugging flags
  20. DEBUG_CFLAGS="-g -fvar-tracking-assignments"
  21. DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
  22. # vim: set ft=sh ts=2 sw=2 et: