Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

tools/android: Port remaining features from LISA/install_base.sh - #686

Merged
marcbonnici merged 6 commits into
ARM-software:masterfrom
metin-arm:unify-install-base
Jun 26, 2024
Merged

tools/android: Port remaining features from LISA/install_base.sh#686
marcbonnici merged 6 commits into
ARM-software:masterfrom
metin-arm:unify-install-base

Conversation

@metin-arm

@metin-armmetin-arm commented May 17, 2024

Copy link
Copy Markdown
Contributor

tools/android/install_base.sh script has been forked from LISA in order
to install Android tools [1] in devlib. There are duplicated functionalities
between LISA and devlib versions of install_base.sh script.

Thus, port remaining bits from LISA to devlib. Also make some improvements
(e.g., remove skins directory, address shellcheck findings, clean comments, remove
duplicates from package list, etc) while we are here.

Another PR [2] will remove duplicated parts from LISA.

[1] 598c0c1d3cba
[2] https://gitlab.arm.com/tooling/lisa/-/merge_requests/2279

Signed-off-by: Metin Kaya metin.kaya@arm.com

@metin-arm
metin-armforce-pushed the unify-install-base branch 2 times, most recently from 5bd8d80 to 2e1823cCompareMay 17, 2024 11:50
@metin-arm
metin-armforce-pushed the unify-install-base branch 2 times, most recently from 9bafb8e to 9237ef6CompareMay 31, 2024 15:29

@marcbonnicimarcbonnici left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a high level this makes sense to me @douglas-raillard-arm would you be able to provide your thoughts from a LISA perspective?

@douglas-raillard-arm

Copy link
Copy Markdown
Collaborator

@marcbonnici The rational was that this code was originally in LISA where we wanted to have up to date android SDK tools. Now that devlib has a use for them as well (for the CI), we would end up with duplicated code which we don't want. With that PR, we can put the part used by devlib here and just call it from LISA side.

@marcbonnici

Copy link
Copy Markdown
Collaborator

Makes sense thanks.
From the devlib perspective I'm happy to merge this, however from a quick look at the corresponding LISA PR it seems that review is currently ongoing so wanted to check if the outcome of that review may result in subsequent modifications to this PR?

@metin-arm

Copy link
Copy Markdown
ContributorAuthor

I think I addressed the comments in both PRs, but @douglas-raillard-arm can confirm this.

@douglas-raillard-arm

Copy link
Copy Markdown
Collaborator

Small stuff on LISA side, I think the devlib side can be merged, then we update the vendored devlib version in LISA from which we will take the script and then merge the one in LISA.

@marcbonnici@metin-arm The name install_base.sh is inherited from the dawn of the LISA-verse, it's totally bikeshedding but if you feel like you can come up with a better name, now is the chance to change it :)

@metin-arm

Copy link
Copy Markdown
ContributorAuthor

@marcbonnici@metin-arm The name install_base.sh is inherited from the dawn of the LISA-verse, it's totally bikeshedding but if you feel like you can come up with a better name, now is the chance to change it :)

Considering the script is already under tools/android directory, would install_sdk.sh be meaningful?
Or what about deploy_utils.sh since the script also creates AVD, etc?

@douglas-raillard-arm

Copy link
Copy Markdown
Collaborator

would install_sdk.sh be meaningful

It's only about the SDK now but there is a good chance it grows at some point with things completely unrelated to the SDK.

Or what about deploy_utils.sh since the script also creates AVD, etc?

I'd keep "install" or "setup" as part of the name, as we are not deploying anything to some prod environment, we really are just setting up the host. Maybe something like "setup_host.sh" would be fitting.

@metin-arm

Copy link
Copy Markdown
ContributorAuthor

I'd keep "install" or "setup" as part of the name, as we are not deploying anything to some prod environment, we really are just setting up the host. Maybe something like "setup_host.sh" would be fitting.

Will rename it to setup_host.sh. Thanks.

@douglas-raillard-arm

Copy link
Copy Markdown
Collaborator

@marcbonnici LGTM, ready to merge on LISA side once this one is merged

Just a house-keeping patch to do some trivial improvements:
- Move global variables to the beginning of the script
- Eliminate redundant echo commands
- Tidy up the system package list
- Drop superfluous ';'
Signed-off-by: Metin Kaya <metin.kaya@arm.com>
Make sure devlib/install_base.sh has complete Android SDK support. This
will be the first step of removing duplicate Android SDK installation
functions from LISA/install_base.sh.
Signed-off-by: Metin Kaya <metin.kaya@arm.com>
Apparently skins are just nice to have. Also devlib uses emulated
devices in command line (no GUI), so skins are unnecessary. Removing
skins will also reduce the disparity in install_base.sh scripts of LISA
and devlib.
Signed-off-by: Metin Kaya <metin.kaya@arm.com>
Both devlib and LISA utilizes install_base.sh script, but they install
different packages and support different input arguments. Also support
custom ANDROID_HOME environment variable in order to let LISA (or just
let users install Android SDK/tools wherever they want) choose install
location.
Signed-off-by: Metin Kaya <metin.kaya@arm.com>
install_base.sh is left-over from LISA/install_base.sh. Scope of the
script in question is different (and potentially can diverge more) than
its root in LISA. Hence, give it a more descriptive (hopefully) name.
Signed-off-by: Metin Kaya <metin.kaya@arm.com>
Apparently commit
492d42d ("target: tests: Address review comments on PR#667")
erroneously renamed target_configs.yaml to target_configs.yml.
Rename it to test_config.yml.
Also address 2 Docker warnings related to environment variables while we
are here.
Signed-off-by: Metin Kaya <metin.kaya@arm.com>
@marcbonnici
marcbonnici merged commit de84a08 into ARM-software:masterJun 26, 2024
@metin-arm
metin-arm deleted the unify-install-base branch June 27, 2024 07:43
github-actionsBot pushed a commit to ARM-software/lisa that referenced this pull request Jun 27, 2024
FIX
devlib will have necessary support [1] for installing Android tools to
meet LISA requirements. Thus, remove duplicated functionality from
install_base.sh script.
[1] ARM-software/devlib#686
Signed-off-by: Metin Kaya <metin.kaya@arm.com>
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@metin-arm@douglas-raillard-arm@marcbonnici