From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev+bounces-98008-garchives=archives.gentoo.org@lists.gentoo.org>
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 0D91C158094
	for <garchives@archives.gentoo.org>; Sun, 28 Aug 2022 11:00:34 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 661E9E0895;
	Sun, 28 Aug 2022 11:00:30 +0000 (UTC)
Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435])
	(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 pigeon.gentoo.org (Postfix) with ESMTPS id 3A55FE088C
	for <gentoo-dev@lists.gentoo.org>; Sun, 28 Aug 2022 11:00:30 +0000 (UTC)
Received: by mail-pf1-x435.google.com with SMTP id 142so5672144pfu.10
        for <gentoo-dev@lists.gentoo.org>; Sun, 28 Aug 2022 04:00:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20210112;
        h=content-transfer-encoding:mime-version:message-id:date:subject:cc
         :to:from:from:to:cc;
        bh=1PJWswQRtKmc1ms4937mpQlThRszY7fxNjdBYR4hwMc=;
        b=mFiW9O1pM50iwKGQ3rOMwFf7YgJY+gNxh7FzXmb9EhTAcSGS8qGCDIipQGxL0xH/dv
         EynB8rk1WYjJNbJMxgb5Ostvv/GPrMZ8xYpruCEoMB/LANCAaQOXaNAxU0vEzGth/5HM
         XJ8WfGGsS/EqbtNjfeUmRE4S0RT8j1oZCkG/m5L7CD8+VUujFDYh1Yf0SrsMAq2uZPTI
         myD00F5iAjmUa5+NaAiquMKCMaHaCA9P9g3z4wiiGMQbRmGlvgprZF1LRd3MHsSejU5q
         dzlR1E7fxCwR2XwUOLAx9RibM2hLzQsW2YxXdVFARaDkeQKU/HzaMwJRd8fxMKCqWlDX
         WlYQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112;
        h=content-transfer-encoding:mime-version:message-id:date:subject:cc
         :to:from:x-gm-message-state:from:to:cc;
        bh=1PJWswQRtKmc1ms4937mpQlThRszY7fxNjdBYR4hwMc=;
        b=aZ2SOZQWXfElBpVJraiVIWdaUoGrS8ZnRYEbM6fQeeGS4Q0FD0XLcei8U8IEjnjnf1
         /zUiyau//IlqaX98D4zDTWzyqydp6BN8Lx+NkkZP3AdG4hkSRAQ1+BnGTX80+/2o121y
         MOQgJM1vLBUOs/ZrANIRfWfPm0uJVQmwAVqVgpm8UEfXaDDKHPnuV/y3hgcV8m1VJX0A
         aBlW/p3PAwto3NR3fXzg4uQql2GPmKl+xojn7ADOJmRhoCK39pcfbeoD0WPCtrxG8ReH
         E5b39MA0insjac5srve5PhlGf5I684+7rvjhUuC7Pu6rPD6l4TcqFZJ3jcBoJhgN7e8b
         0DHQ==
X-Gm-Message-State: ACgBeo2UG7VP6MIOF5resaZGJdK+5JmT+bE5c4v7XNTwLdLMCsgv5ngT
	E8i1umUSqzMLAy+BKcts7f5lxCdZCpR47g==
X-Google-Smtp-Source: AA6agR7rnwzVmzCBixHr8zxNy3XqCVSvwPu0TnzCGaPe2C9nvFLWmP1RP9lpzkRhDOt5gFuaqXktyw==
X-Received: by 2002:a05:6a00:cc5:b0:537:1c47:8b0 with SMTP id b5-20020a056a000cc500b005371c4708b0mr11843198pfv.25.1661684429187;
        Sun, 28 Aug 2022 04:00:29 -0700 (PDT)
Received: from localhost (49.212.183.201.v6.sakura.ne.jp. [2403:3a00:202:1120:49:212:183:201])
        by smtp.gmail.com with ESMTPSA id k3-20020aa79d03000000b00534e350d25fsm4379852pfp.71.2022.08.28.04.00.28
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Sun, 28 Aug 2022 04:00:28 -0700 (PDT)
From: Yiyang Wu <xgreenlandforwyy@gmail.com>
To: gentoo-dev@lists.gentoo.org
Cc: Benda Xu <heroxbd@gentoo.org>,
	Ulrich Mueller <ulm@gentoo.org>
Subject: [gentoo-dev] [PATCH v5 0/2] *** rocm.eclass: new class ***
Date: Sun, 28 Aug 2022 19:00:23 +0800
Message-Id: <cover.1661669846.git.xgreenlandforwyy@gmail.com>
X-Mailer: git-send-email 2.34.1
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Archives-Salt: 666a2da6-f69d-489f-be16-b169bb35079f
X-Archives-Hash: 9da190967a8f9034dab4d515284fea03

The v5 patches corrects the usage of bash array expansion on
OFFICIAL_AMDGPU_TARGETS.

The updated Github PR is located at
https://github.com/gentoo/gentoo/pull/26784

Yiyang Wu (2):
  rocm.eclass: new eclass
  profiles/desc: add amdgpu_targets.desc for USE_EXPAND

 eclass/rocm.eclass                | 278 ++++++++++++++++++++++++++++++
 profiles/base/make.defaults       |   2 +-
 profiles/desc/amdgpu_targets.desc |  15 ++
 3 files changed, 294 insertions(+), 1 deletion(-)
 create mode 100644 eclass/rocm.eclass
 create mode 100644 profiles/desc/amdgpu_targets.desc

Interdiff against v4:
diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass
index 225329df4876..679b1af54e0a 100644
--- a/eclass/rocm.eclass
+++ b/eclass/rocm.eclass
@@ -159,7 +159,7 @@ _rocm_set_globals() {
 
 	ROCM_REQUIRED_USE+=" || ("
 	for gpu_target in "${ALL_AMDGPU_TARGETS[@]}"; do
-		if has "${gpu_target}" ${OFFICIAL_AMDGPU_TARGETS[*]}; then
+		if has "${gpu_target}" "${OFFICIAL_AMDGPU_TARGETS[@]}"; then
 			IUSE+=" ${gpu_target/#/+amdgpu_targets_}"
 		else
 			IUSE+=" ${gpu_target/#/amdgpu_targets_}"
-- 
2.34.1