summaryrefslogtreecommitdiffstats
path: root/package/liboil/liboil.mk
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-18 10:51:53 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-18 10:51:53 +0000
commit6da70de5034ae3933c6d072378a8860078686200 (patch)
tree13db89b68591f78d408d5af49a0e88f0cba94f22 /package/liboil/liboil.mk
parentc86f23b7708cb7eeba91a2764210277c78143dca (diff)
downloadbuildroot-novena-6da70de5034ae3933c6d072378a8860078686200.tar.gz
buildroot-novena-6da70de5034ae3933c6d072378a8860078686200.zip
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.
Diffstat (limited to 'package/liboil/liboil.mk')
-rw-r--r--package/liboil/liboil.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/liboil/liboil.mk b/package/liboil/liboil.mk
index 0d1ec8291..37970911a 100644
--- a/package/liboil/liboil.mk
+++ b/package/liboil/liboil.mk
@@ -6,7 +6,7 @@
LIBOIL_VERSION = 0.3.15
LIBOIL_SOURCE = liboil-$(LIBOIL_VERSION).tar.gz
LIBOIL_SITE = http://liboil.freedesktop.org/download
-LIBOIL_AUTORECONF = NO
+LIBOIL_AUTORECONF = YES
LIBOIL_INSTALL_STAGING = YES
LIBOIL_INSTALL_TARGET = YES
@@ -30,6 +30,10 @@ ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
LIBOIL_GLIB_DEP = libglib2
endif
+ifeq ($(BR2_VFP_FLOAT),y)
+LIBOIL_CONF_OPT+=--enable-vfp
+endif
+
LIBOIL_DEPENDENCIES = uclibc $(LIBOIL_GLIB_DEP)
$(eval $(call AUTOTARGETS,package,liboil))
@@ -37,4 +41,4 @@ $(eval $(call AUTOTARGETS,package,liboil))
$(LIBOIL_HOOK_POST_INSTALL):
# Remove useless bugreport program from the target
rm -f $(TARGET_DIR)/usr/bin/oil-bugreport
- touch $@ \ No newline at end of file
+ touch $@