Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] oprofile: Don't install binutils in the target filesystem.
@ 2010-11-30 16:29 Will Newton
  2010-12-07 11:21 ` Will Newton
  0 siblings, 1 reply; 6+ messages in thread
From: Will Newton @ 2010-11-30 16:29 UTC (permalink / raw)
  To: buildroot

oprofile needs libbfd, but does not require all the binutils tools
installing in the target filesystem. This saves a lot of space
on the target filesystem.

Signed-off-by: Will Newton <will.newton@imgtec.com>
---
 package/oprofile/oprofile.mk   |    2 +-
 toolchain/binutils/binutils.mk |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/package/oprofile/oprofile.mk b/package/oprofile/oprofile.mk
index 3be50f2..7281c8f 100644
--- a/package/oprofile/oprofile.mk
+++ b/package/oprofile/oprofile.mk
@@ -24,7 +24,7 @@ ifeq ($(OPROFILE_ARCH),)
 OPROFILE_ARCH := $(BR2_ARCH)
 endif

-OPROFILE_DEPENDENCIES := popt binutils_target
+OPROFILE_DEPENDENCIES := popt libbfd_target

 define OPROFILE_INSTALL_TARGET_CMDS
 	$(INSTALL) -d -m 755 $(TARGET_DIR)/usr/bin
diff --git a/toolchain/binutils/binutils.mk b/toolchain/binutils/binutils.mk
index ef9f644..de8f865 100644
--- a/toolchain/binutils/binutils.mk
+++ b/toolchain/binutils/binutils.mk
@@ -172,6 +172,8 @@ endif

 binutils_target: $(BINUTILS_TARGET_PREREQ) $(TARGET_DIR)/usr/bin/ld

+libbfd_target: $(BINUTILS_DIR2)/binutils/objdump
+
 binutils_target-clean:
 	-$(MAKE) -C $(BINUTILS_DIR2) clean
 	rm -f $(TARGET_DIR)/bin/$(REAL_GNU_TARGET_NAME)* \
-- 
1.7.2.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-oprofile-Don-t-install-binutils-in-the-target-filesy.patch
Type: text/x-patch
Size: 1466 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101130/fed31fce/attachment.bin>

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-17 11:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-30 16:29 [Buildroot] [PATCH] oprofile: Don't install binutils in the target filesystem Will Newton
2010-12-07 11:21 ` Will Newton
2010-12-07 18:58   ` Thomas Petazzoni
2010-12-07 19:27     ` Will Newton
2010-12-16 19:07       ` Gustavo Zacarias
2010-12-17 11:31         ` Will Newton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox