Compile librem-ec for user chosen kernel
This commit is contained in:
parent
4bcaa5c9f5
commit
441359e5e7
|
@ -17,6 +17,15 @@ S="${WORKDIR}/librem-ec-acpi-dkms-v${PV}/"
|
|||
MODULE_NAMES="librem_ec_acpi(librem:${S}:${S})"
|
||||
BUILD_TARGETS="clean all"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Makefile hardcoded to point at running kernel
|
||||
# but we want the user-chosen kernel.
|
||||
linux-info_get_any_version
|
||||
sed -i "s/\$(shell uname -r)/${KV_FULL}/" Makefile \
|
||||
|| die "could not set kernel version in makefile"
|
||||
}
|
||||
pkg_setup() {
|
||||
linux-mod_pkg_setup
|
||||
BUILD_PARAMS="KERNELDIR=${KV_DIR}"
|
||||
|
|
Loading…
Reference in New Issue