blob: 2f3b3938d92d6f9dca19f70c62d32290221c7d1f [file] [log] [blame]
Ian Kasprzak9601e6e2019-11-08 18:40:39 -08001// Copyright (C) 2019 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Bob Badour03905802021-02-12 21:42:54 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "build_make_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 // SPDX-license-identifier-BSD
22 // SPDX-license-identifier-CC-BY
23 // SPDX-license-identifier-GPL
24 // SPDX-license-identifier-MIT
25 default_applicable_licenses: ["build_make_license"],
26}
27
Ian Kasprzak9601e6e2019-11-08 18:40:39 -080028python_binary_host {
29 name: "generate-self-extracting-archive",
30 srcs: ["generate-self-extracting-archive.py"],
Ian Kasprzak9601e6e2019-11-08 18:40:39 -080031}
Jiyong Parkae556382020-05-20 18:33:43 +090032
33python_binary_host {
34 name: "post_process_props",
35 srcs: ["post_process_props.py"],
Jiyong Parkae556382020-05-20 18:33:43 +090036}
Jiyong Parkd721e872020-06-22 17:30:57 +090037
38python_test_host {
39 name: "post_process_props_unittest",
40 main: "test_post_process_props.py",
41 srcs: [
42 "post_process_props.py",
43 "test_post_process_props.py",
44 ],
Jiyong Parkd721e872020-06-22 17:30:57 +090045 test_config: "post_process_props_unittest.xml",
46 test_suites: ["general-tests"],
47}
Yifan Hong351b6b82020-07-27 18:49:41 -070048
49python_binary_host {
50 name: "extract_kernel",
51 srcs: ["extract_kernel.py"],
Yifan Hong351b6b82020-07-27 18:49:41 -070052}
53
54genrule_defaults {
55 name: "extract_kernel_release_defaults",
56 tools: ["extract_kernel", "lz4"],
57 out: ["kernel_release.txt"],
58 cmd: "$(location) --tools lz4:$(location lz4) --input $(in) --output-release > $(out)"
59}