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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 31EAF15808E for ; Sun, 24 Apr 2022 02:51:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 01F25E0878; Sun, 24 Apr 2022 02:51:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BF032E0878 for ; Sun, 24 Apr 2022 02:51:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6BDC434190F for ; Sun, 24 Apr 2022 02:51:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9C60B3BE for ; Sun, 24 Apr 2022 02:51:41 +0000 (UTC) From: "WANG Xuerui" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "WANG Xuerui" Message-ID: <1650768640.8cf1e2be6fedc48ae3a45d44e52a5386714a889c.xen0n@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/default/linux/loong/22.0/la64v100/lp64d/desktop/systemd/, ... X-VCS-Repository: repo/gentoo X-VCS-Files: profiles/arch/loong/eapi profiles/arch/loong/la64v100/lp64d/eapi profiles/arch/loong/la64v100/lp64d/make.defaults profiles/arch/loong/make.defaults profiles/arch/loong/package.use.force profiles/arch/loong/package.use.mask profiles/arch/loong/parent profiles/arch/loong/use.force profiles/arch/loong/use.mask profiles/default/linux/loong/22.0/la64v100/eapi profiles/default/linux/loong/22.0/la64v100/lp64d/desktop/eapi profiles/default/linux/loong/22.0/la64v100/lp64d/desktop/parent profiles/default/linux/loong/22.0/la64v100/lp64d/desktop/systemd/eapi profiles/default/linux/loong/22.0/la64v100/lp64d/desktop/systemd/parent profiles/default/linux/loong/22.0/la64v100/lp64d/eapi profiles/default/linux/loong/22.0/la64v100/lp64d/parent profiles/default/linux/loong/22.0/la64v100/lp64d/systemd/eapi profiles/default/linux/loong/22.0/la64v100/lp64d/systemd/parent profiles/default/linux/loong/22.0/la64v100/parent profiles/default/linux/loong/eapi profiles/default/linux/loong/parent prof iles/profiles.desc X-VCS-Directories: profiles/default/linux/loong/22.0/la64v100/lp64d/ profiles/default/linux/loong/22.0/la64v100/lp64d/desktop/ profiles/default/linux/loong/22.0/la64v100/lp64d/desktop/systemd/ profiles/default/linux/loong/22.0/la64v100/ profiles/arch/loong/ profiles/ profiles/default/linux/loong/ profiles/arch/loong/la64v100/lp64d/ profiles/default/linux/loong/22.0/la64v100/lp64d/systemd/ X-VCS-Committer: xen0n X-VCS-Committer-Name: WANG Xuerui X-VCS-Revision: 8cf1e2be6fedc48ae3a45d44e52a5386714a889c X-VCS-Branch: master Date: Sun, 24 Apr 2022 02:51:41 +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: 09d10771-5aa7-4e77-a4a0-f0b83ccf5ed6 X-Archives-Hash: 8857569d76956eaced7cd00f95af3951 commit: 8cf1e2be6fedc48ae3a45d44e52a5386714a889c Author: WANG Xuerui gentoo org> AuthorDate: Mon Apr 18 07:58:39 2022 +0000 Commit: WANG Xuerui gentoo org> CommitDate: Sun Apr 24 02:50:40 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cf1e2be profiles: import the initial LoongArch profiles These have been brewing in the loongson-overlay for a while now; let's continue work in the main tree! (Dropped profiles to exp status, and removed all package.accept_keywords and package.use entries pending real keywording/testing, for ::gentoo. Also revised some comments along the way.) Closes: https://github.com/gentoo/gentoo/pull/25083 Reviewed-by: Sam James gentoo.org> Signed-off-by: WANG Xuerui gentoo.org> profiles/arch/loong/eapi | 1 + profiles/arch/loong/la64v100/lp64d/eapi | 1 + profiles/arch/loong/la64v100/lp64d/make.defaults | 21 +++++++++ profiles/arch/loong/make.defaults | 52 ++++++++++++++++++++++ profiles/arch/loong/package.use.force | 15 +++++++ profiles/arch/loong/package.use.mask | 44 ++++++++++++++++++ profiles/arch/loong/parent | 1 + profiles/arch/loong/use.force | 5 +++ profiles/arch/loong/use.mask | 5 +++ profiles/default/linux/loong/22.0/la64v100/eapi | 1 + .../linux/loong/22.0/la64v100/lp64d/desktop/eapi | 1 + .../linux/loong/22.0/la64v100/lp64d/desktop/parent | 2 + .../loong/22.0/la64v100/lp64d/desktop/systemd/eapi | 1 + .../22.0/la64v100/lp64d/desktop/systemd/parent | 2 + .../default/linux/loong/22.0/la64v100/lp64d/eapi | 1 + .../default/linux/loong/22.0/la64v100/lp64d/parent | 2 + .../linux/loong/22.0/la64v100/lp64d/systemd/eapi | 1 + .../linux/loong/22.0/la64v100/lp64d/systemd/parent | 2 + profiles/default/linux/loong/22.0/la64v100/parent | 2 + profiles/default/linux/loong/eapi | 1 + profiles/default/linux/loong/parent | 3 ++ profiles/profiles.desc | 7 +++ 22 files changed, 171 insertions(+) diff --git a/profiles/arch/loong/eapi b/profiles/arch/loong/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/arch/loong/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/arch/loong/la64v100/lp64d/eapi b/profiles/arch/loong/la64v100/lp64d/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/arch/loong/la64v100/lp64d/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/arch/loong/la64v100/lp64d/make.defaults b/profiles/arch/loong/la64v100/lp64d/make.defaults new file mode 100644 index 000000000000..bbe4f93abf3c --- /dev/null +++ b/profiles/arch/loong/la64v100/lp64d/make.defaults @@ -0,0 +1,21 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# LoongArch la64v100/lp64d no-multilib profile +# +# la64v100 -- the ISA as defined in LoongArch Reference Manual Volume 1, v1.00. + +CHOST="loongarch64-unknown-linux-gnu" +MULTILIB_ABIS="lp64d" +DEFAULT_ABI="lp64d" +ABI="lp64d" + +CFLAGS="-O2 -pipe -march=loongarch64 -mabi=lp64d" +CXXFLAGS="${CFLAGS}" +FFLAGS="${CFLAGS}" +FCFLAGS="${CFLAGS}" + +# We have only one ABI +MULTILIB_ABIS="lp64d" +DEFAULT_ABI="lp64d" +ABI="lp64d" diff --git a/profiles/arch/loong/make.defaults b/profiles/arch/loong/make.defaults new file mode 100644 index 000000000000..3c0828d8bc2b --- /dev/null +++ b/profiles/arch/loong/make.defaults @@ -0,0 +1,52 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Main LoongArch profile directory. Common settings for all loong profiles. +# +# Subdirectories represent choices for base instruction set; the names come +# from the "Base Architecture" table, in the *LoongArch Toolchain Conventions* +# document. +# +# https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html + +# This is not a complete profile. Use the subdirectories! + +ARCH="loong" +ACCEPT_KEYWORDS="loong ~loong" + +USE_EXPAND_VALUES_ARCH="${USE_EXPAND_VALUES_ARCH} loong" + +CFLAGS="-O2 -pipe" +CXXFLAGS="${CFLAGS}" +FFLAGS="${CFLAGS}" +FCFLAGS="${CFLAGS}" + +SYMLINK_LIB="no" + +# Note about LIBDIR_*: +# +# Unlike riscv profiles, LoongArch so far has not defined exact multilib +# layouts for non-multiarch (i.e. non-Debian-derived) systems; also the ABIs +# other than LP64D are underdeveloped and likely unusable. So here we only +# give definitions for lp64d. +# +# Should any official spec be revised such that a multilib layout is given, +# definitions here should be updated to stay compliant. + +# Flags for lp64d +LIBDIR_lp64d="lib64" +CFLAGS_lp64d="-mabi=lp64d" +LDFLAGS_lp64d="-m elf64loongarch" +CHOST_lp64d="loongarch64-unknown-linux-gnu" + +# Since many people will want to test this in qemu... +FEATURES="-pid-sandbox -network-sandbox -ipc-sandbox" + +# We need to fetch https git repo (gcc) during bootstrap, before gcc-12.1.0 +# is officially released. +BOOTSTRAP_USE="${BOOTSTRAP_USE} curl_ssl_openssl ssl" + +# The following stuff MUST be defined in subdirs: +# ABI +# DEFAULT_ABI +# MULTILIB_ABIS diff --git a/profiles/arch/loong/package.use.force b/profiles/arch/loong/package.use.force new file mode 100644 index 000000000000..c48378812752 --- /dev/null +++ b/profiles/arch/loong/package.use.force @@ -0,0 +1,15 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# WANG Xuerui (2022-04-24) +# Force-enable experimental-loong on toolchain packages; we're loong. +sys-kernel/linux-headers experimental-loong +sys-libs/glibc experimental-loong + +# WANG Xuerui (2022-04-18) +# gcc-12 is live ebuild for now, hence requiring this +dev-vcs/git curl + +# WANG Xuerui (2022-04-18) +# Newer spidermonkey not available yet (due to absence of rust) +sys-auth/polkit duktape diff --git a/profiles/arch/loong/package.use.mask b/profiles/arch/loong/package.use.mask new file mode 100644 index 000000000000..277c269898d7 --- /dev/null +++ b/profiles/arch/loong/package.use.mask @@ -0,0 +1,44 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# WANG Xuerui (2022-04-24) +# Unmask experimental-loong on toolchain packages; we're loong. +sys-kernel/linux-headers -experimental-loong +sys-libs/glibc -experimental-loong + +# WANG Xuerui (2022-04-18) +# Mask io-uring & zbc pending keywording +sys-block/fio -io-uring -zbc + +# WANG Xuerui (2022-04-18) +# We never had non-deprecated libcrypt support from glibc, so disable compat +# from libxcrypt for a world without libcrypt.so.1 +>=sys-libs/libxcrypt-4.4.23-r1 compat + +# WANG Xuerui (2022-04-18) +# Catalyst has support for assembling bootloader on this arch +dev-util/catalyst -system-bootloader + +# The below masks are liberally taken from riscv, which has similar +# limitations. + +# LoongArch has no gold +sys-devel/binutils gold + +# sys-libs/libunwind do not support LoongArch for now +dev-libs/efl unwind +dev-util/strace unwind +media-libs/gstreamer unwind +media-libs/mesa unwind +net-libs/zeromq unwind +net-mail/dovecot unwind +x11-base/xorg-server unwind +x11-base/xwayland unwind + +# These aren't ported to LoongArch yet +dev-libs/libpcre2 jit +dev-libs/libpcre jit +