Сравнение ryzen_smu-0.1.2_p20211205 с ryzen_smu-0.1.2_p20211205-r1

/usr/portage/app-admin/ryzen_smu/ryzen_smu-0.1.2_p20211205-r1.ebuild 2023-10-09 14:52:28.168368317 +0300
1
# Copyright 2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit linux-mod linux-info toolchain-funcs
7

  
8
SRC_URI="https://dev.gentoo.org/~slashbeast/distfiles/${PN}/${P}.tar.xz"
9
KEYWORDS="amd64 x86"
6
inherit linux-mod-r1
10 7

  
11 8
DESCRIPTION="Kernel driver for AMD Ryzen's System Management Unit"
12 9
HOMEPAGE="https://github.com/leogx9r/ryzen_smu"
10
SRC_URI="https://dev.gentoo.org/~slashbeast/distfiles/${PN}/${P}.tar.xz"
13 11

  
14
SLOT="0"
15 12
LICENSE="GPL-2"
16
IUSE=""
17

  
18
DEPEND=""
19
RDEPEND=""
13
SLOT="0"
14
KEYWORDS="amd64 x86"
20 15

  
21
MODULE_NAMES="ryzen_smu(misc)"
16
src_compile() {
17
	local modlist=( ryzen_smu )
18
	local modargs=( KERNEL_BUILD="${KV_OUT_DIR}" )
22 19

  
23
pkg_setup() {
24
	linux_config_exists
25

  
26
	linux-mod_pkg_setup
27

  
28
	BUILD_TARGETS="modules"
29
	BUILD_PARAMS="KERNEL_BUILD=${KERNEL_DIR}"
30
	if linux_chkconfig_present CC_IS_CLANG; then
31
	  BUILD_PARAMS+=" CC=${CHOST}-clang"
32
	  if linux_chkconfig_present LD_IS_LLD; then
33
	    BUILD_PARAMS+=' LD=ld.lld'
34
	    if linux_chkconfig_present LTO_CLANG_THIN; then
35
	      # kernel enables cache by default leading to sandbox violations
36
	      BUILD_PARAMS+=' ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir='
37
	    fi
38
	  fi
39
	fi
20
	linux-mod-r1_src_compile
40 21
}
41 22

  
42 23
src_install() {
43
	linux-mod_src_install
44
	insinto /usr/lib/modules-load.d/
45
	newins "${FILESDIR}"/ryzen_smu.conf ryzen_smu.conf
24
	linux-mod-r1_src_install
46 25

  
26
	insinto /usr/lib/modules-load.d
27
	doins "${FILESDIR}"/ryzen_smu.conf
47 28
}
Спасибо!