blob: 62b6a7f974b7ffb7dd7ff9cfe535c09f15ec816e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# -*-makefile-*-
#
# Copyright (C) 2009, 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
HOST_PACKAGES-$(PTXCONF_HOST_PYTHON) += host-python
#
# Paths and names
#
HOST_PYTHON_DIR = $(HOST_BUILDDIR)/$(PYTHON)
HOSTPYTHON = $(PTXDIST_SYSROOT_HOST)/bin/python$(PYTHON_MAJORMINOR)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
HOST_PYTHON_PATH := PATH=$(HOST_PATH)
HOST_PYTHON_ENV := \
$(HOST_ENV) \
ac_sys_system=Linux \
ac_sys_release=2 \
MACHDEP=linux2
#
# autoconf
#
HOST_PYTHON_AUTOCONF := \
$(HOST_AUTOCONF) \
--enable-shared \
--disable-profiling \
--disable-optimizations \
--disable-toolbox-glue \
--without-pydebug \
--without-lto \
--with-signal-module \
--with-threads \
--without-doc-strings \
--with-pymalloc \
--without-valgrind \
--with-wctype-functions \
--with-fpectl \
--with-computed-gotos \
--without-ensurepip
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/host-python.install:
@$(call targetinfo)
@$(call install, HOST_PYTHON,,h)
#
# remove "python" so that it doesn't interfere with the build
# machine's python
#
# the target build proces will only use python with the
# python-$(PYTHON_MAJORMINOR)
#
@rm -v \
"$(HOST_PYTHON_PKGDIR)/bin/python" \
"$(HOST_PYTHON_PKGDIR)/bin/python-config" \
"$(HOST_PYTHON_PKGDIR)/bin/python2" \
"$(HOST_PYTHON_PKGDIR)/bin/python2-config"
@$(call touch)
# vim: syntax=make
|