# SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS) 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} }