[Buildroot] [PATCH] oprofile: Don't install binutils in the target filesystem.

Will Newton will.newton at gmail.com
Tue Nov 30 16:29:11 UTC 2010


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 at 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>


More information about the buildroot mailing list