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