Skip to contentSkip to conversation

oprofile: Don't install binutils in the target filesystem.

PATCH New Will Newton 3 participants 6 messages Nov 30, 2010 – Dec 17, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oprofile: Don't install binutils in the target filesystem.

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.

---
 package/oprofile/oprofile.mk   |    2 +-
 toolchain/binutils/binutils.mk |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
package/oprofile/oprofile.mk +1 -1
index 3be50f2..7281c8f 100644
@@ -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
toolchain/binutils/binutils.mk +2 -0
index ef9f644..de8f865 100644
@@ -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)* \
Signature · 8 lines
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>
#1 lore raw

PATCH 1/1 oprofile: Don't install binutils in the target filesystem.

Quoted 5 lines · Will Newton

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.

Is this ok for 2011.02?

Quoted 34 lines

---
?package/oprofile/oprofile.mk ? | ? ?2 +-
?toolchain/binutils/binutils.mk | ? ?2 ++
?2 files changed, 3 insertions(+), 1 deletions(-)

package/oprofile/oprofile.mk +0 -0
index 3be50f2..7281c8f 100644
@@ -24,7 +24,7 @@ ifeq ($(OPROFILE_ARCH),)
 ?OPROFILE_ARCH := $(BR2_ARCH)

?endif

package/oprofile/oprofile.mk +1 -1
-OPROFILE_DEPENDENCIES := popt binutils_target
+OPROFILE_DEPENDENCIES := popt libbfd_target

?define OPROFILE_INSTALL_TARGET_CMDS
? ? ? ?$(INSTALL) -d -m 755 $(TARGET_DIR)/usr/bin

toolchain/binutils/binutils.mk +0 -0
index ef9f644..de8f865 100644
@@ -172,6 +172,8 @@ endif
 

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

toolchain/binutils/binutils.mk +2 -0
+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

#2 lore raw

PATCH 1/1 oprofile: Don't install binutils in the target filesystem.

Quoted 9 lines · On Tue, 7 Dec 2010 11:21:59 +0000 Will Newton <[email protected]> wrote:
Quoted 5 lines · Will Newton

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.

Is this ok for 2011.02?

Gustavo Zacarias is cleaning up the binutils package, so I'm sure he will take care of this as well :-)

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#3 lore raw

PATCH 1/1 oprofile: Don't install binutils in the target filesystem.

Quoted 9 lines · Thomas Petazzoni
Quoted 6 lines · On Tue, 7 Dec 2010 11:21:59 +0000 Will Newton <[email protected]> wrote:
Quoted 4 lines · Will Newton

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.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Is this ok for 2011.02?

Gustavo Zacarias is cleaning up the binutils package, so I'm sure he will take care of this as well :-)

That's good news, thanks for letting me know!

Gustavo: If you need any patches testing I'll be happy to do it.

#4 lore raw

PATCH 1/1 oprofile: Don't install binutils in the target filesystem.

Quoted 8 lines · Will Newton
Quoted 2 lines · Thomas Petazzoni

Gustavo Zacarias is cleaning up the binutils package, so I'm sure he will take care of this as well :-)

That's good news, thanks for letting me know!

Gustavo: If you need any patches testing I'll be happy to do it.

git://repo.or.cz/buildroot-gz.git toolchain-work
or
http://repo.or.cz/w/buildroot-gz.git/shortlog/refs/heads/toolchain-rework :-) Give it a spin, i've done basic tests for an ARM target.
Regards.

#5 lore raw

PATCH 1/1 oprofile: Don't install binutils in the target filesystem.

Quoted 7 lines · Gustavo Zacarias
Quoted 5 lines · Will Newton
Quoted 2 lines · Thomas Petazzoni

Gustavo Zacarias is cleaning up the binutils package, so I'm sure he will take care of this as well :-)

Quoted 8 lines
Quoted 3 lines

That's good news, thanks for letting me know!

Gustavo: If you need any patches testing I'll be happy to do it.

git://repo.or.cz/buildroot-gz.git toolchain-work
or
http://repo.or.cz/w/buildroot-gz.git/shortlog/refs/heads/toolchain-rework :-) Give it a spin, i've done basic tests for an ARM target.

Works for me on Intel and fixes the issue with binutils being installed alongside oprofile.

Thanks for doing this work!