Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mischa Jonker <Mischa.Jonker@synopsys.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 04/12] arc: Add support for ARC-specific binutils
Date: Thu,  2 May 2013 21:51:25 +0200	[thread overview]
Message-ID: <1367524293-32081-5-git-send-email-mjonker@synopsys.com> (raw)
In-Reply-To: <1367524293-32081-1-git-send-email-mjonker@synopsys.com>

ARC support is not upstream yet...

package/binutils: add host-{flex,bison} dependencies for 2.19-arc

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
---
 .../binutils/2.19-arc/add-empty-info-files.patch   |   72 ++++++++++++++++++++
 package/binutils/Config.in.host                    |    2 +
 package/binutils/binutils.mk                       |    7 ++
 3 files changed, 81 insertions(+), 0 deletions(-)
 create mode 100644 package/binutils/2.19-arc/add-empty-info-files.patch

diff --git a/package/binutils/2.19-arc/add-empty-info-files.patch b/package/binutils/2.19-arc/add-empty-info-files.patch
new file mode 100644
index 0000000..90de429
--- /dev/null
+++ b/package/binutils/2.19-arc/add-empty-info-files.patch
@@ -0,0 +1,72 @@
+binutils: add empty info files to remove makeinfo dependency
+
+Signed-off-by: Mischa jonker <mjonker@synopsys.com>
+---
+ bfd/doc/bfd.info           |    1 +
+ binutils/doc/binutils.info |    1 +
+ etc/configure.info         |    1 +
+ etc/standards.info         |    1 +
+ gas/doc/as.info            |    1 +
+ gprof/gprof.info           |    1 +
+ ld/ld.info                 |    1 +
+ 7 files changed, 7 insertions(+), 0 deletions(-)
+ create mode 100644 bfd/doc/bfd.info
+ create mode 100644 binutils/doc/binutils.info
+ create mode 100644 etc/configure.info
+ create mode 100644 etc/standards.info
+ create mode 100644 gas/doc/as.info
+ create mode 100644 gprof/gprof.info
+ create mode 100644 ld/ld.info
+
+diff --git a/bfd/doc/bfd.info b/bfd/doc/bfd.info
+new file mode 100644
+index 0000000..8b13789
+--- /dev/null
++++ b/bfd/doc/bfd.info
+@@ -0,0 +1 @@
++
+diff --git a/binutils/doc/binutils.info b/binutils/doc/binutils.info
+new file mode 100644
+index 0000000..8b13789
+--- /dev/null
++++ b/binutils/doc/binutils.info
+@@ -0,0 +1 @@
++
+diff --git a/etc/configure.info b/etc/configure.info
+new file mode 100644
+index 0000000..8b13789
+--- /dev/null
++++ b/etc/configure.info
+@@ -0,0 +1 @@
++
+diff --git a/etc/standards.info b/etc/standards.info
+new file mode 100644
+index 0000000..8b13789
+--- /dev/null
++++ b/etc/standards.info
+@@ -0,0 +1 @@
++
+diff --git a/gas/doc/as.info b/gas/doc/as.info
+new file mode 100644
+index 0000000..8b13789
+--- /dev/null
++++ b/gas/doc/as.info
+@@ -0,0 +1 @@
++
+diff --git a/gprof/gprof.info b/gprof/gprof.info
+new file mode 100644
+index 0000000..8b13789
+--- /dev/null
++++ b/gprof/gprof.info
+@@ -0,0 +1 @@
++
+diff --git a/ld/ld.info b/ld/ld.info
+new file mode 100644
+index 0000000..8b13789
+--- /dev/null
++++ b/ld/ld.info
+@@ -0,0 +1 @@
++
+-- 
+1.7.0.4
+
diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
index a61a503..d9bab44 100644
--- a/package/binutils/Config.in.host
+++ b/package/binutils/Config.in.host
@@ -2,6 +2,7 @@ comment "Binutils Options"
 
 choice
 	prompt "Binutils Version"
+	depends on !BR2_arc
 	default BR2_BINUTILS_VERSION_2_21 if (BR2_mips || BR2_mipsel || BR2_sh)
 	default BR2_BINUTILS_VERSION_2_21_1 if (!BR2_UCLIBC_VERSION_0_9_31)
 	default BR2_BINUTILS_VERSION_2_21
@@ -41,6 +42,7 @@ endchoice
 config BR2_BINUTILS_VERSION
 	string
 	default "2.18-avr32-1.0.1" if BR2_BINUTILS_VERSION_2_18_AVR32_1_0_1
+	default "2.19-arc"	if BR2_arc
 	default "2.20.1"	if BR2_BINUTILS_VERSION_2_20_1
 	default "2.21"		if BR2_BINUTILS_VERSION_2_21
 	default "2.21.1"	if BR2_BINUTILS_VERSION_2_21_1
diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
index 92e0a74..081be6a 100644
--- a/package/binutils/binutils.mk
+++ b/package/binutils/binutils.mk
@@ -26,6 +26,9 @@ BINUTILS_SITE = $(BR2_GNU_MIRROR)/binutils
 ifeq ($(ARCH),avr32)
 BINUTILS_SITE = ftp://www.at91.com/pub/buildroot
 endif
+ifeq ($(BR2_arc),y)
+BINUTILS_SITE = $(BR2_ARC_SITE)
+endif
 BINUTILS_EXTRA_CONFIG_OPTIONS = $(call qstrip,$(BR2_BINUTILS_EXTRA_CONFIG_OPTIONS))
 BINUTILS_INSTALL_STAGING = YES
 BINUTILS_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
@@ -52,7 +55,11 @@ HOST_BINUTILS_CONF_OPT = --disable-multilib --disable-werror \
 			--with-sysroot=$(STAGING_DIR) \
 			$(BINUTILS_EXTRA_CONFIG_OPTIONS)
 
+ifeq ($(BINUTILS_VERSION),2.19-arc)
+HOST_BINUTILS_DEPENDENCIES = host-flex host-bison
+else
 HOST_BINUTILS_DEPENDENCIES =
+endif
 
 # We just want libbfd and libiberty, not the full-blown binutils in staging
 define BINUTILS_INSTALL_STAGING_CMDS
-- 
1.7.0.4

  parent reply	other threads:[~2013-05-02 19:51 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-02 19:51 [Buildroot] [PATCH v4 00/12] ARC port Mischa Jonker
2013-05-02 19:51 ` [Buildroot] [PATCH v4 01/12] toolchain/gcc: Add host-{flex, bison} dependencies for GCC 4.2, 4.3, 4.4 Mischa Jonker
2013-05-04 20:58   ` Peter Korsgaard
2013-05-07  7:54     ` Thomas Petazzoni
2013-05-02 19:51 ` [Buildroot] [PATCH v4 02/12] arc: Add ARC and ARC BE architecture Mischa Jonker
2013-05-04 21:02   ` Peter Korsgaard
2013-05-02 19:51 ` [Buildroot] [PATCH v4 03/12] arc: Add option for ARC-specific download site Mischa Jonker
2013-05-04 21:04   ` Peter Korsgaard
2013-05-02 19:51 ` Mischa Jonker [this message]
2013-05-04 21:08   ` [Buildroot] [PATCH v4 04/12] arc: Add support for ARC-specific binutils Peter Korsgaard
2013-05-02 19:51 ` [Buildroot] [PATCH v4 05/12] arc: disable Crosstool-NG for ARC Mischa Jonker
2013-05-04 21:09   ` Peter Korsgaard
2013-05-02 19:51 ` [Buildroot] [PATCH v4 06/12] arc: add gcc " Mischa Jonker
2013-05-04 21:11   ` Peter Korsgaard
2013-05-02 19:51 ` [Buildroot] [PATCH v4 07/12] arc: Add support for ARC-specific uClibc Mischa Jonker
2013-05-04 21:21   ` Peter Korsgaard
2013-05-02 19:51 ` [Buildroot] [PATCH v4 08/12] arc: Make sure that libgcc doesn't get included when it doesn't exist yet Mischa Jonker
2013-05-04 21:22   ` Peter Korsgaard
2013-05-02 19:51 ` [Buildroot] [PATCH v4 09/12] toolchain/gcc: Only enable --with-float when it makes sense Mischa Jonker
2013-05-04 21:22   ` Peter Korsgaard
2013-05-02 19:51 ` [Buildroot] [PATCH v4 10/12] toolchain/toolchain-buildroot: Disable NPTL for ARC Mischa Jonker
2013-05-04 21:23   ` Peter Korsgaard
2013-05-02 19:51 ` [Buildroot] [PATCH v4 11/12] arc: Add arc, arcbe to gnuconfig Mischa Jonker
2013-05-04 21:23   ` Peter Korsgaard
2013-05-02 19:51 ` [Buildroot] [PATCH v4 12/12] kernel-headers: Add support for ARC kernel headers Mischa Jonker
2013-05-04 21:24   ` Peter Korsgaard
2013-05-03 18:41 ` [Buildroot] [PATCH v4 00/12] ARC port Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1367524293-32081-5-git-send-email-mjonker@synopsys.com \
    --to=mischa.jonker@synopsys.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox