@ -7,11 +7,14 @@
HOST_PYTHON_INC_DIR := $( STAGING_DIR_HOST) /include/python$( PYTHON_VERSION)
HOST_PYTHON_INC_DIR := $( STAGING_DIR_HOST) /include/python$( PYTHON_VERSION)
HOST_PYTHON_PKG_DIR := /lib/python$( PYTHON_VERSION) /site-packages
HOST_PYTHON_PKG_DIR := /usr/ lib/python$( PYTHON_VERSION) /site-packages
HOST_PYTHONPATH := $( HOST_PYTHON_LIB_DIR) :$( STAGING_DIR_HOST) /$( HOST_PYTHON_PKG_DIR)
HOST_PYTHONPATH := $( HOST_PYTHON_LIB_DIR) :$( STAGING_DIR_HOST) /$( HOST_PYTHON_PKG_DIR)
d e f i n e H o s t H o s t P y t h o n
( export PYTHONPATH = " $( HOST_PYTHONPATH) " ; \
d e f i n e H o s t P y t h o n
ifeq ( $( 3) ,)
$( 3) := $( PYTHONPATH)
endif
( export PYTHONPATH = " $( 3) " ; \
export PYTHONOPTIMIZE = "" ; \
export PYTHONOPTIMIZE = "" ; \
export PYTHONDONTWRITEBYTECODE = 1; \
export PYTHONDONTWRITEBYTECODE = 1; \
export _python_sysroot = " $( STAGING_DIR_HOST) " ; \
export _python_sysroot = " $( STAGING_DIR_HOST) " ; \
@ -25,15 +28,15 @@ endef
# These configure args are needed in detection of path to Python header files
# These configure args are needed in detection of path to Python header files
# using autotools.
# using autotools.
HOST_CONFIGURE_ARGS += \
HOST_CONFIGURE_ARGS += \
_python_sysroot = " $( STAGING_DIR_HOST) " \
_python_prefix = "" \
_python_exec_prefix = ""
_python_sysroot = " $( STAGING_DIR_HOST) /usr " \
_python_prefix = "/usr " \
_python_exec_prefix = "/usr "
# $(1) => build subdir
# $(1) => build subdir
# $(2) => additional arguments to setup.py
# $(2) => additional arguments to setup.py
# $(3) => additional variables
# $(3) => additional variables
d e f i n e B u i l d / C o m p i l e / H o s t P y M o d
d e f i n e B u i l d / C o m p i l e / H o s t P y M o d
$( call HostHost Python, \
$( call HostPython, \
cd $( HOST_BUILD_DIR) /$( strip $( 1) ) ; \
cd $( HOST_BUILD_DIR) /$( strip $( 1) ) ; \
CC = " $( HOSTCC) " \
CC = " $( HOSTCC) " \
CCSHARED = " $( HOSTCC) $( HOST_FPIC) " \
CCSHARED = " $( HOSTCC) $( HOST_FPIC) " \
@ -48,6 +51,8 @@ define Build/Compile/HostPyMod
$( 3) \
$( 3) \
, \
, \
./setup.py $( 2) \
./setup.py $( 2) \
, \
$( HOST_PYTHONPATH) \
)
)
e n d e f
e n d e f