2003-11-01 06:34:41 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libfloat
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
LIBFLOAT_SOURCE:=libfloat_990616.orig.tar.gz
|
|
|
|
LIBFLOAT_PATCH:=libfloat_990616-3.diff.gz
|
2007-12-27 13:00:12 +01:00
|
|
|
LIBFLOAT_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/libf/libfloat
|
2006-10-01 17:17:52 +02:00
|
|
|
LIBFLOAT_CAT:=$(ZCAT)
|
2003-11-01 06:34:41 +01:00
|
|
|
LIBFLOAT_DIR:=$(BUILD_DIR)/libfloat
|
|
|
|
|
|
|
|
LIBFLOAT_TARGET=
|
2004-01-15 12:01:37 +01:00
|
|
|
ifeq ($(strip $(SOFT_FLOAT)),true)
|
2003-11-01 06:34:41 +01:00
|
|
|
ifeq ("$(strip $(ARCH))","arm")
|
2004-09-30 02:50:50 +02:00
|
|
|
ifeq ($(findstring 3.3.,$(GCC_VERSION)),3.3.)
|
2003-11-01 06:34:41 +01:00
|
|
|
LIBFLOAT_TARGET+=$(STAGING_DIR)/lib/libfloat.so
|
|
|
|
endif
|
|
|
|
endif
|
2004-09-30 02:50:50 +02:00
|
|
|
endif
|
2003-11-01 06:34:41 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBFLOAT_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(LIBFLOAT_SITE),$(LIBFLOAT_SOURCE))
|
2003-11-01 06:34:41 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBFLOAT_PATCH):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(LIBFLOAT_SITE),$(LIBFLOAT_PATCH))
|
2003-11-01 06:34:41 +01:00
|
|
|
|
|
|
|
libfloat-source: $(DL_DIR)/$(LIBFLOAT_SOURCE) $(DL_DIR)/$(LIBFLOAT_PATCH)
|
|
|
|
|
|
|
|
$(LIBFLOAT_DIR)/.unpacked: $(DL_DIR)/$(LIBFLOAT_SOURCE) $(DL_DIR)/$(LIBFLOAT_PATCH)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(LIBFLOAT_CAT) $(DL_DIR)/$(LIBFLOAT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2003-11-01 06:34:41 +01:00
|
|
|
# Remove the binary files distributed with the the package.
|
2008-03-27 16:42:42 +01:00
|
|
|
-$(MAKE) -C $(LIBFLOAT_DIR) clean
|
2004-10-09 04:49:33 +02:00
|
|
|
toolchain/patch-kernel.sh $(LIBFLOAT_DIR) $(DL_DIR) $(LIBFLOAT_PATCH)
|
|
|
|
toolchain/patch-kernel.sh $(LIBFLOAT_DIR) package/libfloat/ libfloat\*.patch
|
2007-09-01 19:12:23 +02:00
|
|
|
touch $@
|
2003-11-01 06:34:41 +01:00
|
|
|
|
2004-01-15 12:01:37 +01:00
|
|
|
$(LIBFLOAT_DIR)/libfloat.so.1: $(LIBFLOAT_DIR)/.unpacked $(TARGET_CC)
|
2003-11-01 06:34:41 +01:00
|
|
|
$(MAKE) CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld -C $(LIBFLOAT_DIR)
|
|
|
|
|
2007-09-01 19:12:23 +02:00
|
|
|
$(STAGING_DIR)/lib/libfloat.so $(STAGING_DIR)/lib/libfloat.a: $(LIBFLOAT_DIR)/libfloat.so.1
|
2007-01-21 22:32:49 +01:00
|
|
|
cp -dpf $(LIBFLOAT_DIR)/libfloat.a $(STAGING_DIR)/lib/libfloat.a
|
|
|
|
cp -dpf $(LIBFLOAT_DIR)/libfloat.so.1 $(STAGING_DIR)/lib/libfloat.so.1
|
2007-08-22 11:56:41 +02:00
|
|
|
(cd $(STAGING_DIR)/lib; ln -snf libfloat.so.1 libfloat.so)
|
2007-01-21 22:32:49 +01:00
|
|
|
cp -dpf $(LIBFLOAT_DIR)/libfloat.a $(TARGET_DIR)/usr/lib/libfloat.a
|
|
|
|
cp -dpf $(LIBFLOAT_DIR)/libfloat.so.1 $(TARGET_DIR)/lib/libfloat.so.1
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(TARGET_DIR)/lib/libfloat.so.1 > /dev/null 2>&1
|
2007-08-22 11:56:41 +02:00
|
|
|
(cd $(TARGET_DIR)/lib; ln -snf libfloat.so.1 libfloat.so)
|
|
|
|
(cd $(TARGET_DIR)/usr/lib; ln -snf /lib/libfloat.so libfloat.so)
|
2003-11-01 06:34:41 +01:00
|
|
|
|
2007-09-01 20:46:46 +02:00
|
|
|
libfloat: $(gcc_initial) $(STAGING_DIR)/lib/libfloat.so
|
2003-11-01 06:34:41 +01:00
|
|
|
|
|
|
|
libfloat-clean:
|
|
|
|
-$(MAKE) -C $(LIBFLOAT_DIR) clean
|
|
|
|
|
|
|
|
libfloat-dirclean:
|
|
|
|
rm -rf $(LIBFLOAT_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
#ifeq ($(BR2_PACKAGE_LIBFLOAT),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
#TARGETS+=libfloat
|
|
|
|
#endif
|