@ -37,21 +37,26 @@ define HostPython3
$( HOST_PYTHON3_BIN) $( 2) ;
e n d e f
d e f i n e h o s t _ p y t h o n 3 _ s e t t i n g s
ARCH = " $( HOST_ARCH) " \
CC = " $( HOSTCC) " \
CCSHARED = " $( HOSTCC) $( HOST_FPIC) " \
CXX = " $( HOSTCXX) " \
LD = " $( HOSTCC) " \
LDSHARED = " $( HOSTCC) -shared " \
CFLAGS = " $( HOST_CFLAGS) " \
CPPFLAGS = " $( HOST_CPPFLAGS) -I $( HOST_PYTHON3_INC_DIR) " \
LDFLAGS = " $( HOST_LDFLAGS) -lpython $( PYTHON3_VERSION) -Wl $( comma) -rpath= $( STAGING_DIR_HOSTPKG) /lib " \
_PYTHON_HOST_PLATFORM = linux2
e n d e f
# $(1) => commands to execute before running pythons script
# $(2) => python script and its arguments
# $(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 3 R u n H o s t
$( call HostPython3, \
$( if $( 1) ,$( 1) ; ) \
CC = " $( HOSTCC) " \
CCSHARED = " $( HOSTCC) $( HOST_FPIC) " \
CXX = " $( HOSTCXX) " \
LD = " $( HOSTCC) " \
LDSHARED = " $( HOSTCC) -shared " \
CFLAGS = " $( HOST_CFLAGS) " \
CPPFLAGS = " $( HOST_CPPFLAGS) -I $( HOST_PYTHON3_INC_DIR) " \
LDFLAGS = " $( HOST_LDFLAGS) -lpython $( PYTHON3_VERSION) -Wl $( comma) -rpath= $( STAGING_DIR_HOSTPKG) /lib " \
_PYTHON_HOST_PLATFORM = linux2 \
$( call host_python3_settings) \
$( 3) \
, \
$( 2) \
@ -63,6 +68,7 @@ endef
# Note: I shamelessly copied this from Yousong's logic (from python-packages);
HOST_PYTHON3_PIP := $( STAGING_DIR_HOSTPKG) /bin/pip$( PYTHON3_VERSION)
d e f i n e h o s t _ p y t h o n 3 _ p i p _ i n s t a l l
$( call host_python3_settings) \
$( HOST_PYTHON3_PIP) install \
--root= $( 1) \
--prefix= $( 2) \