From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BDD2A138AEF for ; Mon, 18 Feb 2013 20:11:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3C48CE04AB; Mon, 18 Feb 2013 20:11:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CAABDE04AB for ; Mon, 18 Feb 2013 20:11:20 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B6BB933DC51 for ; Mon, 18 Feb 2013 20:11:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 434F6E4073 for ; Mon, 18 Feb 2013 20:11:18 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1361217349.02eae3ddd3e6088e65b98f66e73b24663c65e888.vapier@gentoo> Subject: [gentoo-commits] proj/crossdev:master commit in: / X-VCS-Repository: proj/crossdev X-VCS-Files: crossdev X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 02eae3ddd3e6088e65b98f66e73b24663c65e888 X-VCS-Branch: master Date: Mon, 18 Feb 2013 20:11:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d637b1f5-02f5-48a6-ac88-32c8550844b0 X-Archives-Hash: 4e4bc8ec5983c8284b53390e2cfa482e commit: 02eae3ddd3e6088e65b98f66e73b24663c65e888 Author: Mike Frysinger gentoo org> AuthorDate: Mon Feb 18 19:50:30 2013 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Feb 18 19:55:49 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/crossdev.git;a=commit;h=02eae3dd crossdev: unify alias handling, and add a mingw64 alias URL: http://bugs.gentoo.org/457838 Reported-by: Dennis Schridde gmx.net> Signed-off-by: Mike Frysinger gentoo.org> --- crossdev | 28 +++++++++++++++++++--------- 1 files changed, 19 insertions(+), 9 deletions(-) diff --git a/crossdev b/crossdev index d13a7bf..3cab8c3 100755 --- a/crossdev +++ b/crossdev @@ -126,6 +126,7 @@ parse_target() { - bfin http://blackfin.uclinux.org/ - h8300 http://h8300-hms.sourceforge.net/ - mingw32 http://www.mingw.org/ + - mingw64 http://mingw-w64.sourceforge.net/ - msp430 http://mspgcc.sourceforge.net/ - nios2 http://www.altera.com/products/ip/processors/nios2/ni2-index.html - xc16x http://www.infineon.com/ @@ -140,6 +141,24 @@ parse_target() { # Allow for laziness if [[ ${CTARGET} != *-* ]] ; then + # Handle aliases + local aliases=() + case ${CTARGET} in + cell) aliases=( ppu spu-elf );; + mingw64) aliases=( x86_64-w64-mingw32 );; + ps2) aliases=( ee iop dvp );; + esac + if [[ ${#aliases[@]} -eq 1 ]] ; then + CTARGET=${aliases[0]} + else + einfo "The '${CTARGET}' target is really an alias for the '${aliases}' target(s)" + local alias + for alias in ${aliases} ; do + ${CROSSDEV} -t ${alias} || exit 1 + done + exit 0 + fi + # First translate portage ARCH to actual tuple case ${CTARGET} in amd64) CTARGET="x86_64";; @@ -223,20 +242,11 @@ parse_target() { BPKG="binutils-nios2"; GPKG="gcc-nios2";; - cell) einfo "The cell target is really an alias for the spu/ppu targets" - ${CROSSDEV} -t ppu || exit 1 - ${CROSSDEV} -t spu-elf || exit 1 - exit 0;; spu*) TARCH=ppc64; KPKG="[none]"; LPKG="newlib";; ppu*) TARCH=ppc64;; - ps2) einfo "The ps2 target is really an alias for the ee/iop/dvp targets" - ${CROSSDEV} -t ee || exit 1 - ${CROSSDEV} -t iop || exit 1 - ${CROSSDEV} -t dvp || exit 1 - exit 0;; ee*) TARCH=mips; KPKG="[none]" GVER="3.2.2"; BVER="2.14";