-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use target kernel dir when building with DKMS
Previously DKMS would fail on kernel upgrades since uname -r would still return the running kernel version. DKMS gives us a "kernel_source_dir" so we use that to build the module.
- Loading branch information
1 parent
440a714
commit b15caee
Showing
4 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
obj-m += gcadapter_oc.o | ||
ccflags-y := -std=gnu99 | ||
KERNEL_SOURCE_DIR := /lib/modules/$(shell uname -r)/build | ||
|
||
all: | ||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | ||
make -C $(KERNEL_SOURCE_DIR) M=$(PWD) modules | ||
|
||
clean: | ||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean | ||
make -C $(KERNEL_SOURCE_DIR) M=$(PWD) clean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,17 @@ | |
# Contributor: Hannes Mann <[email protected]> | ||
|
||
pkgname=gcadapter-oc-dkms | ||
pkgver=1.3 | ||
pkgver=1.4 | ||
pkgrel=1 | ||
pkgdesc="Kernel module for overclocking the Nintendo Wii U/Mayflash GameCube adapter." | ||
arch=('any') | ||
url="https://github.com/HannesMann/gcadapter-oc-kmod" | ||
license=('GPL2') | ||
depends=('dkms') | ||
source=('https://github.com/HannesMann/gcadapter-oc-kmod/archive/v1.3.tar.gz' | ||
source=('https://github.com/HannesMann/gcadapter-oc-kmod/archive/v1.4.tar.gz' | ||
'dkms.conf') | ||
md5sums=('SKIP' | ||
'75ae8140a90cb150cb3f56cf816d440c') | ||
'aad917366718c6335b1dc6f2e921a539') | ||
|
||
prepare() { | ||
echo "gcadapter_oc" > gcadapter-oc.conf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PACKAGE_NAME="gcadapter_oc" | ||
PACKAGE_VERSION="@PKGVER@" | ||
MAKE[0]="make" | ||
CLEAN="make clean" | ||
MAKE[0]="make KERNEL_SOURCE_DIR=$kernel_source_dir" | ||
CLEAN="make KERNEL_SOURCE_DIR=$kernel_source_dir clean" | ||
BUILT_MODULE_NAME[0]="gcadapter_oc" | ||
DEST_MODULE_LOCATION[0]="/extramodules" | ||
AUTOINSTALL="yes" |