commit:     b771f2f1859b13880911d872cbcb650e701ad614
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 18 19:59:55 2019 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Thu Apr 18 20:00:15 2019 +0000
URL:        https://gitweb.gentoo.org/proj/riscv.git/commit/?id=b771f2f1

profiles: Add first attempt at riscv profiles

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 profiles/arch.list                                 |  1 +
 profiles/arch/base/parent                          |  1 +
 profiles/arch/riscv/eapi                           |  1 +
 profiles/arch/riscv/make.defaults                  | 21 ++++++++++++
 profiles/arch/riscv/parent                         |  1 +
 profiles/arch/riscv/rv64gc/eapi                    |  1 +
 profiles/arch/riscv/rv64gc/lp64/eapi               |  1 +
 profiles/arch/riscv/rv64gc/lp64/make.defaults      | 10 ++++++
 profiles/arch/riscv/rv64gc/lp64d/eapi              |  1 +
 profiles/arch/riscv/rv64gc/lp64d/make.defaults     | 10 ++++++
 profiles/arch/riscv/rv64gc/make.defaults           | 38 ++++++++++++++++++++++
 profiles/arch/riscv/rv64gc/parent                  |  1 +
 profiles/default/linux/riscv/17.0/parent           |  2 ++
 profiles/default/linux/riscv/17.0/rv64gc/eapi      |  1 +
 profiles/default/linux/riscv/17.0/rv64gc/lp64/eapi |  1 +
 .../default/linux/riscv/17.0/rv64gc/lp64/parent    |  2 ++
 .../default/linux/riscv/17.0/rv64gc/lp64d/eapi     |  1 +
 .../default/linux/riscv/17.0/rv64gc/lp64d/parent   |  2 ++
 profiles/default/linux/riscv/17.0/rv64gc/parent    |  2 ++
 profiles/default/linux/riscv/eapi                  |  1 +
 profiles/default/linux/riscv/parent                |  2 ++
 profiles/make.defaults                             |  6 ++++
 22 files changed, 107 insertions(+)

diff --git a/profiles/arch.list b/profiles/arch.list
new file mode 100644
index 0000000..d569162
--- /dev/null
+++ b/profiles/arch.list
@@ -0,0 +1 @@
+riscv

diff --git a/profiles/arch/base/parent b/profiles/arch/base/parent
new file mode 100644
index 0000000..b90fefd
--- /dev/null
+++ b/profiles/arch/base/parent
@@ -0,0 +1 @@
+gentoo:arch/base

diff --git a/profiles/arch/riscv/eapi b/profiles/arch/riscv/eapi
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/profiles/arch/riscv/eapi
@@ -0,0 +1 @@
+5

diff --git a/profiles/arch/riscv/make.defaults 
b/profiles/arch/riscv/make.defaults
new file mode 100644
index 0000000..1e1fc22
--- /dev/null
+++ b/profiles/arch/riscv/make.defaults
@@ -0,0 +1,21 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Main RISC-V profile
+
+ARCH="riscv"
+ACCEPT_KEYWORDS="riscv ~riscv"
+
+CHOST="riscv64-unknown-linux-gnu"
+
+# This is not a complete profile. The following stuff is
+# defined in subdirs:
+# CFLAGS
+# CXXFLAGS
+# FFLAGS
+# FCFLAGS
+# ABI
+# DEFAULT_ABI
+# MULTILIB_ABIS
+# CHOST_riscv
+# LIBDIR_riscv

diff --git a/profiles/arch/riscv/parent b/profiles/arch/riscv/parent
new file mode 100644
index 0000000..eb001c6
--- /dev/null
+++ b/profiles/arch/riscv/parent
@@ -0,0 +1 @@
+../base

diff --git a/profiles/arch/riscv/rv64gc/eapi b/profiles/arch/riscv/rv64gc/eapi
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/profiles/arch/riscv/rv64gc/eapi
@@ -0,0 +1 @@
+5

diff --git a/profiles/arch/riscv/rv64gc/lp64/eapi 
b/profiles/arch/riscv/rv64gc/lp64/eapi
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/profiles/arch/riscv/rv64gc/lp64/eapi
@@ -0,0 +1 @@
+5

diff --git a/profiles/arch/riscv/rv64gc/lp64/make.defaults 
b/profiles/arch/riscv/rv64gc/lp64/make.defaults
new file mode 100644
index 0000000..fe2afc5
--- /dev/null
+++ b/profiles/arch/riscv/rv64gc/lp64/make.defaults
@@ -0,0 +1,10 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# RISC-V rv64gc/lp64 no-multilib profile
+
+# We have only one ABI
+MULTILIB_ABIS="lp64"
+
+# We hide the useflags for the ABIs
+USE_EXPAND_HIDDEN="ABI_RISCV"

diff --git a/profiles/arch/riscv/rv64gc/lp64d/eapi 
b/profiles/arch/riscv/rv64gc/lp64d/eapi
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/profiles/arch/riscv/rv64gc/lp64d/eapi
@@ -0,0 +1 @@
+5

diff --git a/profiles/arch/riscv/rv64gc/lp64d/make.defaults 
b/profiles/arch/riscv/rv64gc/lp64d/make.defaults
new file mode 100644
index 0000000..7b72704
--- /dev/null
+++ b/profiles/arch/riscv/rv64gc/lp64d/make.defaults
@@ -0,0 +1,10 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# RISC-V rv64gc/lp64d no-multilib profile
+
+# We have only one ABI
+MULTILIB_ABIS="lp64d"
+
+# We hide the useflags for the ABIs
+USE_EXPAND_HIDDEN="ABI_RISCV"

diff --git a/profiles/arch/riscv/rv64gc/make.defaults 
b/profiles/arch/riscv/rv64gc/make.defaults
new file mode 100644
index 0000000..43de775
--- /dev/null
+++ b/profiles/arch/riscv/rv64gc/make.defaults
@@ -0,0 +1,38 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# RISC-V profile for rv64gc multilib
+
+CFLAGS="-O2 -pipe -march=rv64gc"
+CXXFLAGS="${CFLAGS}"
+FFLAGS="${CFLAGS}"
+FCFLAGS="${CFLAGS}"
+
+# Multilib ABIs
+MULTILIB_ABIS="lp64d lp64"
+DEFAULT_ABI="lp64d"
+ABI="lp64d"
+
+# Library directories
+LIBDIR_lp64d="lib64/lp64d"
+LIBDIR_lp64="lib64/lp64"
+SYMLINK_LIB="no"
+
+# Flags for lp64d
+CFLAGS_lp64d="-mabi=lp64d"
+# LDFLAGS_lp64d
+# CHOST_lp64d
+
+# Flags for lp64
+CFLAGS_lp64="-mabi=lp64"
+# LDFLAGS_lp64
+# CHOST_lp64
+
+# Enable lp64d by default
+ABI_RISCV="lp64d"
+
+# Unhide the riscv/rv64gc-specific USE_EXPANDs
+USE_EXPAND_HIDDEN="-ABI_RISCV"
+
+# Implicitly enable lp64d in ebuilds without multilib support
+IUSE_IMPLICIT="abi_riscv_lp64d"

diff --git a/profiles/arch/riscv/rv64gc/parent 
b/profiles/arch/riscv/rv64gc/parent
new file mode 100644
index 0000000..f3229c5
--- /dev/null
+++ b/profiles/arch/riscv/rv64gc/parent
@@ -0,0 +1 @@
+..

diff --git a/profiles/default/linux/riscv/17.0/parent 
b/profiles/default/linux/riscv/17.0/parent
new file mode 100644
index 0000000..9e143e5
--- /dev/null
+++ b/profiles/default/linux/riscv/17.0/parent
@@ -0,0 +1,2 @@
+..
+gentoo:releases/17.0

diff --git a/profiles/default/linux/riscv/17.0/rv64gc/eapi 
b/profiles/default/linux/riscv/17.0/rv64gc/eapi
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/profiles/default/linux/riscv/17.0/rv64gc/eapi
@@ -0,0 +1 @@
+5

diff --git a/profiles/default/linux/riscv/17.0/rv64gc/lp64/eapi 
b/profiles/default/linux/riscv/17.0/rv64gc/lp64/eapi
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/profiles/default/linux/riscv/17.0/rv64gc/lp64/eapi
@@ -0,0 +1 @@
+5

diff --git a/profiles/default/linux/riscv/17.0/rv64gc/lp64/parent 
b/profiles/default/linux/riscv/17.0/rv64gc/lp64/parent
new file mode 100644
index 0000000..0273fe5
--- /dev/null
+++ b/profiles/default/linux/riscv/17.0/rv64gc/lp64/parent
@@ -0,0 +1,2 @@
+..
+../../../../../../arch/riscv/rv64gc/lp64

diff --git a/profiles/default/linux/riscv/17.0/rv64gc/lp64d/eapi 
b/profiles/default/linux/riscv/17.0/rv64gc/lp64d/eapi
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/profiles/default/linux/riscv/17.0/rv64gc/lp64d/eapi
@@ -0,0 +1 @@
+5

diff --git a/profiles/default/linux/riscv/17.0/rv64gc/lp64d/parent 
b/profiles/default/linux/riscv/17.0/rv64gc/lp64d/parent
new file mode 100644
index 0000000..f497f65
--- /dev/null
+++ b/profiles/default/linux/riscv/17.0/rv64gc/lp64d/parent
@@ -0,0 +1,2 @@
+..
+../../../../../../arch/riscv/rv64gc/lp64d

diff --git a/profiles/default/linux/riscv/17.0/rv64gc/parent 
b/profiles/default/linux/riscv/17.0/rv64gc/parent
new file mode 100644
index 0000000..4bbbd0a
--- /dev/null
+++ b/profiles/default/linux/riscv/17.0/rv64gc/parent
@@ -0,0 +1,2 @@
+..
+../../../../../arch/riscv/rv64gc

diff --git a/profiles/default/linux/riscv/eapi 
b/profiles/default/linux/riscv/eapi
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/profiles/default/linux/riscv/eapi
@@ -0,0 +1 @@
+5

diff --git a/profiles/default/linux/riscv/parent 
b/profiles/default/linux/riscv/parent
new file mode 100644
index 0000000..b85be8f
--- /dev/null
+++ b/profiles/default/linux/riscv/parent
@@ -0,0 +1,2 @@
+gentoo:base
+gentoo:default/linux

diff --git a/profiles/make.defaults b/profiles/make.defaults
new file mode 100644
index 0000000..47848b9
--- /dev/null
+++ b/profiles/make.defaults
@@ -0,0 +1,6 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# RISC-V specific variables
+USE_EXPAND="ABI_RISCV"
+USE_EXPAND_HIDDEN="ABI_RISCV"

Reply via email to