mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 09:32:37 +01:00
40 lines
845 B
Bash
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
|
|
}
|