mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-22 10:03:51 +08:00
Consistent example makefiles.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user