summaryrefslogtreecommitdiff
path: root/eclass/rocm.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-27 20:10:49 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-27 20:10:49 +0000
commite44b9cf3e5b67eaf723e4a335faf39c87167abd3 (patch)
tree3e6660b30910e7eb33586a99c4e892b52380bad6 /eclass/rocm.eclass
parent4429be000a778f363162554d59d903a725283d7d (diff)
gentoo auto-resync : 27:12:2022 - 20:10:49
Diffstat (limited to 'eclass/rocm.eclass')
-rw-r--r--eclass/rocm.eclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass
index 4c8fd39f2491..cf7a18b70ad2 100644
--- a/eclass/rocm.eclass
+++ b/eclass/rocm.eclass
@@ -6,7 +6,7 @@
# Gentoo Science Project <sci@gentoo.org>
# @AUTHOR:
# Yiyang Wu <xgreenlandforwyy@gmail.com>
-# @SUPPORTED_EAPIS: 7 8
+# @SUPPORTED_EAPIS: 8
# @BLURB: Common functions and variables for ROCm packages written in HIP
# @DESCRIPTION:
# ROCm packages such as sci-libs/<roc|hip>*, and packages built on top of ROCm
@@ -82,13 +82,14 @@
# }
# @CODE
-if [[ ! ${_ROCM_ECLASS} ]]; then
-
case ${EAPI} in
- 7|8) ;;
+ 8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
+if [[ ! ${_ROCM_ECLASS} ]]; then
+_ROCM_ECLASS=1
+
# @ECLASS_VARIABLE: ROCM_VERSION
# @REQUIRED
# @PRE_INHERIT
@@ -219,5 +220,4 @@ check_amdgpu() {
done
}
-_ROCM_ECLASS=1
fi