Add support for ryzensmu (AMD64).
This commit is contained in:
parent
d26245ae02
commit
0a55de4fb8
3 changed files with 34 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
ryzen_smu
|
32
packages/kernel/linux-drivers/ryzensmu/package.mk
Normal file
32
packages/kernel/linux-drivers/ryzensmu/package.mk
Normal file
|
@ -0,0 +1,32 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2023 Fewtarius
|
||||
|
||||
PKG_NAME="ryzensmu"
|
||||
PKG_VERSION="e61177d0ddaebfaeca52094b20a2289287a0838b"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://gitlab.com/leogx9r/ryzen_smu"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
PKG_DEPENDS_TARGET="toolchain linux kernel-firmware"
|
||||
PKG_NEED_UNPACK="${LINUX_DEPENDS}"
|
||||
PKG_LONGDESC="A Linux kernel driver that exposes access to the SMU on certain AMD Ryzen processors."
|
||||
PKG_IS_KERNEL_PKG="yes"
|
||||
PKG_TOOLCHAIN="make"
|
||||
|
||||
pre_make_target() {
|
||||
unset LDFLAGS
|
||||
}
|
||||
|
||||
make_target() {
|
||||
make \
|
||||
ARCH=${TARGET_KERNEL_ARCH} \
|
||||
KSRC=$(kernel_path) \
|
||||
CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \
|
||||
TARGET=$(kernel_version) \
|
||||
KERNEL_MODULES=$(get_build_dir linux)/.install_pkg/$(get_full_module_dir) \
|
||||
KERNEL_BUILD=$(get_build_dir linux)
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
|
||||
cp *.ko ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
|
||||
}
|
|
@ -56,7 +56,7 @@
|
|||
# Space separated list is supported,
|
||||
# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2"
|
||||
# ADDITIONAL_DRIVERS=""
|
||||
ADDITIONAL_DRIVERS="RTL8812AU RTL8814AU RTL8821AU RTL8821CU RTL88x2BU"
|
||||
ADDITIONAL_DRIVERS="RTL8812AU RTL8814AU RTL8821AU RTL8821CU RTL88x2BU ryzensmu"
|
||||
|
||||
# build and install driver addons (yes / no)
|
||||
DRIVER_ADDONS_SUPPORT="no"
|
||||
|
|
Loading…
Reference in a new issue