qemu: fix error on python dependency at build
authorErwan MAS <erwan@mas.nom.fr>
Fri, 13 Dec 2024 15:33:13 +0000 (10:33 -0500)
committerRosen Penev <rosenp@gmail.com>
Fri, 13 Dec 2024 19:22:53 +0000 (11:22 -0800)
qemu need a recent version of python build , this is visible when you build with the docker image of the sdk see https://github.com/openwrt/docker/
error generated during the build : found no usable tomli, please install it

Signed-off-by: Erwan MAS <erwan@mas.nom.fr>
utils/qemu/Makefile

index 5592f79e3b9ef3224fe88c39dcbe74aba723b689..4ac28b5e7ca7d7f2ba1c7ee9ff5ea9558cffe6f6 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=qemu
 PKG_VERSION:=9.1.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_HASH:=816b7022a8ba7c2ac30e2e0cf973e826f6bcc8505339603212c5ede8e94d7834
 PKG_SOURCE_URL:=https://download.qemu.org/
@@ -24,9 +24,11 @@ PKG_INSTALL:=1
 PKG_BUILD_FLAGS:=no-mips16
 
 PKG_BUILD_DEPENDS+=spice-protocol
+PKG_BUILD_DEPENDS+=python3/host
 
 include $(INCLUDE_DIR)/nls.mk
 include $(INCLUDE_DIR)/package.mk
+include ../../lang/python/python3-host.mk
 
 QEMU_DEPS_IN_GUEST := @(TARGET_x86_64||TARGET_armsr||TARGET_malta)
 QEMU_DEPS_IN_HOST := @(TARGET_x86_64||TARGET_armsr_armv8||TARGET_sunxi)