]> git.baikalelectronics.ru Git - uboot.git/commit
Makefile: allow to override python3
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Sat, 1 May 2021 20:12:21 +0000 (22:12 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 17 May 2021 21:06:36 +0000 (17:06 -0400)
commitbbbdbfa1dfd78aef71e6d465156bf6491aa661d6
treeacce8d600e5ffdff5cf53067a98f62f18ff31798
parent8debc9279adc428c3989158117669026898ebf3d
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 b209993098 ("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: aec506f2d6 ("kconfig: re-sync with Linux 4.17-rc4")
Reviewed-by: Simon Glass <sjg@chromium.org>
Makefile