From b98062f7301bc72d2a59cca733f36525405d3bb9 Mon Sep 17 00:00:00 2001 From: Julien Olivain Date: Sun, 29 Sep 2024 18:37:52 +0200 Subject: [PATCH] linux: replace host-python3 with BR2_PYTHON3_HOST_DEPENDENCY Commit abce4a2b3 "linux: add BR2_LINUX_KERNEL_NEEDS_HOST_PYTHON3" [1] introduced a Kernel dependency on host-python3. Since the Kernel does not have any specific requirements on host Python modules, or recent host Python version, this commit replaces the host-python3 dependency with BR2_PYTHON3_HOST_DEPENDENCY. This will skip the host-python3 compilation if a sufficient version (3.4 or greater at the time of this commit) is already present on host. This will save build time. This optimization was suggested by Peter, in [2]. Note 1: this commit was checked to ensure that Kernel v6.10.9 arm64 defconfig (which does require a python3 interpreter to build) is working with Python 3.4. Note 2: BR2_PYTHON3_HOST_DEPENDENCY was introduced in commit b60729784 "support/dependencies: add a check for python3" [3]. [1] https://gitlab.com/buildroot.org/buildroot/-/commit/abce4a2b365276a7fa081d327289e5e6d8bdca7e [2] https://lists.buildroot.org/pipermail/buildroot/2024-September/763967.html [3] https://gitlab.com/buildroot.org/buildroot/-/commit/b60729784ab1c2f75dca30f924f4dd3176713ae8 Signed-off-by: Julien Olivain Signed-off-by: Peter Korsgaard --- linux/linux.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/linux.mk b/linux/linux.mk index 126e92e84c..469a80db9f 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -139,7 +139,7 @@ endef endif ifeq ($(BR2_LINUX_KERNEL_NEEDS_HOST_PYTHON3),y) -LINUX_DEPENDENCIES += host-python3 +LINUX_DEPENDENCIES += $(BR2_PYTHON3_HOST_DEPENDENCY) endif # If host-uboot-tools is selected by the user, assume it is needed to