commit:     47ee5ddb13ec874d6f776fe720a3ece604b27f09
Author:     Dan Callaghan <dcallagh <AT> google <DOT> com>
AuthorDate: Mon Oct 25 09:42:09 2021 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> 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 <vapier <AT> 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;;

Reply via email to