[Buildroot] [PATCH 3/6] pkg-python: support host-python dependency different from the python in the target

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Mar 29 13:26:26 UTC 2014


Dear Yann E. MORIN,

On Sat, 29 Mar 2014 12:47:28 +0100, Yann E. MORIN wrote:

> I thionk we should explicitly check for (empty), 'python2' or 'python3',
> and abort on any other value:
> 
>     ifeq ($($(2)_FORCE_HOST_PYTHON),python2)
>     $(2)_DEPENDENCIES += host-python
>     else ifeq ($($(2)_FORCE_HOST_PYTHON),python3)
>     $(2)_DEPENDENCIES += host-python3
>     else
>     $$(error Incorrect value '$($(2)_FORCE_HOST_PYTHON)' for $(2)_FORCE_HOST_PYTHON)
>     endif
>     endif

Hum, most packages will *not* define <pkg>_FORCE_HOST_PYTHON I believe.
Or do you plan to modify all packages that depend on host-python so
that they all define a value for <pkg>_FORCE_HOST_PYTHON ?

I believe the idea was that if <pkg>_FORCE_HOST_PYTHON is not defined,
then we default to whatever Python version has been selected.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list