* [gentoo-commits] proj/riscv:master commit in: profiles/arch/riscv/rv64gc/, profiles/arch/riscv/
@ 2019-05-02 21:45 Andreas K. Hüttel
0 siblings, 0 replies; 2+ messages in thread
From: Andreas K. Hüttel @ 2019-05-02 21:45 UTC (permalink / raw
To: gentoo-commits
commit: 5a576e626fb9459377ad3628f780b47ab2888158
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Thu May 2 21:44:56 2019 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Thu May 2 21:44:56 2019 +0000
URL: https://gitweb.gentoo.org/proj/riscv.git/commit/?id=5a576e62
profiles: Rework so we only use python-3.7 (no patches needed there)
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
profiles/arch/riscv/package.accept_keywords | 1 -
profiles/arch/riscv/rv64gc/make.defaults | 4 ++++
profiles/arch/riscv/{ => rv64gc}/package.mask | 2 +-
profiles/arch/riscv/rv64gc/use.mask | 8 ++++++++
profiles/arch/riscv/use.mask | 3 ---
5 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/profiles/arch/riscv/package.accept_keywords b/profiles/arch/riscv/package.accept_keywords
index 41b16e7..dc5941f 100644
--- a/profiles/arch/riscv/package.accept_keywords
+++ b/profiles/arch/riscv/package.accept_keywords
@@ -1,5 +1,4 @@
# we need specific versions / patches for riscv
-dev-lang/python -amd64 -~amd64
sys-devel/gcc -amd64 -~amd64
sys-libs/glibc -amd64 -~amd64
diff --git a/profiles/arch/riscv/rv64gc/make.defaults b/profiles/arch/riscv/rv64gc/make.defaults
index 43de775..0d78820 100644
--- a/profiles/arch/riscv/rv64gc/make.defaults
+++ b/profiles/arch/riscv/rv64gc/make.defaults
@@ -36,3 +36,7 @@ USE_EXPAND_HIDDEN="-ABI_RISCV"
# Implicitly enable lp64d in ebuilds without multilib support
IUSE_IMPLICIT="abi_riscv_lp64d"
+
+# Enable Python 3.7 (and potentially later versions) only
+PYTHON_TARGETS="python3_7"
+PYTHON_SINGLE_TARGET="python3_7"
diff --git a/profiles/arch/riscv/package.mask b/profiles/arch/riscv/rv64gc/package.mask
similarity index 70%
rename from profiles/arch/riscv/package.mask
rename to profiles/arch/riscv/rv64gc/package.mask
index 887eef2..e351251 100644
--- a/profiles/arch/riscv/package.mask
+++ b/profiles/arch/riscv/rv64gc/package.mask
@@ -1,2 +1,2 @@
# Doesnt work properly with the two-level libdirs
-dev-lang/python:2.7
+<dev-lang/python-3.7
diff --git a/profiles/arch/riscv/rv64gc/use.mask b/profiles/arch/riscv/rv64gc/use.mask
index cf1e9a0..f7180f2 100644
--- a/profiles/arch/riscv/rv64gc/use.mask
+++ b/profiles/arch/riscv/rv64gc/use.mask
@@ -1,3 +1,11 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
# Unmask the multilib flags for this arch.
-abi_riscv_lp64d
-abi_riscv_lp64
+
+# Our Python has a lot of trouble with the two-level libdir.
+python_targets_python2_7
+python_targets_python3_5
+python_targets_python3_6
diff --git a/profiles/arch/riscv/use.mask b/profiles/arch/riscv/use.mask
index d974bbe..7e3b454 100644
--- a/profiles/arch/riscv/use.mask
+++ b/profiles/arch/riscv/use.mask
@@ -6,6 +6,3 @@
# The required library has not been ported to riscv yet.
seccomp
-
-# Python 2 has a lot of trouble with the two-level libdir.
-python_targets_python2_7
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/riscv:master commit in: profiles/arch/riscv/rv64gc/, profiles/arch/riscv/
@ 2020-09-05 15:21 Andreas K. Hüttel
0 siblings, 0 replies; 2+ messages in thread
From: Andreas K. Hüttel @ 2020-09-05 15:21 UTC (permalink / raw
To: gentoo-commits
commit: 7d1b4e4b0bdc9988b448ec6dc487e3a361b6b77c
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 5 14:37:26 2020 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Sep 5 14:37:26 2020 +0000
URL: https://gitweb.gentoo.org/proj/riscv.git/commit/?id=7d1b4e4b
Move as many settings as possible from riscv/rv64gc to riscv
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
profiles/arch/riscv/make.defaults | 39 +++++++++++++++++++++------
profiles/arch/riscv/{rv64gc => }/package.mask | 0
profiles/arch/riscv/rv64gc/make.defaults | 32 +---------------------
profiles/arch/riscv/rv64gc/use.force | 4 ---
profiles/arch/riscv/rv64gc/use.mask | 6 -----
profiles/arch/riscv/use.force | 4 +++
profiles/arch/riscv/use.mask | 6 +++++
7 files changed, 42 insertions(+), 49 deletions(-)
diff --git a/profiles/arch/riscv/make.defaults b/profiles/arch/riscv/make.defaults
index bae66d7..3a7d4ac 100644
--- a/profiles/arch/riscv/make.defaults
+++ b/profiles/arch/riscv/make.defaults
@@ -1,25 +1,48 @@
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-# Main RISC-V profile directory.
+# Main RISC-V profile directory. Common settings for all riscv profiles.
# This is not a complete profile. Use the subdirectories!
ARCH="riscv"
ACCEPT_KEYWORDS="riscv ~riscv"
-CHOST="riscv64-unknown-linux-gnu"
+CFLAGS="-O2 -pipe"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+SYMLINK_LIB="no"
+
+# Flags for lp64d
+LIBDIR_lp64d="lib64/lp64d"
+CFLAGS_lp64d="-mabi=lp64d"
+LDFLAGS_lp64d="-m elf64lriscv"
+CHOST_lp64d="riscv64-unknown-linux-gnu"
+
+# Flags for lp64
+LIBDIR_lp64="lib64/lp64"
+CFLAGS_lp64="-mabi=lp64"
+LDFLAGS_lp64="-m elf64lriscv_lp64"
+CHOST_lp64="riscv64-unknown-linux-gnu"
+
+# Flags for ilp32d
+LIBDIR_ilp32d="lib32/ilp32d"
+CFLAGS_ilp32d="-mabi=ilp32d -march=rv32imafdc"
+LDFLAGS_ilp32d="-m elf32lriscv"
+CHOST_ilp32d="riscv32-unknown-linux-gnu"
+
+# Flags for ilp32
+LIBDIR_ilp32="lib32/ilp32"
+CFLAGS_ilp32="-mabi=ilp32 -march=rv32imac"
+LDFLAGS_ilp32="-m elf32lriscv_ilp32"
+CHOST_ilp32="riscv32-unknown-linux-gnu"
# Since many people will want to test this in qemu...
FEATURES="-pid-sandbox -network-sandbox -ipc-sandbox"
# The following stuff is, e.g., defined in subdirs:
-# CFLAGS
-# CXXFLAGS
-# FFLAGS
-# FCFLAGS
# ABI
# DEFAULT_ABI
# MULTILIB_ABIS
-# CHOST_riscv
-# LIBDIR_riscv
diff --git a/profiles/arch/riscv/rv64gc/package.mask b/profiles/arch/riscv/package.mask
similarity index 100%
rename from profiles/arch/riscv/rv64gc/package.mask
rename to profiles/arch/riscv/package.mask
diff --git a/profiles/arch/riscv/rv64gc/make.defaults b/profiles/arch/riscv/rv64gc/make.defaults
index efa94c7..a5963cb 100644
--- a/profiles/arch/riscv/rv64gc/make.defaults
+++ b/profiles/arch/riscv/rv64gc/make.defaults
@@ -6,43 +6,13 @@
# This immediate profile is ONLY useful for internal purposes; it can generate
# stages just fine, but the only "hardware" that can run them is qemu-user ...
-CFLAGS="-O2 -pipe"
-CXXFLAGS="${CFLAGS}"
-FFLAGS="${CFLAGS}"
-FCFLAGS="${CFLAGS}"
+CHOST="riscv64-unknown-linux-gnu"
# Multilib ABIs
MULTILIB_ABIS="lp64d lp64 ilp32d ilp32"
DEFAULT_ABI="lp64d"
ABI="lp64d"
-# Library directories
-LIBDIR_lp64d="lib64/lp64d"
-LIBDIR_lp64="lib64/lp64"
-LIBDIR_ilp32d="lib32/ilp32d"
-LIBDIR_ilp32="lib32/ilp32"
-SYMLINK_LIB="no"
-
-# Flags for lp64d
-CFLAGS_lp64d="-mabi=lp64d"
-LDFLAGS_lp64d="-m elf64lriscv"
-CHOST_lp64d="riscv64-unknown-linux-gnu"
-
-# Flags for lp64
-CFLAGS_lp64="-mabi=lp64"
-LDFLAGS_lp64="-m elf64lriscv_lp64"
-CHOST_lp64="riscv64-unknown-linux-gnu"
-
-# Flags for ilp32d
-CFLAGS_ilp32d="-mabi=ilp32d -march=rv32imafdc"
-LDFLAGS_ilp32d="-m elf32lriscv"
-CHOST_ilp32d="riscv32-unknown-linux-gnu"
-
-# Flags for ilp32
-CFLAGS_ilp32="-mabi=ilp32 -march=rv32imac"
-LDFLAGS_ilp32="-m elf32lriscv_ilp32"
-CHOST_ilp32="riscv32-unknown-linux-gnu"
-
# Enable lp64d by default
ABI_RISCV="lp64d"
diff --git a/profiles/arch/riscv/rv64gc/use.force b/profiles/arch/riscv/rv64gc/use.force
index 7ce55a8..eb2add7 100644
--- a/profiles/arch/riscv/rv64gc/use.force
+++ b/profiles/arch/riscv/rv64gc/use.force
@@ -3,7 +3,3 @@
# Force the flag corresponding to the default ABI.
abi_riscv_lp64d
-
-# Right now we have only one Python available, so we must use it
-python_targets_python3_7
-python_single_target_python3_7
diff --git a/profiles/arch/riscv/rv64gc/use.mask b/profiles/arch/riscv/rv64gc/use.mask
index 6e01a57..eed1c21 100644
--- a/profiles/arch/riscv/rv64gc/use.mask
+++ b/profiles/arch/riscv/rv64gc/use.mask
@@ -4,9 +4,3 @@
# Unmask the multilib flags for this arch.
-abi_riscv_lp64d
-abi_riscv_lp64
-
-# Our Python has a lot of trouble with the two-level libdir.
-python_targets_python2_7
-python_targets_python3_6
-python_single_target_python2_7
-python_single_target_python3_6
diff --git a/profiles/arch/riscv/use.force b/profiles/arch/riscv/use.force
index 5e5e335..d97bd12 100644
--- a/profiles/arch/riscv/use.force
+++ b/profiles/arch/riscv/use.force
@@ -3,3 +3,7 @@
# Force the flag which corresponds to ARCH.
riscv
+
+# Right now we have only one Python available, so we must use it
+python_targets_python3_7
+python_single_target_python3_7
diff --git a/profiles/arch/riscv/use.mask b/profiles/arch/riscv/use.mask
index f719211..3003db9 100644
--- a/profiles/arch/riscv/use.mask
+++ b/profiles/arch/riscv/use.mask
@@ -4,6 +4,12 @@
# Unmask the flag which corresponds to ARCH.
-riscv
+# Our Python has a lot of trouble with the two-level libdir.
+python_targets_python2_7
+python_targets_python3_6
+python_single_target_python2_7
+python_single_target_python3_6
+
# Ben Kohler <bkohler@gentoo.org> (2019-01-09)
# no fam providers keyworded yet
fam
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-05 15:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-05 15:21 [gentoo-commits] proj/riscv:master commit in: profiles/arch/riscv/rv64gc/, profiles/arch/riscv/ Andreas K. Hüttel
-- strict thread matches above, loose matches on Subject: below --
2019-05-02 21:45 Andreas K. Hüttel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox