Commit Graph

2 Commits

Author SHA1 Message Date
SzuWei Lin
a3424fde0b gsi_util: try to use executable in local bin/ folder
cmd_utils.run_command() will try to find the executable file
in the local bin/ folder firstly.

The patch also add some missing dependency files and make sure
gsi_util could run alone.

Bug: 75992357
Test: ./run_test.py
Test: './build.py setup_env',
  then './gsi_util.bin check_compat --system adb --vendor adb' in
  another terminal without lunch

Change-Id: I923eb68b4a6829c8ed5e5d8278e97fd4f5860efc
2018-03-22 15:26:04 +08:00
SzuWei Lin
50e7f6c301 gsi_util: add build.py to build and pack gsi_util
There are some command in build.py:

'setup_env' command can build the dependency files and copy these
files to the script.

'build' command also zip the dependency files to a zip file which
could be released independently.

The patch includes a list REQUIRED_ITEMS, which maintains the
source and destination of the dependency files. INCLUDE_FILES
maintains the files to be included to zip file additionally.

Uses 'list_deps' to list all dependency files.

Bug: 70253683
Test: setup_env and build command and check the files
Change-Id: I0b36da4457fdd04f9995cf30aadb26a2e32c1dd8
2018-01-15 17:36:12 +08:00