[armv7l/portage] split make.conf (supporting both FPU ABI)

This commit is contained in:
Fabio Erculiani 2012-02-01 14:11:24 +01:00
parent 10412ce434
commit d693f9692a
5 changed files with 23 additions and 12 deletions

View File

@ -1,3 +1,3 @@
# Enable NEON when it's possible without breaking qemu-user chroot # Enable NEON when it's possible without breaking qemu-user chroot
CFLAGS="-O2 -ftree-vectorize -pipe -march=armv7-a -mfpu=neon -mfloat-abi=hard ${GRAPHITE}" CFLAGS="-O2 -ftree-vectorize -pipe -march=armv7-a -mfpu=neon ${FPUABI} ${GRAPHITE}"
CXXFLAGS="${CFLAGS}" CXXFLAGS="${CFLAGS}"

View File

@ -1,3 +1,3 @@
# We want NEON for xbmc, and also, mfpu=vfpv3-d16 breaks compilation due to broken inline asm # We want NEON for xbmc, and also, mfpu=vfpv3-d16 breaks compilation due to broken inline asm
CFLAGS="-O2 -ftree-vectorize -pipe -march=armv7-a -mfpu=neon -mfloat-abi=hard ${GRAPHITE}" CFLAGS="-O2 -ftree-vectorize -pipe -march=armv7-a -mfpu=neon ${FPUABI} ${GRAPHITE}"
CXXFLAGS="${CFLAGS}" CXXFLAGS="${CFLAGS}"

View File

@ -1,10 +1,3 @@
# Compiler configuration
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
CFLAGS="-O2 -ftree-vectorize -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard ${GRAPHITE}"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
CHOST="armv7a-hardfloat-linux-gnueabi"
# Portage configuration # Portage configuration
ACCEPT_KEYWORDS="~arm arm" ACCEPT_KEYWORDS="~arm arm"
FEATURES="ccache distcc distcc-pump parallel-fetch protect-owned splitdebug" FEATURES="ccache distcc distcc-pump parallel-fetch protect-owned splitdebug"
@ -28,6 +21,3 @@ APACHE2_MPMS="prefork"
# Filter out crap from packages # Filter out crap from packages
INSTALL_MASK="usr/share/gtk-doc/html/*" INSTALL_MASK="usr/share/gtk-doc/html/*"
PKG_INSTALL_MASK="${INSTALL_MASK}" PKG_INSTALL_MASK="${INSTALL_MASK}"
source /var/lib/layman/make.conf

View File

@ -0,0 +1,11 @@
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
FPUABI="-mfloat-abi=hard"
CFLAGS="-O2 -ftree-vectorize -pipe -march=armv7-a -mfpu=vfpv3-d16 ${FPUABI} ${GRAPHITE}"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
CHOST="armv7a-hardfloat-linux-gnueabi"
source /etc/make.conf.common
source /var/lib/layman/make.conf

View File

@ -0,0 +1,10 @@
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
FPUABI="-mfloat-abi=softfp"
CFLAGS="-O2 -ftree-vectorize -pipe -march=armv7-a -mfpu=vfpv3-d16 ${FPUABI} ${GRAPHITE}"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
CHOST="armv7a-unknown-linux-gnueabi"
source /etc/make.conf.common
source /var/lib/layman/make.conf