# build binutils for use on the host system
#
#############################################################
-BINUTILS_VERSION:=$(strip $(subst ",, $(BR2_BINUTILS_VERSION)))
-#"
+BINUTILS_VERSION:=$(strip $(subst ",, $(CONFIG_BINUTILS_VERSION)))#"))
BINUTILS_SITE:=http://www.fr.kernel.org/pub/linux/devel/binutils \
http://www.fi.kernel.org/pub/linux/devel/binutils \
ifeq ($(BINUTILS_VERSION),2.16.1)
BINUTILS_SITE:=$(BINUTILS_STABLE_SITE)
endif
-ifeq ($(BINUTILS_VERSION),2.16)
-BINUTILS_SITE:=$(BINUTILS_STABLE_SITE)
-endif
-ifeq ($(BINUTILS_VERSION),2.15)
-BINUTILS_SITE:=$(BINUTILS_STABLE_SITE)
-endif
-ifeq ($(BINUTILS_VERSION),2.14)
-BINUTILS_SITE:=$(BINUTILS_STABLE_SITE)
-endif
-ifeq ($(BINUTILS_VERSION),2.13)
-BINUTILS_SITE:=$(BINUTILS_STABLE_SITE)
-endif
BINUTILS_SOURCE:=binutils-$(BINUTILS_VERSION).tar.bz2
BINUTILS_DIR:=$(TOOL_BUILD_DIR)/binutils-$(BINUTILS_VERSION)
touch $(BINUTILS_DIR1)/.configured
$(BINUTILS_DIR1)/binutils/objdump: $(BINUTILS_DIR1)/.configured
- $(MAKE) -C $(BINUTILS_DIR1) all
+ $(MAKE) -C $(BINUTILS_DIR1) -j $(CONFIG_JLEVEL) all
# Make install will put gettext data in staging_dir/share/locale.
# Unfortunatey, it isn't configureable.
$(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-ld: $(BINUTILS_DIR1)/binutils/objdump
- $(MAKE) -C $(BINUTILS_DIR1) install
+ $(MAKE) -C $(BINUTILS_DIR1) -j $(CONFIG_JLEVEL) install
#############################################################
$(BINUTILS_DIR2)/binutils/objdump: $(BINUTILS_DIR2)/.configured
PATH=$(TARGET_PATH) \
- $(MAKE) -C $(BINUTILS_DIR2) all
+ $(MAKE) -C $(BINUTILS_DIR2) -j $(CONFIG_JLEVEL) all
source: $(DL_DIR)/$(BINUTILS_SOURCE)
prepare: $(BINUTILS_DIR)/.patched
compile: $(BINUTILS_DIR1)/binutils/objdump
install: $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)-ld
-clean:
+clean: FORCE
rm -f $(STAGING_DIR)/bin/$(REAL_GNU_TARGET_NAME)*
rm -rf $(BINUTILS_DIR) $(BINUTILS_DIR1)