summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-06-21 01:52:32 -0700
committerRoland McGrath <roland@hack.frob.com>2014-06-21 01:52:32 -0700
commit393808ed6a33618167c925cbe77583505686e506 (patch)
tree10ee77a6cd36de14382dd3432ca95fd444f6a12e
parentd63765245f794d6d56dbb140546104b7dfdf6959 (diff)
downloadcross-binutils-arm-nacl.tar.gz
cross-binutils-arm-nacl.tar.xz
cross-binutils-arm-nacl.zip
Add arm-nacl target.arm-nacl
-rw-r--r--cross-binutils.spec17
1 files changed, 12 insertions, 5 deletions
diff --git a/cross-binutils.spec b/cross-binutils.spec
index f248c15..6b552b1 100644
--- a/cross-binutils.spec
+++ b/cross-binutils.spec
@@ -32,6 +32,9 @@
%define build_x86_64 %{build_all}
%define build_xtensa %{build_all}
+%define build_nacl %{build_all}
+%define buile_arm_nacl %{build_nacl}
+
# 32-bit packages we don't build as we can use the 64-bit package instead
%define build_i386 0
%define build_mips 0
@@ -47,7 +50,7 @@
Summary: A GNU collection of cross-compilation binary utilities
Name: %{cross}-binutils
Version: 2.24
-Release: 5%{?dist}
+Release: 6%{?dist}
License: GPLv3+
Group: Development/Tools
URL: http://sources.redhat.com/binutils
@@ -305,6 +308,7 @@ cd ..
prep_target unicore32-linux-gnu %{build_unicore32}
prep_target x86_64-linux-gnu %{build_x86_64}
prep_target xtensa-linux-gnu %{build_xtensa}
+ prep_target arm-nacl %{build_arm_nacl}
) 5>target.list
n=0
@@ -329,10 +333,10 @@ fi
function config_target () {
arch=$1
prefix=$arch-
- build_dir=${1%%%%-*}
+ build_dir=$arch
case $arch in
- arm-*) target=arm-linux-gnueabi;;
+ arm-linux*) target=arm-linux-gnueabi;;
aarch64-*) target=aarch64-linux-gnu;;
avr32-*) target=avr-linux;;
bfin-*) target=bfin-uclinux;;
@@ -421,7 +425,7 @@ do
done
function build_target () {
- build_dir=${1%%%%-*}
+ build_dir=$1
make -C $build_dir %{_smp_mflags} tooldir=%{_prefix} all
}
@@ -470,7 +474,7 @@ rm -rf %{buildroot}
function install_bin () {
cpu=${1%%%%-*}
- build_dir=$cpu
+ build_dir=$1
make install -C $build_dir DESTDIR=%{buildroot}
# We want links for ppc and ppc64 also if we make powerpc or powerpc64
@@ -686,6 +690,9 @@ rm -rf %{buildroot}
%do_files xtensa-linux-gnu %{build_xtensa}
%changelog
+* Sat Jun 21 2014 Roland McGrath <roland@hack.frob.com> - 2.24-6
+- Add arm-nacl target.
+
* Sat Jun 21 2014 Roland McGrath <roland@hack.frob.com> - 2.24-5
- Build ld.gold for targets it supports.