From: Benjamin Braatz Date: Wed, 1 Feb 2023 04:21:01 +0000 (+0100) Subject: Allow selection of different Kernel than currently running. X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=cdb978150491399f9c7ed7ec15b37ad6e8fcf77d;p=graphit%2Funipi-kernel.git Allow selection of different Kernel than currently running. --- diff --git a/modules/rtc-unipi/Makefile b/modules/rtc-unipi/Makefile index 350a952..212d89e 100644 --- a/modules/rtc-unipi/Makefile +++ b/modules/rtc-unipi/Makefile @@ -2,7 +2,7 @@ # filesystems (notably VirtualBox vmfs); therefore we allow using /run/ through the 'symlink' target, # if necessary. -LINUX_DIR_PATH = /lib/modules/$(shell uname -r)/build +LINUX_DIR_PATH ?= /lib/modules/$(shell uname -r)/build ifdef CCPREFIX CCPAR = CROSS_COMPILE=${CCPREFIX} endif diff --git a/modules/unipi/Makefile b/modules/unipi/Makefile index 68b8e0e..342067c 100644 --- a/modules/unipi/Makefile +++ b/modules/unipi/Makefile @@ -2,7 +2,7 @@ # filesystems (notably VirtualBox vmfs); therefore we allow using /run/ through the 'symlink' target, # if necessary. -LINUX_DIR_PATH = /lib/modules/$(shell uname -r)/build +LINUX_DIR_PATH ?= /lib/modules/$(shell uname -r)/build ifdef CCPREFIX CCPAR = CROSS_COMPILE=${CCPREFIX} endif