summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorArkadiusz Lichwa <arkadiusz.lichwa@tieto.com>2015-07-28 14:44:03 +0300
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:14:42 -0500
commita9c1163ed98dfac89d204ed2dbd1c5612a0f0c08 (patch)
treed265084a9a450f939feb096326de1af00a7f7a08 /Makefile.inc
parent9132a13542e1127c0ea4e76203240accf3d7b49a (diff)
build: Fix python3 printf syntax
Using as default on build host Python3.4 environment, the build of Zephyr terminates with complain. File "<string>", line 1 import os.path; print os.path.relpath(...) ^ SyntaxError: invalid syntax Change-Id: I99abf647ffc68d4e8a0b3d6c74a5362435670aa4 Signed-off-by: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 83e310ecf..63d63e6c9 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -26,7 +26,7 @@ endif
SOURCE_DIR ?= $(PROJECT_BASE)/src/
# Kbuild doesn't work correctly if this is an absolute path
-override SOURCE_DIR := $(shell python -c "import os.path; print os.path.relpath('$(SOURCE_DIR)', '$(ZEPHYR_BASE)')")/
+override SOURCE_DIR := $(shell python -c "import os.path; print(\"%s\" % os.path.relpath('$(SOURCE_DIR)', '$(ZEPHYR_BASE)'))")/
export SOURCE_DIR
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \