@@ -38,13 +38,15 @@ def generate_sysroot(sysroot: Path, api_version: float, arch: str, quiet=False):
38
38
tizen_arch = 'aarch64'
39
39
elif arch == 'x86' :
40
40
tizen_arch = 'i686'
41
+ elif arch == 'x64' :
42
+ tizen_arch = 'x86_64'
41
43
else :
42
44
sys .exit ('Unknown arch: ' + arch )
43
45
44
46
base_repo = 'http://download.tizen.org/snapshots/TIZEN/Tizen-{}/Tizen-{}-Base/latest/repos/standard/packages' .format (
45
47
api_version , api_version
46
48
)
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 (
48
50
api_version , api_version
49
51
)
50
52
@@ -91,11 +93,11 @@ def generate_sysroot(sysroot: Path, api_version: float, arch: str, quiet=False):
91
93
if not asm .exists ():
92
94
os .symlink ('asm-' + arch , asm )
93
95
pkgconfig = sysroot / 'usr' / 'lib' / 'pkgconfig'
94
- if arch == 'arm64' and not pkgconfig .exists ():
96
+ if ( arch == 'arm64' or arch == 'x64' ) and not pkgconfig .exists ():
95
97
os .symlink ('../lib64/pkgconfig' , pkgconfig )
96
98
97
99
# Copy objects required by the linker, such as crtbeginS.o and libgcc.a.
98
- if arch == 'arm64' :
100
+ if arch == 'arm64' or arch == 'x64' :
99
101
libpath = sysroot / 'usr' / 'lib64'
100
102
else :
101
103
libpath = sysroot / 'usr' / 'lib'
@@ -135,7 +137,7 @@ def main():
135
137
outpath = Path (__file__ ).parent / 'sysroot'
136
138
outpath .mkdir (exist_ok = True )
137
139
138
- for arch in ['arm' , 'arm64' , 'x86 ' ]:
140
+ for arch in ['x64 ' ]:
139
141
sysroot = outpath / arch
140
142
if args .force and sysroot .is_dir ():
141
143
shutil .rmtree (sysroot )
0 commit comments