@@ -515,7 +515,7 @@ def get_env(self):
515
515
# AND: This also hardcodes armeabi, which isn't even correct,
516
516
# don't forget to fix!
517
517
env ['BUILDLIB_PATH' ] = join (
518
- hostpython_recipe .get_build_dir ('armeabi' ),
518
+ hostpython_recipe .get_build_dir (self . arch ),
519
519
'build' , 'lib.linux-{}-2.7' .format (uname ()[- 1 ]))
520
520
521
521
env ['PATH' ] = environ ['PATH' ]
@@ -1839,12 +1839,6 @@ def get_recipe_dir(self):
1839
1839
1840
1840
# Public Recipe API to be subclassed if needed
1841
1841
1842
- def ensure_build_container_dir (self ):
1843
- info_main ('Preparing build dir for {}' .format (self .name ))
1844
-
1845
- build_dir = self .get_build_container_dir ('armeabi' )
1846
- ensure_dir (build_dir )
1847
-
1848
1842
def download_if_necessary (self ):
1849
1843
info_main ('Downloading {}' .format (self .name ))
1850
1844
user_dir = environ .get ('P4A_{}_DIR' .format (self .name .lower ()))
@@ -2204,8 +2198,8 @@ class PythonRecipe(Recipe):
2204
2198
def hostpython_location (self ):
2205
2199
if not self .call_hostpython_via_targetpython :
2206
2200
return join (
2207
- Recipe .get_recipe ('hostpython2' , self .ctx ).get_build_dir (
2208
- 'armeabi' ), 'hostpython' )
2201
+ Recipe .get_recipe ('hostpython2' , self .ctx ).get_build_dir (),
2202
+ 'hostpython' )
2209
2203
return self .ctx .hostpython
2210
2204
2211
2205
def should_build (self ):
@@ -2495,7 +2489,7 @@ def biglink(ctx, arch):
2495
2489
arch = ArchARM (ctx )
2496
2490
env = ArchARM (ctx ).get_env ()
2497
2491
env ['LDFLAGS' ] = env ['LDFLAGS' ] + ' -L{}' .format (
2498
- join (ctx .bootstrap .build_dir , 'obj' , 'local' , 'armeabi' ))
2492
+ join (ctx .bootstrap .build_dir , 'obj' , 'local' , arch . arch ))
2499
2493
2500
2494
if not len (glob .glob (join (obj_dir , '*' ))):
2501
2495
info ('There seem to be no libraries to biglink, skipping.' )
@@ -2507,7 +2501,7 @@ def biglink(ctx, arch):
2507
2501
join (ctx .get_libs_dir (arch .arch ), 'libpymodules.so' ),
2508
2502
obj_dir .split (' ' ),
2509
2503
extra_link_dirs = [join (ctx .bootstrap .build_dir ,
2510
- 'obj' , 'local' , 'armeabi' )],
2504
+ 'obj' , 'local' , arch . arch )],
2511
2505
env = env )
2512
2506
2513
2507
0 commit comments