core: use $(CURDIR) to set TOPDIR
authorSamuel Martin <s.martin49@gmail.com>
Wed, 9 Mar 2016 22:58:43 +0000 (23:58 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 10 Mar 2016 22:49:46 +0000 (23:49 +0100)
This changes saves a shell call and uses a variable automatically set
by make [1].

[1] http://www.gnu.org/software/make/manual/make.html#Quick-Reference

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Makefile

index f2822a2cad72b94fd27dc31e4f7f8b90ba5d08cb..98c8dc79e6aa5580cf8d154e3b5987e32bb6c097 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -69,7 +69,7 @@ endif
 .NOTPARALLEL:
 
 # absolute path
-TOPDIR := $(shell pwd)
+TOPDIR := $(CURDIR)
 CONFIG_CONFIG_IN = Config.in
 CONFIG = support/kconfig
 DATE := $(shell date +%Y%m%d)