[Buildroot] [git commit branch/next] package/panel-mipi-dbi-firmware: replace host-python3 with BR2_PYTHON3_HOST_DEPENDENCY

Julien Olivain ju.o at free.fr
Fri Feb 28 16:41:25 UTC 2025


commit: https://git.buildroot.net/buildroot/commit/?id=84d03a38bf44bbb30b8fc876afa59b96e6965159
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

The mipi-dbi-cmd script does not require a particular python3
version. Using BR2_PYTHON3_HOST_DEPENDENCY avoids the need to build
host-python3 if python3 is installed on the host, and nothing else in
the build depends on host-python3.

Signed-off-by: Fiona Klute (WIWA) <fiona.klute at gmx.de>
Suggested-by: Julien Olivain <ju.o at free.fr>
Signed-off-by: Julien Olivain <ju.o at free.fr>
---
 package/panel-mipi-dbi-firmware/panel-mipi-dbi-firmware.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/panel-mipi-dbi-firmware/panel-mipi-dbi-firmware.mk b/package/panel-mipi-dbi-firmware/panel-mipi-dbi-firmware.mk
index c3a9fa7afc..859de027c0 100644
--- a/package/panel-mipi-dbi-firmware/panel-mipi-dbi-firmware.mk
+++ b/package/panel-mipi-dbi-firmware/panel-mipi-dbi-firmware.mk
@@ -11,13 +11,13 @@ PANEL_MIPI_DBI_FIRMWARE_LICENSE = CC0-1.0
 # license info is directly in the only source file
 PANEL_MIPI_DBI_FIRMWARE_LICENSE_FILES = mipi-dbi-cmd
 
-PANEL_MIPI_DBI_FIRMWARE_DEPENDENCIES = host-python3
+PANEL_MIPI_DBI_FIRMWARE_DEPENDENCIES = $(BR2_PYTHON3_HOST_DEPENDENCY)
 
 BR2_PACKAGE_PANEL_MIPI_DBI_FIRMWARE_BIN = $(addsuffix .bin,$(basename $(notdir $(shell echo $(BR2_PACKAGE_PANEL_MIPI_DBI_FIRMWARE_SOURCE)))))
 
 define PANEL_MIPI_DBI_FIRMWARE_BUILD_CMDS
 	for source in $(shell echo $(BR2_PACKAGE_PANEL_MIPI_DBI_FIRMWARE_SOURCE)) ; do \
-		$(HOST_DIR)/bin/python $(@D)/mipi-dbi-cmd "$(@D)/$$(basename $${source%.*}).bin" "$${source}" ; \
+		PATH=$(BR_PATH) $(@D)/mipi-dbi-cmd "$(@D)/$$(basename $${source%.*}).bin" "$${source}" ; \
 	done
 endef
 


More information about the buildroot mailing list