Consistent example makefiles.
This commit is contained in:
parent
b717e3ffb4
commit
62a114132f
|
|
@ -56,7 +56,7 @@ else
|
|||
ifneq ($(wildcard kernel.conf),)
|
||||
include kernel.conf
|
||||
else
|
||||
KERNEL_DIR := /lib/modules/`uname -r`/build
|
||||
KERNEL_DIR := /lib/modules/$(shell uname -r)/build
|
||||
endif
|
||||
|
||||
CURRENT_DIR := $(shell pwd)
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@
|
|||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
KERNELDIR = /lib/modules/`uname -r`/build
|
||||
KERNELDIR := /lib/modules/$(shell uname -r)/build
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@
|
|||
#------------------------------------------------------------------------------
|
||||
|
||||
# Kernel sources for module compilation
|
||||
KERNEL := `uname -r`
|
||||
KERNEL := $(shell uname -r)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ else
|
|||
ifneq ($(wildcard kernel.conf),)
|
||||
include kernel.conf
|
||||
else
|
||||
KERNEL_DIR := /lib/modules/`uname -r`/build
|
||||
KERNEL_DIR := /lib/modules/$(shell uname -r)/build
|
||||
endif
|
||||
|
||||
CURRENT_DIR := $(shell pwd)
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@
|
|||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
KERNELDIR = /lib/modules/`uname -r`/build
|
||||
KERNELDIR := /lib/modules/$(shell uname -r)/build
|
||||
|
|
|
|||
Loading…
Reference in New Issue