summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-12-05 15:27:42 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-12-05 15:27:42 +0000
commit51f5bccbc9cbc4b8f38edfd3d15c5c6022cc3bbf (patch)
tree441f2d10195d00ec0ccf40fea4783ff53b261250
parent7249f4898e3f8d323183774a3a29fd20ba5b4dc5 (diff)
toolchain/binutils: honour HAVE_MANPAGES / HAVE_INFOPAGES
Based on b157db55 in Bernhard's tree.
-rw-r--r--toolchain/binutils/binutils.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/toolchain/binutils/binutils.mk b/toolchain/binutils/binutils.mk
index 32b3a2cb7..f388295ff 100644
--- a/toolchain/binutils/binutils.mk
+++ b/toolchain/binutils/binutils.mk
@@ -106,6 +106,8 @@ $(BINUTILS_DIR1)/.configured: $(BINUTILS_DIR)/.patched
--build=$(GNU_HOST_NAME) \
--host=$(GNU_HOST_NAME) \
--target=$(REAL_GNU_TARGET_NAME) \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
$(BR2_CONFIGURE_DEVEL_SYSROOT) \
$(BR2_CONFIGURE_STAGING_SYSROOT) \
$(DISABLE_NLS) \
@@ -158,6 +160,8 @@ $(BINUTILS_DIR2)/.configured: $(BINUTILS_DIR)/.patched
--build=$(GNU_HOST_NAME) \
--host=$(REAL_GNU_TARGET_NAME) \
--target=$(REAL_GNU_TARGET_NAME) \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
$(DISABLE_NLS) \
$(MULTILIB) \
$(BINUTILS_TARGET_CONFIG_OPTIONS) \
@@ -174,8 +178,13 @@ $(TARGET_DIR)/usr/bin/ld: $(BINUTILS_DIR2)/binutils/objdump
$(MAKE) DESTDIR=$(TARGET_DIR) \
tooldir=/usr build_tooldir=/usr \
-C $(BINUTILS_DIR2) install
- #rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
- # $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -rf $(TARGET_DIR)/usr/man
+endif
+ifneq ($(BR2_HAVE_INFOPAGES),y)
+ rm -rf $(TARGET_DIR)/usr/info
+endif
+ rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/share/doc
-$(STRIPCMD) $(TARGET_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin/* > /dev/null 2>&1
-$(STRIPCMD) $(TARGET_DIR)/usr/bin/* > /dev/null 2>&1