From 3800e330165e575d68d17ec889cfb4b97d78e905 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Thu, 15 Jan 2004 11:01:37 +0000 Subject: [PATCH] Minor cleanup. --- make/libfloat.mk | 5 ++--- make/uclibc.mk | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/make/libfloat.mk b/make/libfloat.mk index 97e1be1b52..dffef3de56 100644 --- a/make/libfloat.mk +++ b/make/libfloat.mk @@ -10,7 +10,7 @@ LIBFLOAT_CAT:=zcat LIBFLOAT_DIR:=$(BUILD_DIR)/libfloat LIBFLOAT_TARGET= -ifneq ("$(strip $(TARGET_SOFT_FLOAT))","") +ifeq ($(strip $(SOFT_FLOAT)),true) ifeq ("$(strip $(ARCH))","arm") LIBFLOAT_TARGET+=$(STAGING_DIR)/lib/libfloat.so endif @@ -32,8 +32,7 @@ $(LIBFLOAT_DIR)/.unpacked: $(DL_DIR)/$(LIBFLOAT_SOURCE) $(DL_DIR)/$(LIBFLOAT_PAT $(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 +$(LIBFLOAT_DIR)/libfloat.so.1: $(LIBFLOAT_DIR)/.unpacked $(TARGET_CC) $(MAKE) CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld -C $(LIBFLOAT_DIR) $(STAGING_DIR)/lib/libfloat.so: $(LIBFLOAT_DIR)/libfloat.so.1 diff --git a/make/uclibc.mk b/make/uclibc.mk index b5059c364c..7bdad88a93 100644 --- a/make/uclibc.mk +++ b/make/uclibc.mk @@ -63,10 +63,9 @@ else $(SED) 's,^.*UCLIBC_HAS_LFS.*,UCLIBC_HAS_LFS=n,g' $(UCLIBC_DIR)/.config endif $(SED) 's,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y,g' $(UCLIBC_DIR)/.config - if [ -n "$(strip $(TARGET_SOFT_FLOAT))" ] ; then \ - $(SED) 's,.*HAS_FPU.*,HAS_FPU=n\nUCLIBC_HAS_FLOATS=y\nUCLIBC_HAS_SOFT_FLOAT=y,g' \ - $(UCLIBC_DIR)/.config; \ - fi +ifeq ($(strip $(SOFT_FLOAT)),true) + $(SED) 's,.*HAS_FPU.*,HAS_FPU=n\nUCLIBC_HAS_FLOATS=y\nUCLIBC_HAS_SOFT_FLOAT=y,g' $(UCLIBC_DIR)/.config +endif $(MAKE) -C $(UCLIBC_DIR) \ PREFIX=$(STAGING_DIR)/ \ DEVEL_PREFIX=$(REAL_GNU_TARGET_NAME)/ \ -- 2.30.2