Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] binutils: Makefile and Config.in rework for oprofile ext toolchain compilation
@ 2011-06-08 13:57 benoit.mauduit at gmail.com
  2011-06-08 13:57 ` [Buildroot] [PATCH 2/3] oprofile: Make it possible to select it with external toolchain benoit.mauduit at gmail.com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: benoit.mauduit at gmail.com @ 2011-06-08 13:57 UTC (permalink / raw)
  To: buildroot

From: Benoit Mauduit <benoit.mauduit@openwide.fr>

  * When select full binutils binaries use the default INSTALL_TARGET_CMDS
from AUTOTARGET.
  * Menu config improvement.
  * Install libiberty into Staging dir.
---
 package/binutils/Config.in   |   15 +++++++++++++--
 package/binutils/binutils.mk |   23 ++++++++++++-----------
 2 files changed, 25 insertions(+), 13 deletions(-)

diff --git a/package/binutils/Config.in b/package/binutils/Config.in
index 9e4821a..449ba46 100644
--- a/package/binutils/Config.in
+++ b/package/binutils/Config.in
@@ -1,6 +1,14 @@
 config BR2_PACKAGE_BINUTILS
-	bool "libbfd (binutils)"
-	depends on BR2_TOOLCHAIN_BUILDROOT
+	bool "binutils"
+	help
+	  Install bintutils on the target.
+
+menu "binutils Options"
+depends on BR2_PACKAGE_BINUTILS
+
+config BR2_PACKAGE_BINUTILS_LIBBFD
+	bool "libbfd"
+	depends on BR2_PACKAGE_BINUTILS
 	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
 	select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT_IF_LOCALE
 	help
@@ -11,6 +19,7 @@ config BR2_PACKAGE_BINUTILS
 config BR2_PACKAGE_BINUTILS_TARGET
 	bool "binutils binaries"
 	depends on BR2_PACKAGE_BINUTILS
+	select BR2_PACKAGE_BINUTILS_LIBBFD
 	help
 	  The GNU Binutils are a collection of binary tools:
 
@@ -19,3 +28,5 @@ config BR2_PACKAGE_BINUTILS_TARGET
 	  and others...
 
 	  http://www.gnu.org/software/binutils/
+
+endmenu
diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
index 5454af8..d65e68f 100644
--- a/package/binutils/binutils.mk
+++ b/package/binutils/binutils.mk
@@ -4,7 +4,13 @@
 #
 #############################################################
 
+# Version is set when using buildroot toolchain.
+# If not, we do like other packages
 BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION))
+ifeq ($(BINUTILS_VERSION),)
+BINUTILS_VERSION = 2.21
+endif
+
 BINUTILS_SOURCE = binutils-$(BINUTILS_VERSION).tar.bz2
 BINUTILS_SITE = $(BR2_GNU_MIRROR)/binutils
 ifeq ($(ARCH),avr32)
@@ -33,23 +39,18 @@ HOST_BINUTILS_CONF_OPT = --disable-multilib --disable-werror \
 			$(BR2_CONFIGURE_STAGING_SYSROOT) \
 			$(BINUTILS_EXTRA_CONFIG_OPTIONS)
 
-# We just want libbfd, not the full-blown binutils in staging
+# We just want libbfd and libiberty, not the full-blown binutils in staging
 define BINUTILS_INSTALL_STAGING_CMDS
 	$(MAKE) -C $(@D)/bfd DESTDIR=$(STAGING_DIR) install
+	$(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
 endef
 
-# only libbfd in the target...
-BINUTILS_INSTALL_FROM = $(@D)/bfd
-
-# unless we want full...
-ifeq ($(BR2_PACKAGE_BINUTILS_TARGET),y)
-BINUTILS_INSTALL_FROM = $(@D)
-endif
-
+# If we don't want full binutils on target
+ifneq ($(BR2_PACKAGE_BINUTILS_TARGET), y)
 define BINUTILS_INSTALL_TARGET_CMDS
-	$(TARGET_MAKE_ENV) $(MAKE) -C $(BINUTILS_INSTALL_FROM) \
-		DESTDIR=$(TARGET_DIR) install
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/bfd DESTDIR=$(TARGET_DIR) install
 endef
+endif
 
 $(eval $(call AUTOTARGETS,package,binutils))
 $(eval $(call AUTOTARGETS,package,binutils,host))
-- 
1.7.5.2

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

* [Buildroot] [PATCH 2/3] oprofile: Make it possible to select it with external toolchain
  2011-06-08 13:57 [Buildroot] [PATCH 1/3] binutils: Makefile and Config.in rework for oprofile ext toolchain compilation benoit.mauduit at gmail.com
@ 2011-06-08 13:57 ` benoit.mauduit at gmail.com
  2011-06-08 13:57 ` [Buildroot] [PATCH 3/3] oprofile: Bump to 0.9.6 benoit.mauduit at gmail.com
  2011-10-27 13:17 ` [Buildroot] [PATCH 1/3] binutils: Makefile and Config.in rework for oprofile ext toolchain compilation Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: benoit.mauduit at gmail.com @ 2011-06-08 13:57 UTC (permalink / raw)
  To: buildroot

From: Benoit Mauduit <benoit.mauduit@openwide.fr>

---
 package/oprofile/Config.in |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/package/oprofile/Config.in b/package/oprofile/Config.in
index 0e3652d..6c9e149 100644
--- a/package/oprofile/Config.in
+++ b/package/oprofile/Config.in
@@ -3,10 +3,10 @@ config BR2_PACKAGE_OPROFILE
 	# The dependency on binutils_target does not work with
 	# external toolchains since the binutils version was not
 	# 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
+	select BR2_PACKAGE_BINUTILS_LIBBFD
+	depends on BR2_INSTALL_LIBSTDCPP || BR2_TOOLCHAIN_EXTERNAL
 	help
 	  OProfile is a system-wide profiler for Linux systems,
 	  capable of profiling all running code at low overhead.
@@ -23,5 +23,8 @@ config BR2_PACKAGE_OPROFILE
 	  interrupt handlers, kernel modules, the kernel, shared
 	  libraries, and applications.
 
+	  If you compile oprofile with external toolchain, make sure
+	  you have C++ support enabled.
+
 comment "oprofile requires a toolchain with C++ support enabled"
-	depends on !BR2_INSTALL_LIBSTDCPP
+	depends on !BR2_TOOLCHAIN_EXTERNAL && !BR2_INSTALL_LIBSTDCPP
-- 
1.7.5.2

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

* [Buildroot] [PATCH 3/3] oprofile: Bump to 0.9.6
  2011-06-08 13:57 [Buildroot] [PATCH 1/3] binutils: Makefile and Config.in rework for oprofile ext toolchain compilation benoit.mauduit at gmail.com
  2011-06-08 13:57 ` [Buildroot] [PATCH 2/3] oprofile: Make it possible to select it with external toolchain benoit.mauduit at gmail.com
@ 2011-06-08 13:57 ` benoit.mauduit at gmail.com
  2011-10-27 13:17 ` [Buildroot] [PATCH 1/3] binutils: Makefile and Config.in rework for oprofile ext toolchain compilation Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: benoit.mauduit at gmail.com @ 2011-06-08 13:57 UTC (permalink / raw)
  To: buildroot

From: Benoit Mauduit <benoit.mauduit@openwide.fr>

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

diff --git a/package/oprofile/oprofile.mk b/package/oprofile/oprofile.mk
index 42bf0e2..4522cda 100644
--- a/package/oprofile/oprofile.mk
+++ b/package/oprofile/oprofile.mk
@@ -3,7 +3,7 @@
 # oprofile
 #
 #############################################################
-OPROFILE_VERSION := 0.9.4
+OPROFILE_VERSION := 0.9.6
 OPROFILE_CONF_OPT :=	--localstatedir=/var \
 			--with-kernel-support
 
-- 
1.7.5.2

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

* [Buildroot] [PATCH 1/3] binutils: Makefile and Config.in rework for oprofile ext toolchain compilation
  2011-06-08 13:57 [Buildroot] [PATCH 1/3] binutils: Makefile and Config.in rework for oprofile ext toolchain compilation benoit.mauduit at gmail.com
  2011-06-08 13:57 ` [Buildroot] [PATCH 2/3] oprofile: Make it possible to select it with external toolchain benoit.mauduit at gmail.com
  2011-06-08 13:57 ` [Buildroot] [PATCH 3/3] oprofile: Bump to 0.9.6 benoit.mauduit at gmail.com
@ 2011-10-27 13:17 ` Peter Korsgaard
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2011-10-27 13:17 UTC (permalink / raw)
  To: buildroot

>>>>> "benoit" == benoit mauduit <benoit.mauduit@gmail.com> writes:

 benoit> From: Benoit Mauduit <benoit.mauduit@openwide.fr>
 benoit>   * When select full binutils binaries use the default INSTALL_TARGET_CMDS
 benoit> from AUTOTARGET.
 benoit>   * Menu config improvement.
 benoit>   * Install libiberty into Staging dir.

Committed with minor changes, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2011-10-27 13:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-08 13:57 [Buildroot] [PATCH 1/3] binutils: Makefile and Config.in rework for oprofile ext toolchain compilation benoit.mauduit at gmail.com
2011-06-08 13:57 ` [Buildroot] [PATCH 2/3] oprofile: Make it possible to select it with external toolchain benoit.mauduit at gmail.com
2011-06-08 13:57 ` [Buildroot] [PATCH 3/3] oprofile: Bump to 0.9.6 benoit.mauduit at gmail.com
2011-10-27 13:17 ` [Buildroot] [PATCH 1/3] binutils: Makefile and Config.in rework for oprofile ext toolchain compilation Peter Korsgaard

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