Configure the ARM compiler to default to Cortex-A8

Ideally, we would only need to set this in build/jam/board/*, but the
flags set there are not passed to the build of packages. The default is
using some early ARM variant, for which gcc lacks some more atomic
operations and emits calls to helper functions we don't implement.

Setting the default architecture avoids this, as all packages will now
be built to target the Cortex-A8.

Also set the proper VFP version in BeagleBoard config file.

Note this breaks the Verdex and Pi builds, but ARMv7 is what we should
focus on for now. We can try to make older archs work after finishing
the m68k port.
This commit is contained in:
PulkoMandy
2014-04-22 09:49:32 +02:00
parent f35543f6bd
commit 574dbabb00
2 changed files with 8 additions and 5 deletions
+3 -3
View File
@@ -63,8 +63,8 @@ HAIKU_BOARD_SDIMAGE_FILES =
#
HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH)
+= -mcpu=cortex-a8 -mfpu=vfp -mfloat-abi=hard ;
+= -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard ;
HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH)
+= -mcpu=cortex-a8 -mfpu=vfp -mfloat-abi=hard ;
+= -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard ;
HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH)
+= -mcpu=cortex-a8 -mfpu=vfp -mfloat-abi=hard ;
+= -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard ;
+5 -2
View File
@@ -34,8 +34,11 @@ m68k-*)
;;
arm-*)
# Multilib creates a lot of confusion as the wrong libs end up being linked.
binutilsConfigureArgs="--disable-multilib --with-float=hard"
gccConfigureArgs="--disable-multilib --with-float=hard"
# For now, target Cortex-A8 devices.
binutilsConfigureArgs="--disable-multilib --with-float=hard
--with-cpu=cortex-a8 --with-arch=armv7-a --with-fpu=vfpv3"
gccConfigureArgs="--disable-multilib --with-float=hard
--with-cpu=cortex-a8 --with-arch=armv7-a --with-fpu=vfpv3"
;;
*)
binutilsConfigureArgs="--disable-multilib"