summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-18 01:18:21 +0000
committerSam James <sam@gentoo.org>2022-03-25 19:47:40 +0000
commit7f33a4d20fa0dc82c6e82c027e6d536a77a4d278 (patch)
tree87b7878006c76214d482c8e54628fc1dbe55f5bb /eclass
parentapp-misc/solaar: add missing python-evdev dependency (diff)
downloadgentoo-7f33a4d20fa0dc82c6e82c027e6d536a77a4d278.tar.gz
gentoo-7f33a4d20fa0dc82c6e82c027e6d536a77a4d278.tar.bz2
gentoo-7f33a4d20fa0dc82c6e82c027e6d536a77a4d278.zip
multilib.eclass: document multilib_env
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/multilib.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass
index fadd371f3ca7..ec2676cb6cfb 100644
--- a/eclass/multilib.eclass
+++ b/eclass/multilib.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: multilib.eclass
@@ -299,8 +299,13 @@ get_modname() {
echo ".${modname}"
}
+# @FUNCTION: multilib_env
+# @USAGE:
+# @DESCRIPTION:
# This is for the toolchain to setup profile variables when pulling in
# a crosscompiler (and thus they aren't set in the profile).
+#
+# This must only be used by toolchain packages.
multilib_env() {
local CTARGET=${1:-${CTARGET}}
local cpu=${CTARGET%%*-}