aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-08-31 11:20:52 -0600
committerBin Meng <bmeng@tinylab.org>2023-09-22 06:03:46 +0800
commit48bf738e3622a94b96a57055ff0f6466f5830bd4 (patch)
tree94b0dfb2f0fa09f8f6becd442d8db525e093111d /Makefile
parent1a075d4e0de797ac2b25adcc27ea537fa01f89cb (diff)
downloadu-boot-48bf738e3622a94b96a57055ff0f6466f5830bd4.zip
u-boot-48bf738e3622a94b96a57055ff0f6466f5830bd4.tar.gz
u-boot-48bf738e3622a94b96a57055ff0f6466f5830bd4.tar.bz2
Allow Python packages to be dropped
When building in a portage chroot, we do not have the environment needed to build pylibfdt. It is instead build as a separate package. Provide a build option to tell U-Boot to skip this part of the build. We still need it to use binman, etc. but don't need it to build its dependencies. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> [s/build bytes/builds bytes in tools.rst] Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9be24c4..efbaf43 100644
--- a/Makefile
+++ b/Makefile
@@ -485,6 +485,15 @@ export RCS_FIND_IGNORE := \( -name SCCS -o -name BitKeeper -o -name .svn -o \
export RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn \
--exclude CVS --exclude .pc --exclude .hg --exclude .git
+export PYTHON_ENABLE
+
+# This is y if U-Boot should not build any Python tools or libraries. Typically
+# you would need to set this if those tools/libraries (typically binman and
+# pylibfdt) cannot be built by your environment and are provided separately.
+ifeq ($(NO_PYTHON),)
+PYTHON_ENABLE=y
+endif
+
# ===========================================================================
# Rules shared between *config targets and build targets