|
32 | 32 |
|
33 | 33 |
|
34 | 34 | def generate_sysroot(sysroot: Path, api_version: float, arch: str, quiet=False): |
35 | | - target = 'standard' |
36 | | - |
37 | 35 | if arch == 'arm': |
38 | 36 | tizen_arch = 'armv7l' |
39 | 37 | elif arch == 'arm64': |
40 | 38 | tizen_arch = 'aarch64' |
41 | 39 | elif arch == 'x86': |
42 | 40 | tizen_arch = 'i686' |
43 | | - target = 'emulator' |
44 | | - elif arch == 'x64': |
45 | | - tizen_arch = 'x86_64' |
46 | | - target = 'emulator' |
47 | 41 | else: |
48 | 42 | sys.exit('Unknown arch: ' + arch) |
49 | 43 |
|
50 | 44 | base_repo = 'http://download.tizen.org/snapshots/TIZEN/Tizen-{}/Tizen-{}-Base/latest/repos/standard/packages'.format( |
51 | 45 | api_version, api_version |
52 | 46 | ) |
53 | | - unified_repo = 'http://download.tizen.org/snapshots/TIZEN/Tizen-{}/Tizen-{}-Unified/latest/repos/{}/packages'.format( |
54 | | - api_version, api_version, target |
| 47 | + unified_repo = 'http://download.tizen.org/snapshots/TIZEN/Tizen-{}/Tizen-{}-Unified/latest/repos/standard/packages'.format( |
| 48 | + api_version, api_version |
55 | 49 | ) |
56 | 50 |
|
57 | 51 | # Retrieve html documents. |
@@ -97,11 +91,11 @@ def generate_sysroot(sysroot: Path, api_version: float, arch: str, quiet=False): |
97 | 91 | if not asm.exists(): |
98 | 92 | os.symlink('asm-' + arch, asm) |
99 | 93 | pkgconfig = sysroot / 'usr' / 'lib' / 'pkgconfig' |
100 | | - if (arch == 'arm64' or arch == 'x64') and not pkgconfig.exists(): |
| 94 | + if (arch == 'arm64') and not pkgconfig.exists(): |
101 | 95 | os.symlink('../lib64/pkgconfig', pkgconfig) |
102 | 96 |
|
103 | 97 | # Copy objects required by the linker, such as crtbeginS.o and libgcc.a. |
104 | | - if arch == 'arm64' or arch == 'x64': |
| 98 | + if arch == 'arm64': |
105 | 99 | libpath = sysroot / 'usr' / 'lib64' |
106 | 100 | else: |
107 | 101 | libpath = sysroot / 'usr' / 'lib' |
@@ -141,13 +135,7 @@ def main(): |
141 | 135 | outpath = Path(__file__).parent / 'sysroot' |
142 | 136 | outpath.mkdir(exist_ok=True) |
143 | 137 |
|
144 | | - arches = ['arm', 'arm64', 'x86'] |
145 | | - if args.api_version >= 10.0: |
146 | | - arches = ['arm', 'arm64', 'x64'] |
147 | | - elif args.api_version >= 8.0: |
148 | | - arches = ['arm', 'arm64', 'x86', 'x64'] |
149 | | - |
150 | | - for arch in arches: |
| 138 | + for arch in ['arm', 'arm64', 'x86']: |
151 | 139 | sysroot = outpath / arch |
152 | 140 | if args.force and sysroot.is_dir(): |
153 | 141 | shutil.rmtree(sysroot) |
|
0 commit comments