make use of make variable CURDIR instead of calling pwd
make already provides the current working directory in a variable, so make use of it instead of forking a shell. Also replace usage of PWD by CURDIR. PWD is provided by most shells, but not all, so this makes the build system more robust. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Michal Marek <mmarek@suse.com>
This commit is contained in:

committed by
Michal Marek

parent
76bee23411
commit
e19b7cee02
@@ -1,7 +1,6 @@
|
||||
obj-m :=
|
||||
|
||||
KDIR := /lib/modules/$(shell uname -r)/build
|
||||
PWD := $(shell pwd)
|
||||
KMISC := /lib/modules/$(shell uname -r)/cpufrequtils/
|
||||
|
||||
ifeq ("$(CONFIG_X86_TSC)", "y")
|
||||
@@ -9,7 +8,7 @@ ifeq ("$(CONFIG_X86_TSC)", "y")
|
||||
endif
|
||||
|
||||
default:
|
||||
$(MAKE) -C $(KDIR) M=$(PWD)
|
||||
$(MAKE) -C $(KDIR) M=$(CURDIR)
|
||||
|
||||
clean:
|
||||
- rm -rf *.o *.ko .tmp-versions .*.cmd .*.mod.* *.mod.c
|
||||
|
Reference in New Issue
Block a user