From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 3595515806E for ; Fri, 26 May 2023 04:03:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FE91E089F; Fri, 26 May 2023 04:02:37 +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 9A968E0893 for ; Fri, 26 May 2023 04:02:36 +0000 (UTC) From: Ionen Wolkens To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] [PATCH 4/4] app-admin/ryzen_smu: migrate to linux-mod-r1 Date: Fri, 26 May 2023 00:02:19 -0400 Message-Id: <20230526040219.10852-5-ionen@gentoo.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230526040219.10852-1-ionen@gentoo.org> References: <20230526040219.10852-1-ionen@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail 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: bab08adb-e483-4340-8e88-7cdb5a20894d X-Archives-Hash: 9632c17b050a2eaece0cff0fde42a50b Randomly migrating myself as a very simple migration example (don't actually use this, no hardware). Notably makes the CC_IS_CLANG checks from the old ebuild unnecessary. Signed-off-by: Ionen Wolkens --- .../ryzen_smu-0.1.2_p20211205-r1.ebuild | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205-r1.ebuild diff --git a/app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205-r1.ebuild b/app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205-r1.ebuild new file mode 100644 index 000000000000..f1b8625e5b94 --- /dev/null +++ b/app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 + +DESCRIPTION="Kernel driver for AMD Ryzen's System Management Unit" +HOMEPAGE="https://github.com/leogx9r/ryzen_smu" +SRC_URI="https://dev.gentoo.org/~slashbeast/distfiles/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +src_compile() { + local modlist=( ryzen_smu ) + local modargs=( KERNEL_BUILD="${KV_OUT_DIR}" ) + + linux-mod-r1_src_compile +} + +src_install() { + linux-mod-r1_src_install + + insinto /usr/lib/modules-load.d + doins "${FILESDIR}"/ryzen_smu.conf +} -- 2.40.1