Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] binutils: gdb: Support unified binutils-gdb git repository
@ 2014-07-28 14:57 Anton Kolesov
  2014-07-28 16:58 ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: Anton Kolesov @ 2014-07-28 14:57 UTC (permalink / raw)
  To: buildroot

If Binutils and/or GDB are fetched from the unified bintuils-gdb repository,
then tarball will contain both Binutils and GDB sources, unlike the "normal"
tarballs that contain only the titular package. To keep packages separated
in Buildroot we need to disable undesired components when configuring.

Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
---
 package/binutils/binutils.mk | 2 ++
 package/gdb/gdb.mk           | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
index 77d0751..2beb5e0 100644
--- a/package/binutils/binutils.mk
+++ b/package/binutils/binutils.mk
@@ -47,6 +47,7 @@ BINUTILS_CONF_OPT = --disable-multilib --disable-werror \
 		--host=$(GNU_TARGET_NAME) \
 		--target=$(GNU_TARGET_NAME) \
 		--enable-install-libiberty \
+		--disable-sim --disable-gdb \
 		$(BINUTILS_EXTRA_CONFIG_OPTIONS)
 
 # Don't build documentation. It takes up extra space / build time,
@@ -65,6 +66,7 @@ HOST_BINUTILS_CONF_OPT = --disable-multilib --disable-werror \
 			--target=$(GNU_TARGET_NAME) \
 			--disable-shared --enable-static \
 			--with-sysroot=$(STAGING_DIR) \
+			--disable-sim --disable-gdb \
 			$(BINUTILS_EXTRA_CONFIG_OPTIONS)
 
 # We just want libbfd and libiberty, not the full-blown binutils in staging
diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk
index 6640d2c..c58ad21 100644
--- a/package/gdb/gdb.mk
+++ b/package/gdb/gdb.mk
@@ -67,6 +67,9 @@ GDB_CONF_OPT = \
 	--disable-gdbtk \
 	--without-x \
 	--disable-sim \
+	--disable-binutils \
+	--disable-ld \
+	--disable-gas \
 	$(if $(BR2_PACKAGE_GDB_SERVER),--enable-gdbserver) \
 	--with-curses \
 	--without-included-gettext \
@@ -111,6 +114,9 @@ HOST_GDB_CONF_OPT = \
 	--enable-threads \
 	--disable-werror \
 	--without-included-gettext \
+	--disable-binutils \
+	--disable-ld \
+	--disable-gas \
 	--disable-sim
 
 ifeq ($(GDB_FROM_GIT),y)
-- 
1.8.4.1

ARC GNU Toolchain will use a unified binutils-gdb repository starting from the
August release. I'm sending this patch in advance to ensure that it will be
sorted out before our release.

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

end of thread, other threads:[~2014-07-30 17:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-28 14:57 [Buildroot] [PATCH] binutils: gdb: Support unified binutils-gdb git repository Anton Kolesov
2014-07-28 16:58 ` Thomas Petazzoni
2014-07-28 17:32   ` Anton Kolesov
2014-07-28 18:05     ` Thomas De Schampheleire
2014-07-29 12:54       ` [Buildroot] [PATCH v2] " Anton Kolesov
2014-07-30 17:25         ` Thomas Petazzoni

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