# arm ``` # # makepkg-arm.conf # make sure this is in the same dir as makepkg-arm or adjust makepkg-arm # source /etc/makepkg.conf CARCH="arm" CHOST="arm-linux-gnueabi-" export SYSROOT='/srv/data0/git/ABS/sysroot' export PATH='/srv/data0/git/ABS/toolchain/bin':${PATH} export ARCH='arm' export CROSS_COMPILE='arm-linux-gnueabi-' #-- 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=armv5te -mtune=xscale -O2 -pipe -fstack-protector --param=ssp-buffer-size=4" CXXFLAGS="-march=armv5te -mtune=xscale -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="-j5" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" # vim: set ft=sh ts=2 sw=2 et: ```