Gentoo Archives: gentoo-dev

From: Yiyang Wu <xgreenlandforwyy@×××××.com>
To: gentoo-dev@l.g.o
Cc: Benda Xu <heroxbd@g.o>, Ulrich Mueller <ulm@g.o>
Subject: [gentoo-dev] [PATCH v5 0/2] *** rocm.eclass: new class ***
Date: Sun, 28 Aug 2022 11:00:34
Message-Id: cover.1661669846.git.xgreenlandforwyy@gmail.com
1 The v5 patches corrects the usage of bash array expansion on
2 OFFICIAL_AMDGPU_TARGETS.
3
4 The updated Github PR is located at
5 https://github.com/gentoo/gentoo/pull/26784
6
7 Yiyang Wu (2):
8 rocm.eclass: new eclass
9 profiles/desc: add amdgpu_targets.desc for USE_EXPAND
10
11 eclass/rocm.eclass | 278 ++++++++++++++++++++++++++++++
12 profiles/base/make.defaults | 2 +-
13 profiles/desc/amdgpu_targets.desc | 15 ++
14 3 files changed, 294 insertions(+), 1 deletion(-)
15 create mode 100644 eclass/rocm.eclass
16 create mode 100644 profiles/desc/amdgpu_targets.desc
17
18 Interdiff against v4:
19 diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass
20 index 225329df4876..679b1af54e0a 100644
21 --- a/eclass/rocm.eclass
22 +++ b/eclass/rocm.eclass
23 @@ -159,7 +159,7 @@ _rocm_set_globals() {
24
25 ROCM_REQUIRED_USE+=" || ("
26 for gpu_target in "${ALL_AMDGPU_TARGETS[@]}"; do
27 - if has "${gpu_target}" ${OFFICIAL_AMDGPU_TARGETS[*]}; then
28 + if has "${gpu_target}" "${OFFICIAL_AMDGPU_TARGETS[@]}"; then
29 IUSE+=" ${gpu_target/#/+amdgpu_targets_}"
30 else
31 IUSE+=" ${gpu_target/#/amdgpu_targets_}"
32 --
33 2.34.1

Replies

Subject Author
[gentoo-dev] [PATCH v5 1/2] rocm.eclass: new eclass Yiyang Wu <xgreenlandforwyy@×××××.com>
[gentoo-dev] [PATCH v5 2/2] profiles/desc: add amdgpu_targets.desc for USE_EXPAND Yiyang Wu <xgreenlandforwyy@×××××.com>