@@ -38,13 +38,15 @@ def generate_sysroot(sysroot: Path, api_version: float, arch: str, quiet=False):
3838 tizen_arch = 'aarch64'
3939 elif arch == 'x86' :
4040 tizen_arch = 'i686'
41+ elif arch == 'x64' :
42+ tizen_arch = 'x86_64'
4143 else :
4244 sys .exit ('Unknown arch: ' + arch )
4345
4446 base_repo = 'http://download.tizen.org/snapshots/TIZEN/Tizen-{}/Tizen-{}-Base/latest/repos/standard/packages' .format (
4547 api_version , api_version
4648 )
47- unified_repo = 'http://download.tizen.org/snapshots/TIZEN/Tizen-{}/Tizen-{}-Unified/latest/repos/standard /packages' .format (
49+ unified_repo = 'http://download.tizen.org/snapshots/TIZEN/Tizen-{}/Tizen-{}-Unified/latest/repos/emulator /packages' .format (
4850 api_version , api_version
4951 )
5052
@@ -91,11 +93,11 @@ def generate_sysroot(sysroot: Path, api_version: float, arch: str, quiet=False):
9193 if not asm .exists ():
9294 os .symlink ('asm-' + arch , asm )
9395 pkgconfig = sysroot / 'usr' / 'lib' / 'pkgconfig'
94- if arch == 'arm64' and not pkgconfig .exists ():
96+ if ( arch == 'arm64' or arch == 'x64' ) and not pkgconfig .exists ():
9597 os .symlink ('../lib64/pkgconfig' , pkgconfig )
9698
9799 # Copy objects required by the linker, such as crtbeginS.o and libgcc.a.
98- if arch == 'arm64' :
100+ if arch == 'arm64' or arch == 'x64' :
99101 libpath = sysroot / 'usr' / 'lib64'
100102 else :
101103 libpath = sysroot / 'usr' / 'lib'
@@ -135,7 +137,7 @@ def main():
135137 outpath = Path (__file__ ).parent / 'sysroot'
136138 outpath .mkdir (exist_ok = True )
137139
138- for arch in ['arm' , 'arm64' , 'x86 ' ]:
140+ for arch in ['x64 ' ]:
139141 sysroot = outpath / arch
140142 if args .force and sysroot .is_dir ():
141143 shutil .rmtree (sysroot )
0 commit comments