@@ -78,6 +78,9 @@ function build_python() {
78
78
try cp $BUILD_hostpython /hostpython .
79
79
try cp $BUILD_hostpython /hostpgen .
80
80
81
+ export BUILDARCH=$( gcc -dumpmachine)
82
+ export HOSTARCH=arm-eabi
83
+
81
84
push_arm
82
85
83
86
# openssl activated ?
@@ -96,16 +99,6 @@ function build_python() {
96
99
97
100
# CFLAGS for python ctypes library
98
101
# export CFLAGS="$CFLAGS -DNO_MALLINFO"
99
- machine=$( uname -m)
100
- system=$( uname -s)
101
- system=${system,,} # convert to lowercase
102
-
103
- if [ " $machine " == " i386" ]; then
104
- machine=x86
105
- fi
106
-
107
- export BUILDARCH=${machine} -${system} -gnu
108
- export HOSTARCH=arm-eabi
109
102
110
103
try ./configure --host=$HOSTARCH --build=$BUILDARCH OPT=$OFLAG --prefix=" $BUILD_PATH /python-install" --enable-shared --disable-toolbox-glue --disable-framework
111
104
echo ./configure --host=$HOSTARCH --build=$BUILDARCH OPT=$OFLAG --prefix=" $BUILD_PATH /python-install" --enable-shared --disable-toolbox-glue --disable-framework
@@ -125,13 +118,14 @@ function build_python() {
125
118
$MAKE install HOSTPYTHON=$BUILD_python /hostpython HOSTPGEN=$BUILD_python /hostpgen CROSS_COMPILE_TARGET=yes INSTSONAME=libpython2.7.so
126
119
pop_arm
127
120
128
- if [ " X$system " == " Xdarwin" ]; then
121
+ system=$( uname -s)
122
+ if [ " X$system " == " XDarwin" ]; then
129
123
try cp $RECIPE_python /patches/_scproxy.py $BUILD_python /Lib/
130
124
try cp $RECIPE_python /patches/_scproxy.py $BUILD_PATH /python-install/lib/python2.7/
131
125
fi
132
126
try cp $BUILD_hostpython /hostpython $HOSTPYTHON
133
127
try cp libpython2.7.so $LIBS_PATH /
134
- try cp -a build/lib.* -${machine} - 2.7/_ctypes* .so $LIBS_PATH
128
+ try cp -a build/lib.* -2.7/_ctypes* .so $LIBS_PATH
135
129
136
130
# reduce python
137
131
rm -rf " $BUILD_PATH /python-install/lib/python2.7/test"
0 commit comments