From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0FFD1158086 for ; Wed, 27 Oct 2021 08:56:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5C0C1E07FE; Wed, 27 Oct 2021 08:56:52 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 47294E07FE for ; Wed, 27 Oct 2021 08:56:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7BFCF3436E7 for ; Wed, 27 Oct 2021 08:56:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 195CA89 for ; Wed, 27 Oct 2021 08:56:50 +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: <1635324993.47ee5ddb13ec874d6f776fe720a3ece604b27f09.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: 47ee5ddb13ec874d6f776fe720a3ece604b27f09 X-VCS-Branch: master Date: Wed, 27 Oct 2021 08:56:50 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 231d7c9c-8458-417e-8f48-3a19fd8864b7 X-Archives-Hash: a0eb2ec88aff918ca91c2ed813dff4fb commit: 47ee5ddb13ec874d6f776fe720a3ece604b27f09 Author: Dan Callaghan google com> AuthorDate: Mon Oct 25 09:42:09 2021 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Wed Oct 27 08:56:33 2021 +0000 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=47ee5ddb crossdev: add command-line options to override toolchain packages For some unusual targets, it may be desirable to use a different package name than the default. For example, a target might use picolibc instead of newlib for its libc package, or it might use a different copy of the gcc package than the usual sys-devel/gcc. Closes: https://bugs.gentoo.org/820176 Signed-off-by: Mike Frysinger gentoo.org> crossdev | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crossdev b/crossdev index e3dd6fe..6963d9d 100755 --- a/crossdev +++ b/crossdev @@ -59,6 +59,8 @@ Options: ${GOOD}--env${NORMAL} env Specify env settings for all packages (see below) ${GOOD}--[bdgkl]env${NORMAL} env Specify env settings for binutils/gdb/gcc/kernel/libc Note: make sure to quote: 'VAR="some value"\nFOO="cow"' + ${GOOD}--[bdgkl]cat${NORMAL} category Use binutils/gdb/gcc/kernel/libc package from category + ${GOOD}--[bdgkl]pkg${NORMAL} pkg Use binutils/gdb/gcc/kernel/libc package with given name ${GOOD}-f, --force${NORMAL} I don't need a seat belt! ${GOOD}-S, --stable${NORMAL} Use latest stable versions as default ${GOOD}-C, --clean${NORMAL} target Uninstall specified target @@ -66,6 +68,7 @@ Options: ${GOOD}--with[out]-headers${NORMAL} Build C library headers before C compiler? ${GOOD}--show-fail-log${NORMAL} If the build fails, dump the failing log + Overlay Options: ${GOOD}-oS, --overlays${NORMAL} list Space delimited list of overlays to search [default: \`portageq repositories_configuration\`] @@ -821,18 +824,28 @@ while [[ $# -gt 0 ]] ; do --b|--binutils) shift; BVER=$1;; --benv) shift; BENV=$1;; -ob|--ov-binutils) shift; BOVL=$1;; + --bcat) shift; BCAT=$1;; + --bpkg) shift; BPKG=$1;; --d|--gdb) shift; DVER=$1;; --denv) shift; DENV=$1;; -od|--ov-gdb) shift; DOVL=$1;; + --dcat) shift; DCAT=$1;; + --dpkg) shift; DPKG=$1;; --g|--gcc) shift; GVER=$1;; --genv) shift; GENV=$1;; -og|--ov-gcc) shift; GOVL=$1;; + --gcat) shift; GCAT=$1;; + --gpkg) shift; GPKG=$1;; --k|--kernel) shift; KVER=$1;; --kenv) shift; KENV=$1;; -ok|--ov-kernel) shift; KOVL=$1;; + --kcat) shift; KCAT=$1;; + --kpkg) shift; KPKG=$1;; --l|--libc) shift; LVER=$1;; --lenv) shift; LENV=$1;; -ol|--ov-libc) shift; LOVL=$1;; + --lcat) shift; LCAT=$1;; + --lpkg) shift; LPKG=$1;; -ox|--ov-extra) shift; XOVLS+=( "$1" );; --env) shift; AENV=$1;; -A|--abis) shift; MULTILIB_ABIS=$1;;