From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/7] arc: Add support for ARC-specific binutils
Date: Mon, 22 Apr 2013 20:35:07 +0200 [thread overview]
Message-ID: <517582DB.8050409@mind.be> (raw)
In-Reply-To: <1366630651-6857-4-git-send-email-mjonker@synopsys.com>
On 22/04/13 13:37, Mischa Jonker wrote:
> ARC support is not upstream yet...
>
> Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
> ---
> package/binutils/Config.in.host | 17 ++++++---
> .../300-001_ld_makefile_patch.patch | 24 +++++++++++++
> .../300-012_check_ldrunpath_length.patch | 21 +++++++++++
> .../binutils/binutils-2.19-arc/500-sysroot.patch | 36 ++++++++++++++++++++
> package/binutils/binutils.mk | 3 ++
> 5 files changed, 95 insertions(+), 6 deletions(-)
> create mode 100644 package/binutils/binutils-2.19-arc/300-001_ld_makefile_patch.patch
> create mode 100644 package/binutils/binutils-2.19-arc/300-012_check_ldrunpath_length.patch
> create mode 100644 package/binutils/binutils-2.19-arc/500-sysroot.patch
>
> diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
> index a61a503..b634796 100644
> --- a/package/binutils/Config.in.host
> +++ b/package/binutils/Config.in.host
> @@ -12,28 +12,32 @@ choice
> depends on BR2_avr32
> bool "binutils 2.18-avr32-1.0.1"
>
> + config BR2_BINUTILS_VERSION_2_19_ARC
> + depends on BR2_arc || BR2_arceb
> + bool "binutils 2.19-arc"
> +
Do you expect that there actually will be several binutils versions for
ARC (until it's accepted upstream, obviously)? If not, then I'd prefer to
make the whole choice depend on !BR2_arc and define this config outside
of the choice (and without prompt). If later on there turns out to be
another binutils version with ARC support, it can easily be moved inside
the choice.
> config BR2_BINUTILS_VERSION_2_20_1
> - depends on !BR2_avr32
> + depends on !(BR2_arc || BR2_arceb || BR2_avr32)
> bool "binutils 2.20.1"
>
> config BR2_BINUTILS_VERSION_2_21
> - depends on !BR2_avr32
> + depends on !(BR2_arc || BR2_arceb || BR2_avr32)
> bool "binutils 2.21"
>
> config BR2_BINUTILS_VERSION_2_21_1
> - depends on !(BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
> + depends on !(BR2_arc || BR2_arceb || BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
> bool "binutils 2.21.1"
>
> config BR2_BINUTILS_VERSION_2_22
> - depends on !(BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
> + depends on !(BR2_arc || BR2_arceb || BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
> bool "binutils 2.22"
>
> config BR2_BINUTILS_VERSION_2_23_1
> - depends on !(BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
> + depends on !(BR2_arc || BR2_arceb || BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
> bool "binutils 2.23.1"
>
> config BR2_BINUTILS_VERSION_2_23_2
> - depends on !(BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
> + depends on !(BR2_arc || BR2_arceb || BR2_avr32 || BR2_UCLIBC_VERSION_0_9_31)
> bool "binutils 2.23.2"
>
> endchoice
> @@ -41,6 +45,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_BINUTILS_VERSION_2_19_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-2.19-arc/300-001_ld_makefile_patch.patch b/package/binutils/binutils-2.19-arc/300-001_ld_makefile_patch.patch
> new file mode 100644
> index 0000000..5cb0f61
> --- /dev/null
> +++ b/package/binutils/binutils-2.19-arc/300-001_ld_makefile_patch.patch
Please add the equivalent of a commit message to the patches: single
line short description, blank line, extended explanation, blank line,
Signed-off-by line. See docs/manual/patch-policy.txt
> @@ -0,0 +1,24 @@
> +diff -u binutils-2.17.50.0.17.oorig/ld/Makefile.am binutils-2.17.50.0.17/ld/Makefile.am
> +--- binutils-2.17.50.0.17.oorig/ld/Makefile.am 2007-06-18 19:29:29.000000000 +0200
> ++++ binutils-2.17.50.0.17/ld/Makefile.am 2007-06-25 10:00:36.000000000 +0200
^^ This doesn't seem right...
> +@@ -18,7 +18,7 @@
> + # We put the scripts in the directory $(scriptdir)/ldscripts.
> + # We can't put the scripts in $(datadir) because the SEARCH_DIR
> + # directives need to be different for native and cross linkers.
> +-scriptdir = $(tooldir)/lib
> ++scriptdir = $(libdir)
> +
> + EMUL = @EMUL@
> + EMULATION_OFILES = @EMULATION_OFILES@
Otherwise, looks good.
Regards,
Arnout
[snip]
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2013-04-22 18:35 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-22 11:37 [Buildroot] [PATCH 0/7] RFC: ARC port Mischa Jonker
2013-04-22 11:37 ` [Buildroot] [PATCH 1/7] arc: Add ARC and ARC BE architecture Mischa Jonker
2013-04-22 15:47 ` Thomas Petazzoni
2013-04-22 18:40 ` Arnout Vandecappelle
2013-04-22 11:37 ` [Buildroot] [PATCH 2/7] arc: Add option for ARC-specific download site Mischa Jonker
2013-04-22 15:48 ` Thomas Petazzoni
2013-04-22 18:25 ` Arnout Vandecappelle
2013-04-22 11:37 ` [Buildroot] [PATCH 3/7] arc: Add support for ARC-specific binutils Mischa Jonker
2013-04-22 15:49 ` Thomas Petazzoni
2013-04-22 18:35 ` Arnout Vandecappelle [this message]
2013-04-22 18:36 ` Arnout Vandecappelle
2013-04-22 11:37 ` [Buildroot] [PATCH 4/7] arc: Add ARC specific kernel headers Mischa Jonker
2013-04-22 15:52 ` Thomas Petazzoni
2013-04-22 11:37 ` [Buildroot] [PATCH 5/7] arc: Add support for ARC-specific GCC Mischa Jonker
2013-04-22 15:56 ` Thomas Petazzoni
2013-04-24 12:44 ` Mischa Jonker
2013-04-24 14:27 ` Thomas Petazzoni
2013-04-24 15:19 ` Mischa Jonker
2013-04-24 21:19 ` Yann E. MORIN
2013-04-22 11:37 ` [Buildroot] [PATCH 6/7] arc: Add support for ARC-specific uClibc Mischa Jonker
2013-04-22 15:56 ` Thomas Petazzoni
2013-04-22 11:37 ` [Buildroot] [PATCH 7/7] arc: Make sure that libgcc doesn't get included when it doesn't exist yet Mischa Jonker
2013-04-22 15:57 ` Thomas Petazzoni
2013-04-22 15:46 ` [Buildroot] [PATCH 0/7] RFC: ARC port Thomas Petazzoni
2013-04-22 16:01 ` [Buildroot] Plan of libffi support? Thomas Petazzoni
2013-04-24 6:38 ` Mischa Jonker
2013-04-24 14:38 ` 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=517582DB.8050409@mind.be \
--to=arnout@mind.be \
--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