From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 18 May 2021 18:26:23 -0400 Subject: [PATCH] Makefile: allow to override python3 In-Reply-To: <20210501201221.4936-1-andrey.zhizhikin@leica-geosystems.com> References: <20210501201221.4936-1-andrey.zhizhikin@leica-geosystems.com> Message-ID: <20210518222623.GW17669@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, May 01, 2021 at 10:12:21PM +0200, Andrey Zhizhikin wrote: > 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 > | ^~~~~~~~~~ > > 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 > Cc: Simon Glass > Fixes: e91610da7c ("kconfig: re-sync with Linux 4.17-rc4") > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: