d632d42b34
i386 (limited to 64 bit long double... same as double), arm (libfloat), mips, and mipsel. Enable cross compiling a native gcc 3.3 toolchain to run on the target. Misc rootfs cleanups... strip some things that weren't, eliminate duplicate libs, move openssl shared libs out of /lib, reduce size of libssl.so by dynamicly linking with libcrypto.so, fix dropbear compile on mips.
57 lines
2.0 KiB
Makefile
57 lines
2.0 KiB
Makefile
#############################################################
|
|
#
|
|
# 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=
|
|
ifneq ("$(strip $(TARGET_SOFT_FLOAT))","")
|
|
ifeq ("$(strip $(ARCH))","arm")
|
|
LIBFLOAT_TARGET+=$(STAGING_DIR)/lib/libfloat.so
|
|
endif
|
|
endif
|
|
|
|
$(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)
|
|
$(LIBFLOAT_CAT) $(DL_DIR)/$(LIBFLOAT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
|
# Remove the binary files distributed with the the package.
|
|
make -C $(LIBFLOAT_DIR) clean
|
|
$(SOURCE_DIR)/patch-kernel.sh $(LIBFLOAT_DIR) $(DL_DIR) $(LIBFLOAT_PATCH)
|
|
$(SOURCE_DIR)/patch-kernel.sh $(LIBFLOAT_DIR) $(SOURCE_DIR) libfloat.patch
|
|
touch $(LIBFLOAT_DIR)/.unpacked
|
|
|
|
$(LIBFLOAT_DIR)/libfloat.so.1: $(LIBFLOAT_DIR)/.unpacked \
|
|
$(STAGING_DIR)/bin/$(ARCH)-linux-gcc
|
|
$(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
|
|
(cd $(STAGING_DIR)/lib ; ln -sf libfloat.so.1 libfloat.so)
|
|
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
|
|
(cd $(TARGET_DIR)/lib ; ln -sf libfloat.so.1 libfloat.so)
|
|
(cd $(TARGET_DIR)/usr/lib ; ln -sf /lib/libfloat.so libfloat.so)
|
|
|
|
libfloat: $(STAGING_DIR)/lib/libfloat.so
|
|
|
|
libfloat-clean:
|
|
-$(MAKE) -C $(LIBFLOAT_DIR) clean
|
|
|
|
libfloat-dirclean:
|
|
rm -rf $(LIBFLOAT_DIR)
|
|
|