-
Notifications
You must be signed in to change notification settings - Fork 77
tools/android: Port remaining features from LISA/install_base.sh #686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools/android: Port remaining features from LISA/install_base.sh #686
Conversation
5bd8d80 to
2e1823c
Compare
9bafb8e to
9237ef6
Compare
marcbonnici
left a comment
There was a problem hiding this comment.
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?
|
@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. |
|
Makes sense thanks. |
|
I think I addressed the comments in both PRs, but @douglas-raillard-arm can confirm this. |
|
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 |
Considering the script is already under |
9237ef6 to
4029936
Compare
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.
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 |
|
@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>
d01a094 to
5424b37
Compare
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>
tools/android/install_base.shscript has been forked from LISA in orderto install Android tools [1] in devlib. There are duplicated functionalities
between LISA and devlib versions of
install_base.shscript.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