Skip to content
Snippets Groups Projects
Commit 6490b452 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

ade sysroot: Allow installation of amd64 sysroots


Running `ade sysroot install --release v2021dev3 --arch amd64` results
in `ade` complaining with:

    usage: ade sysroot install [-h] [--verbose] [--distro DISTRO]
                               [--release RELEASE] [--arch {armhf,arm64}]
                               [--url URL] [--user USER] [--password PASSWORD]
                               [--netrc NETRC] [--file FILE] [--force]
    ade sysroot install: error: argument --arch: invalid choice: 'amd64' (choose from 'armhf', 'arm64')

This means that developers attempting to target amd64 targets aren't
going to be able to follow the ADE documentation and we can't easily
target different releases using ADE when using an amd64 target, so
sync the list of allowable values with the main list of the kind of
sysroots we support.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 4964c83c
No related branches found
No related tags found
2 merge requests!14Merge changes from apertis/v2021-updates into apertis/v2021,!11ade sysroot: Allow installation of amd64 sysroots
Pipeline #196871 passed
This commit is part of merge request !14. Comments created here will be created in the context of that merge request.
......@@ -1605,7 +1605,7 @@ if __name__ == '__main__':
sysroot_id_parser.add_argument('--verbose', help="Verbose output", action='store_true')
sysroot_id_parser.add_argument('--distro', help="Distribution name (e.g. apertis)")
sysroot_id_parser.add_argument('--release', help="Distribution release version (e.g. 16.09)")
sysroot_id_parser.add_argument('--arch', help="Sysroot architecture", choices=['armhf', 'arm64'])
sysroot_id_parser.add_argument('--arch', help="Sysroot architecture", choices=[i[1] for i in TargetTriplet.SUPPORTED])
sysroot_url_parser = argparse.ArgumentParser(add_help=False)
sysroot_url_parser.add_argument('--url', help="Sysroot download URL")
sysroot_auth_parser = argparse.ArgumentParser(add_help=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment