Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2019 21:47:04 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r508352 - in head/devel: . binutils/files s390x-binutils
Message-ID:  <201908072147.x77Ll43t071962@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lwhsu
Date: Wed Aug  7 21:47:04 2019
New Revision: 508352
URL: https://svnweb.freebsd.org/changeset/ports/508352

Log:
  Add devel/s390x-binutils, GNU binutils for s390x cross-development
  
  PR:		215939
  Submitted by:	bz

Added:
  head/devel/binutils/files/patch-s390x.diff   (contents, props changed)
  head/devel/s390x-binutils/
  head/devel/s390x-binutils/Makefile   (contents, props changed)
  head/devel/s390x-binutils/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed Aug  7 21:14:59 2019	(r508351)
+++ head/devel/Makefile	Wed Aug  7 21:47:04 2019	(r508352)
@@ -6053,6 +6053,7 @@
     SUBDIR += rust-cbindgen
     SUBDIR += rvi
     SUBDIR += rvm
+    SUBDIR += s390x-binutils
     SUBDIR += sabre
     SUBDIR += safe-iop
     SUBDIR += samurai

Added: head/devel/binutils/files/patch-s390x.diff
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/binutils/files/patch-s390x.diff	Wed Aug  7 21:47:04 2019	(r508352)
@@ -0,0 +1,57 @@
+--- ./ld/configure.tgt.orig	2019-01-19 16:01:33.000000000 +0000
++++ ./ld/configure.tgt	2019-08-07 20:41:31.800693000 +0000
+@@ -651,6 +651,10 @@ rs6000-*-aix*)		targ_emul=aixrs6
+ 			;;
+ rl78-*-*)		targ_emul=elf32rl78 ;;
+ rx-*-*)			targ_emul=elf32rx ;;
++s390x-*-freebsd*)	targ_emul=elf64_s390
++			targ_extra_emuls=elf_s390
++			targ_extra_libpath=$targ_extra_emuls
++			tdir_elf_s390=`echo ${targ_alias} | sed -e 's/s390x/s390/'` ;;
+ s390x-*-linux*)		targ_emul=elf64_s390
+ 			targ_extra_emuls=elf_s390
+ 			targ_extra_libpath=$targ_extra_emuls
+--- ./gas/configure.orig	2019-02-02 15:50:20.000000000 +0000
++++ ./gas/configure	2019-08-07 20:44:45.468441000 +0000
+@@ -7095,6 +7095,7 @@ ia64-*-hpux*)
+   ;;
+ 
+ x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
++s390*-*freebsd*| \
+ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+   # Find out which ABI we are using.
+   echo 'int i;' > conftest.$ac_ext
+@@ -7125,6 +7126,9 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+ 	  powerpc64-*linux*)
+ 	    LD="${LD-ld} -m elf32ppclinux"
+ 	    ;;
++	  s390x-*freebsd*)
++	    LD="${LD-ld} -m elf_s390"
++	    ;;
+ 	  s390x-*linux*)
+ 	    LD="${LD-ld} -m elf_s390"
+ 	    ;;
+@@ -7146,6 +7150,9 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+ 	    ;;
+ 	  powerpc-*linux*)
+ 	    LD="${LD-ld} -m elf64ppc"
++	    ;;
++	  s390*-*freebsd*)
++	    LD="${LD-ld} -m elf64_s390"
+ 	    ;;
+ 	  s390*-*linux*|s390*-*tpf*)
+ 	    LD="${LD-ld} -m elf64_s390"
+--- ./bfd/config.bfd.orig	2019-08-07 20:35:52.161591000 +0000
++++ ./bfd/config.bfd	2019-08-07 20:40:33.579807000 +0000
+@@ -1213,6 +1213,11 @@ case "${targ}" in
+     want64=true
+     ;;
+ #ifdef BFD64
++  s390x-*-freebsd*)
++    targ_defvec=s390_elf64_vec
++    targ_selvecs=s390_elf32_vec
++    want64=true
++    ;;
+   s390x-*-linux*)
+     targ_defvec=s390_elf64_vec
+     targ_selvecs=s390_elf32_vec

Added: head/devel/s390x-binutils/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/s390x-binutils/Makefile	Wed Aug  7 21:47:04 2019	(r508352)
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+COMMENT=	GNU binutils for s390x cross-development
+PKGNAMEPREFIX=	s390x-
+PLIST=	${.CURDIR}/pkg-plist
+
+MASTERDIR=	${.CURDIR}/../binutils
+
+.include "${MASTERDIR}/Makefile"

Added: head/devel/s390x-binutils/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/s390x-binutils/pkg-plist	Wed Aug  7 21:47:04 2019	(r508352)
@@ -0,0 +1,101 @@
+bin/%%BUTARGET%%-addr2line
+bin/%%BUTARGET%%-ar
+bin/%%BUTARGET%%-as
+bin/%%BUTARGET%%-c++filt
+bin/%%BUTARGET%%-elfedit
+bin/%%BUTARGET%%-gprof
+bin/%%BUTARGET%%-ld
+bin/%%BUTARGET%%-ld.bfd
+bin/%%BUTARGET%%-nm
+bin/%%BUTARGET%%-objcopy
+bin/%%BUTARGET%%-objdump
+bin/%%BUTARGET%%-ranlib
+bin/%%BUTARGET%%-readelf
+bin/%%BUTARGET%%-size
+bin/%%BUTARGET%%-strings
+bin/%%BUTARGET%%-strip
+man/man1/%%BUTARGET%%-addr2line.1.gz
+man/man1/%%BUTARGET%%-ar.1.gz
+man/man1/%%BUTARGET%%-as.1.gz
+man/man1/%%BUTARGET%%-c++filt.1.gz
+man/man1/%%BUTARGET%%-dlltool.1.gz
+man/man1/%%BUTARGET%%-elfedit.1.gz
+man/man1/%%BUTARGET%%-gprof.1.gz
+man/man1/%%BUTARGET%%-ld.1.gz
+man/man1/%%BUTARGET%%-nm.1.gz
+man/man1/%%BUTARGET%%-objcopy.1.gz
+man/man1/%%BUTARGET%%-objdump.1.gz
+man/man1/%%BUTARGET%%-ranlib.1.gz
+man/man1/%%BUTARGET%%-readelf.1.gz
+man/man1/%%BUTARGET%%-size.1.gz
+man/man1/%%BUTARGET%%-strings.1.gz
+man/man1/%%BUTARGET%%-strip.1.gz
+man/man1/%%BUTARGET%%-windmc.1.gz
+man/man1/%%BUTARGET%%-windres.1.gz
+%%BUTARGET%%/bin/ar
+%%BUTARGET%%/bin/as
+%%BUTARGET%%/bin/ld
+%%BUTARGET%%/bin/ld.bfd
+%%BUTARGET%%/bin/nm
+%%BUTARGET%%/bin/objcopy
+%%BUTARGET%%/bin/objdump
+%%BUTARGET%%/bin/ranlib
+%%BUTARGET%%/bin/readelf
+%%BUTARGET%%/bin/size
+%%BUTARGET%%/bin/strip
+%%BUTARGET%%/lib/ldscripts/elf_s390.x
+%%BUTARGET%%/lib/ldscripts/elf_s390.xbn
+%%BUTARGET%%/lib/ldscripts/elf_s390.xc
+%%BUTARGET%%/lib/ldscripts/elf_s390.xce
+%%BUTARGET%%/lib/ldscripts/elf_s390.xd
+%%BUTARGET%%/lib/ldscripts/elf_s390.xdc
+%%BUTARGET%%/lib/ldscripts/elf_s390.xdce
+%%BUTARGET%%/lib/ldscripts/elf_s390.xde
+%%BUTARGET%%/lib/ldscripts/elf_s390.xdw
+%%BUTARGET%%/lib/ldscripts/elf_s390.xdwe
+%%BUTARGET%%/lib/ldscripts/elf_s390.xe
+%%BUTARGET%%/lib/ldscripts/elf_s390.xn
+%%BUTARGET%%/lib/ldscripts/elf_s390.xr
+%%BUTARGET%%/lib/ldscripts/elf_s390.xs
+%%BUTARGET%%/lib/ldscripts/elf_s390.xsc
+%%BUTARGET%%/lib/ldscripts/elf_s390.xsce
+%%BUTARGET%%/lib/ldscripts/elf_s390.xse
+%%BUTARGET%%/lib/ldscripts/elf_s390.xsw
+%%BUTARGET%%/lib/ldscripts/elf_s390.xswe
+%%BUTARGET%%/lib/ldscripts/elf_s390.xu
+%%BUTARGET%%/lib/ldscripts/elf_s390.xw
+%%BUTARGET%%/lib/ldscripts/elf_s390.xwe
+%%BUTARGET%%/lib/ldscripts/elf64_s390.x
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xbn
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xc
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xce
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xceo
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xco
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xd
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xdc
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xdce
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xdceo
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xdco
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xde
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xdeo
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xdo
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xdw
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xdwe
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xe
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xeo
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xn
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xo
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xr
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xs
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xsc
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xsce
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xsceo
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xsco
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xse
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xseo
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xso
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xsw
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xswe
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xu
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xw
+%%BUTARGET%%/lib/ldscripts/elf64_s390.xwe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908072147.x77Ll43t071962>