From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1451220-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 2ED3A158020 for <garchives@archives.gentoo.org>; Sat, 29 Oct 2022 16:06:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4ED21E0869; Sat, 29 Oct 2022 16:06:52 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 33C3BE0869 for <gentoo-commits@lists.gentoo.org>; Sat, 29 Oct 2022 16:06:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 0CDBD340BF1 for <gentoo-commits@lists.gentoo.org>; Sat, 29 Oct 2022 16:06:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 55249523 for <gentoo-commits@lists.gentoo.org>; Sat, 29 Oct 2022 16:06:49 +0000 (UTC) From: "Piotr Karbowski" <slashbeast@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Piotr Karbowski" <slashbeast@gentoo.org> Message-ID: <1667059607.9c1beee8e43ecd644bc1f7f473ea4e4a7098ceeb.slashbeast@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/ryzen_smu/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205.ebuild X-VCS-Directories: app-admin/ryzen_smu/ X-VCS-Committer: slashbeast X-VCS-Committer-Name: Piotr Karbowski X-VCS-Revision: 9c1beee8e43ecd644bc1f7f473ea4e4a7098ceeb X-VCS-Branch: master Date: Sat, 29 Oct 2022 16:06:49 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dac49560-ae33-43eb-909f-c8fabb0ac7aa X-Archives-Hash: 6f59ea25d34921779eb8969c67be6a38 commit: 9c1beee8e43ecd644bc1f7f473ea4e4a7098ceeb Author: Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com> AuthorDate: Sat Oct 22 17:01:48 2022 +0000 Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> CommitDate: Sat Oct 29 16:06:47 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c1beee8 app-admin/ryzen_smu: handle clang built kernels OOTB If the kernel has been built with a different version of clang than the default one, the emerge will fail as expected. Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com> Closes: https://github.com/gentoo/gentoo/pull/22143 Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org> app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205.ebuild b/app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205.ebuild index aa763072c39c..96e15892d055 100644 --- a/app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205.ebuild +++ b/app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205.ebuild @@ -26,7 +26,17 @@ pkg_setup() { linux-mod_pkg_setup BUILD_TARGETS="modules" - BUILD_PARAMS="CC=$(tc-getCC) KERNEL_BUILD=${KERNEL_DIR}" + BUILD_PARAMS="KERNEL_BUILD=${KERNEL_DIR}" + if linux_chkconfig_present CC_IS_CLANG; then + BUILD_PARAMS+=" CC=${CHOST}-clang" + if linux_chkconfig_present LD_IS_LLD; then + BUILD_PARAMS+=' LD=ld.lld' + if linux_chkconfig_present LTO_CLANG_THIN; then + # kernel enables cache by default leading to sandbox violations + BUILD_PARAMS+=' ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir=' + fi + fi + fi } src_install() {