From owner-svn-ports-all@freebsd.org Wed Aug 7 21:47:05 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 96C58B8F8B; Wed, 7 Aug 2019 21:47:05 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 463lTP2tHjz4Nxp; Wed, 7 Aug 2019 21:47:05 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 462801B0A1; Wed, 7 Aug 2019 21:47:05 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x77Ll5YH071966; Wed, 7 Aug 2019 21:47:05 GMT (envelope-from lwhsu@FreeBSD.org) Received: (from lwhsu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x77Ll43t071962; Wed, 7 Aug 2019 21:47:04 GMT (envelope-from lwhsu@FreeBSD.org) Message-Id: <201908072147.x77Ll43t071962@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lwhsu set sender to lwhsu@FreeBSD.org using -f From: Li-Wen Hsu Date: Wed, 7 Aug 2019 21:47:04 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: lwhsu X-SVN-Commit-Paths: in head/devel: . binutils/files s390x-binutils X-SVN-Commit-Revision: 508352 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2019 21:47:05 -0000 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