diff options
author | Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> | 2021-05-01 22:12:21 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-05-17 17:06:36 -0400 |
commit | f68ed0bcb8a7f86510fe932c4519366776b1671d (patch) | |
tree | acce8d600e5ffdff5cf53067a98f62f18ff31798 /Makefile | |
parent | feddbdb55f47b94f9f6695dc19a826953f893f7a (diff) | |
download | u-boot-f68ed0bcb8a7f86510fe932c4519366776b1671d.tar.gz u-boot-f68ed0bcb8a7f86510fe932c4519366776b1671d.tar.bz2 u-boot-f68ed0bcb8a7f86510fe932c4519366776b1671d.zip |
Makefile: allow to override python3
Python3 taken from the PATH causes build issues when pylibfdt bindings are
generated with Yocto SDK.
Python3 provided as a part of SDK is not compatible with host Python3,
therefore binding build breaks with following errors:
scripts/dtc/pylibfdt/libfdt_wrap.c:154:11: fatal error: Python.h: No such file or directory
154 | # include <Python.h>
| ^~~~~~~~~~
Do not enforce the python3 from the PATH and make it conditionally-assigned
so it can be overridden from outside of build system. Keep the default
assignment to point to version that is taken from the PATH.
Similar fix has been introduced in b48bfc74ee ("tools: allow to override
python"), where conditional assignment is used for python executable to
address similar build errors.
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Cc: Simon Glass <sjg@chromium.org>
Fixes: e91610da7c ("kconfig: re-sync with Linux 4.17-rc4")
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -408,7 +408,7 @@ AWK = awk PERL = perl PYTHON ?= python PYTHON2 = python2 -PYTHON3 = python3 +PYTHON3 ?= python3 DTC ?= $(objtree)/scripts/dtc/dtc CHECK = sparse |