2003-11-01 06:34:41 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libfloat
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
LIBFLOAT_SOURCE:=libfloat_990616.orig.tar.gz
|
|
|
|
LIBFLOAT_PATCH:=libfloat_990616-3.diff.gz
|
|
|
|
LIBFLOAT_SITE:=http://ftp.debian.org/debian/pool/main/libf/libfloat
|
|
|
|
LIBFLOAT_CAT:=zcat
|
|
|
|
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):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LIBFLOAT_SITE)/$(LIBFLOAT_SOURCE)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(LIBFLOAT_PATCH):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LIBFLOAT_SITE)/$(LIBFLOAT_PATCH)
|
|
|
|
|
|
|
|
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.
|
|
|
|
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
|
2003-11-01 06:34:41 +01:00
|
|
|
touch $(LIBFLOAT_DIR)/.unpacked
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
$(STAGING_DIR)/lib/libfloat.so: $(LIBFLOAT_DIR)/libfloat.so.1
|
|
|
|
cp -a $(LIBFLOAT_DIR)/libfloat.a $(STAGING_DIR)/lib/libfloat.a
|
|
|
|
cp -a $(LIBFLOAT_DIR)/libfloat.so.1 $(STAGING_DIR)/lib/libfloat.so.1
|
2005-04-15 04:19:11 +02:00
|
|
|
(cd $(STAGING_DIR)/lib ; ln -snf libfloat.so.1 libfloat.so)
|
2003-11-01 06:34:41 +01:00
|
|
|
cp -a $(LIBFLOAT_DIR)/libfloat.a $(TARGET_DIR)/usr/lib/libfloat.a
|
|
|
|
cp -a $(LIBFLOAT_DIR)/libfloat.so.1 $(TARGET_DIR)/lib/libfloat.so.1
|
|
|
|
$(STRIP) $(TARGET_DIR)/lib/libfloat.so.1 > /dev/null 2>&1
|
2005-04-15 04:19:11 +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
|
|
|
|
|
|
|
libfloat: $(STAGING_DIR)/lib/libfloat.so
|
|
|
|
|
|
|
|
libfloat-clean:
|
|
|
|
-$(MAKE) -C $(LIBFLOAT_DIR) clean
|
|
|
|
|
|
|
|
libfloat-dirclean:
|
|
|
|
rm -rf $(LIBFLOAT_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
#ifeq ($(strip $(BR2_PACKAGE_LIBFLOAT)),y)
|
|
|
|
#TARGETS+=libfloat
|
|
|
|
#endif
|