[Buildroot] [PATCH v2 1/1] qemu: add support for python3

Trent Piepho tpiepho at impinj.com
Mon Sep 10 18:35:21 UTC 2018


On Tue, 2018-09-04 at 14:39 -0400, Adam Duskett wrote:
> qemu 2.12.0 now supports building against python3.
> see: https://wiki.qemu.org/ChangeLog/2.12#Build_Dependencies
> 
> Signed-off-by: Adam Duskett <aduskett at gmail.com>
> ---
> Changes v1 -> v2:
>   - Split the python version check into two seperate checks for
>     readability, one for the target, one for the host.
>   - Fix location of the python version check for target and host.


>  
> +ifeq ($(BR2_PACKAGE_PYTHON3),y)
> +HOST_QEMU_DEPENDENCIES += host-python3
> +HOST_QEMU_CONFIGURE_CMDS += --python=$(HOST_DIR)/bin/python3
> +else
> +HOST_QEMU_DEPENDENCIES += host-python
> +HOST_QEMU_CONFIGURE_CMDS += --python=$(HOST_DIR)/bin/python2
> +endif

This will mean that if the target system does not have python at all,
then one is forced to use host python 2.

Which is an existing buildroot problem.  But I wish it could be fixed
instead of further ingraining the concept of "host python version is
target python version or python 2 if no target python."  Because that
concept just isn't right.


More information about the buildroot mailing list