]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
oprofile: use new libbfd option
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Fri, 31 Dec 2010 11:39:04 +0000 (08:39 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 2 Jan 2011 21:55:36 +0000 (22:55 +0100)
Convert the oprofile target to select the new libbfd staging/target
option to avoid a huge target binutils for a simple task.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/oprofile/Config.in
package/oprofile/oprofile.mk

index c877daee37d23b05b9a18a279318032bf2da2426..0e3652d39bde0097a9f95ac5d6c4b63cdac9f900 100644 (file)
@@ -5,6 +5,7 @@ config BR2_PACKAGE_OPROFILE
        # choosen in the config. This will have to be fixed later.
        depends on !BR2_TOOLCHAIN_EXTERNAL
        select BR2_PACKAGE_POPT
+       select BR2_PACKAGE_BINUTILS
        depends on BR2_INSTALL_LIBSTDCPP
        help
          OProfile is a system-wide profiler for Linux systems,
index 3be50f28bb1711a73cd6b5c4856609ed71d7d0bd..42bf0e2571f0752b1ee56da98c8f7e37ca8f943d 100644 (file)
@@ -5,9 +5,6 @@
 #############################################################
 OPROFILE_VERSION := 0.9.4
 OPROFILE_CONF_OPT :=   --localstatedir=/var \
-                       --with-extra-includes="$(BUILD_DIR)/binutils-$(BR2_BINUTILS_VERSION)-target/bfd \
-                       -I$(TOOLCHAIN_DIR)/binutils-$(BR2_BINUTILS_VERSION)/include" \
-                       --with-extra-libs=$(BUILD_DIR)/binutils-$(BR2_BINUTILS_VERSION)-target/bfd \
                        --with-kernel-support
 
 OPROFILE_BINARIES := utils/ophelp
@@ -24,7 +21,7 @@ ifeq ($(OPROFILE_ARCH),)
 OPROFILE_ARCH := $(BR2_ARCH)
 endif
 
-OPROFILE_DEPENDENCIES := popt binutils_target
+OPROFILE_DEPENDENCIES := popt binutils
 
 define OPROFILE_INSTALL_TARGET_CMDS
        $(INSTALL) -d -m 755 $(TARGET_DIR)/usr/bin