Files
android_development/gsi/gsi_util/Android.bp
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

43 lines
1.1 KiB
Plaintext

// Copyright (C) 2017 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
python_binary_host {
name: "gsi_util",
srcs: [
"gsi_util.py",
"gsi_util/*.py",
"gsi_util/checkers/*.py",
"gsi_util/commands/*.py",
"gsi_util/commands/common/*.py",
"gsi_util/dumpers/*.py",
"gsi_util/mounters/*.py",
"gsi_util/utils/*.py",
],
required: [
"adb",
"avbtool",
"checkvintf",
"secilc",
"simg2img",
],
version: {
py2: {
enabled: true,
},
py3: {
enabled: false,
},
},
}