a1c8fa41f6
Now that TARGET_CC contains several space-separated words, it must be used quoted everywhere. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
66 lines
2.3 KiB
Makefile
66 lines
2.3 KiB
Makefile
#############################################################
|
|
#
|
|
# libfloat
|
|
#
|
|
#############################################################
|
|
LIBFLOAT_SOURCE:=libfloat_990616.orig.tar.gz
|
|
LIBFLOAT_PATCH:=libfloat_990616-3.diff.gz
|
|
LIBFLOAT_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/libf/libfloat
|
|
LIBFLOAT_CAT:=$(ZCAT)
|
|
LIBFLOAT_DIR:=$(BUILD_DIR)/libfloat
|
|
|
|
LIBFLOAT_TARGET=
|
|
ifeq ($(strip $(SOFT_FLOAT)),true)
|
|
ifeq ("$(strip $(ARCH))","arm")
|
|
ifeq ($(findstring 3.3.,$(GCC_VERSION)),3.3.)
|
|
LIBFLOAT_TARGET+=$(STAGING_DIR)/lib/libfloat.so
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
$(DL_DIR)/$(LIBFLOAT_SOURCE):
|
|
$(call DOWNLOAD,$(LIBFLOAT_SITE),$(LIBFLOAT_SOURCE))
|
|
|
|
$(DL_DIR)/$(LIBFLOAT_PATCH):
|
|
$(call DOWNLOAD,$(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)
|
|
$(LIBFLOAT_CAT) $(DL_DIR)/$(LIBFLOAT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
# Remove the binary files distributed with the the package.
|
|
-$(MAKE) -C $(LIBFLOAT_DIR) clean
|
|
toolchain/patch-kernel.sh $(LIBFLOAT_DIR) $(DL_DIR) $(LIBFLOAT_PATCH)
|
|
toolchain/patch-kernel.sh $(LIBFLOAT_DIR) package/libfloat/ libfloat\*.patch
|
|
touch $@
|
|
|
|
$(LIBFLOAT_DIR)/libfloat.so.1: $(LIBFLOAT_DIR)/.unpacked
|
|
$(MAKE) CC="$(TARGET_CC)" LD=$(TARGET_CROSS)ld -C $(LIBFLOAT_DIR)
|
|
|
|
$(STAGING_DIR)/lib/libfloat.so $(STAGING_DIR)/lib/libfloat.a: $(LIBFLOAT_DIR)/libfloat.so.1
|
|
cp -dpf $(LIBFLOAT_DIR)/libfloat.a $(STAGING_DIR)/lib/libfloat.a
|
|
cp -dpf $(LIBFLOAT_DIR)/libfloat.so.1 $(STAGING_DIR)/lib/libfloat.so.1
|
|
(cd $(STAGING_DIR)/lib; ln -snf libfloat.so.1 libfloat.so)
|
|
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
|
|
$(STRIPCMD) $(TARGET_DIR)/lib/libfloat.so.1 > /dev/null 2>&1
|
|
(cd $(TARGET_DIR)/lib; ln -snf libfloat.so.1 libfloat.so)
|
|
(cd $(TARGET_DIR)/usr/lib; ln -snf /lib/libfloat.so libfloat.so)
|
|
|
|
libfloat: $(gcc_initial) $(STAGING_DIR)/lib/libfloat.so
|
|
|
|
libfloat-clean:
|
|
-$(MAKE) -C $(LIBFLOAT_DIR) clean
|
|
|
|
libfloat-dirclean:
|
|
rm -rf $(LIBFLOAT_DIR)
|
|
|
|
#############################################################
|
|
#
|
|
# Toplevel Makefile options
|
|
#
|
|
#############################################################
|
|
#ifeq ($(BR2_PACKAGE_LIBFLOAT),y)
|
|
#TARGETS+=libfloat
|
|
#endif
|