1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 16:02:39 +01:00
Files
sunny-overlay/media-video/usbio-drivers/usbio-drivers-0_p20251030.ebuild

40 lines
845 B
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
COMMIT_ID="ee221ecae757d43ab3fb39433f389373b2026109"
inherit linux-mod-r1 toolchain-funcs
DESCRIPTION="USBIO drivers for Meteor Lake, Arrow Lake, Lunar Lake and Panther Lake platforms"
HOMEPAGE="https://github.com/intel/usbio-drivers"
SRC_URI="https://github.com/intel/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT_ID}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
pkg_setup() {
linux-mod-r1_pkg_setup
export KERNELRELEASE=${KV_FULL}
}
src_prepare() {
sed -i '/^KERNELRELEASE/s#:=#?=#1' Makefile || die
default
}
src_compile() {
local modlist=(
usbio=kernel/drivers/misc:::all
gpio-usbio=kernel/drivers/misc:::all
i2c-usbio=kernel/drivers/misc:::all
)
linux-mod-r1_src_compile
}