From: Alfred Persson Forsberg <cat@catcream.org>
To: gentoo-dev@lists.gentoo.org
Cc: sam@gentoo.org, llvm@gentoo.org, toolchain@gentoo.org,
cross@gentoo.org, Alfred Persson Forsberg <cat@catcream.org>
Subject: [gentoo-dev] [PATCH 0/4] Introducing cross.eclass for Crossdev ebuilds
Date: Fri, 11 Aug 2023 05:48:19 +0200 [thread overview]
Message-ID: <20230811034823.34301-2-cat@catcream.org> (raw)
In-Reply-To: <20230811034823.34301-1-cat@catcream.org>
Hello, I am working on LLVM/Clang support for Crossdev, and I propose
a new eclass for cross compilation. This is mostly due to boilerplate
currently shared by a lot of ebuilds.
One snippet of code that's used by basically all cross ebuilds is:
> export CBUILD=${CBUILD:-${CHOST}}
> export CTARGET=${CTARGET:-${CHOST}}
> if [[ ${CTARGET} == ${CHOST} ]] ; then
> if [[ ${CATEGORY} == cross-* ]] ; then
> export CTARGET=${CATEGORY#cross-}
> fi
> fi
and because I use cross_llvm-* for my categories it becomes even more
of a mess. Let me know if this is a good idea, the other way is to
inline all of this.
Alfred Persson Forsberg (4):
cross.eclass: new eclass
sys-libs/musl: Support LLVM/Clang crossdev
kernel-2.eclass: Use cross.eclass for figuring out CTARGET
sys-libs/compiler-rt: Support LLVM/Clang crossdev
eclass/cross.eclass | 83 +++++++++++++++++++
eclass/kernel-2.eclass | 7 +-
.../compiler-rt-17.0.0.9999.ebuild | 36 +++++++-
sys-libs/musl/musl-1.2.4.ebuild | 20 +----
4 files changed, 120 insertions(+), 26 deletions(-)
create mode 100644 eclass/cross.eclass
--
2.41.0
next prev parent reply other threads:[~2023-08-11 3:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-11 3:48 [gentoo-dev] [PATCH 3/4] kernel-2.eclass: Use cross.eclass for figuring out CTARGET Alfred Persson Forsberg
2023-08-11 3:48 ` Alfred Persson Forsberg [this message]
2023-08-11 3:48 ` [gentoo-dev] [PATCH 1/4] cross.eclass: new eclass Alfred Persson Forsberg
2023-08-11 3:48 ` [gentoo-dev] [PATCH 2/4] sys-libs/musl: Support LLVM/Clang crossdev Alfred Persson Forsberg
2023-08-11 3:48 ` [gentoo-dev] [PATCH 3/4] kernel-2.eclass: Use cross.eclass for figuring out CTARGET Alfred Persson Forsberg
2023-08-11 3:48 ` [gentoo-dev] [PATCH 4/4] sys-libs/compiler-rt: Support LLVM/Clang crossdev Alfred Persson Forsberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230811034823.34301-2-cat@catcream.org \
--to=cat@catcream.org \
--cc=cross@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=llvm@gentoo.org \
--cc=sam@gentoo.org \
--cc=toolchain@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox