[Buildroot] [PATCH v6 02/13] core: use $(CURDIR) to set TOPDIR
Samuel Martin
s.martin49 at gmail.com
Mon Feb 1 15:53:30 UTC 2016
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 at gmail.com>
---
changes v5 -> v6:
- new patch
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 17c181b..13c16af 100644
--- 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)
--
2.7.0
More information about the buildroot
mailing list