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:
@@ -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 ;
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user