mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 05:51:45 -09:00
The liboil Makefile will use "-mcpu=vfp" when building for ARM.
The VFP is only available for a few ARM CPUs at the moment, so this breaks the liboil build. A patch is available upstream which only enables "-mfpu=vfp" if "--enable-vfp" is given to "configure". Autotools needs to be run for liboil for this to take effect. A new configuration BR2_VFP_FLOAT is added to allow enabling vfp. If this is "yes", then "-mfpu=vfp" is added to CFLAGS.
This commit is contained in:
@@ -71,6 +71,10 @@ ifeq ($(BR2_SOFT_FLOAT),y)
|
||||
TARGET_CFLAGS+=-msoft-float
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_VFP_FLOAT),y)
|
||||
TARGET_CFLAGS+=-mfpu=vfp
|
||||
endif
|
||||
|
||||
# enable VIS for v9a and v9b
|
||||
ifeq ($(findstring y,$(BR2_sparc_v9a)$(BR2_sparc64_v9a)$(BR2_sparc_v9b)$(BR2_sparc64_v9b)),y)
|
||||
TARGET_CFLAGS+=-mvis
|
||||
|
||||
Reference in New Issue
Block a user