Ian Kasprzak | 9601e6e | 2019-11-08 18:40:39 -0800 | [diff] [blame] | 1 | // 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 Badour | 0390580 | 2021-02-12 21:42:54 -0800 | [diff] [blame] | 15 | package { |
| 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 Kasprzak | 9601e6e | 2019-11-08 18:40:39 -0800 | [diff] [blame] | 28 | python_binary_host { |
| 29 | name: "generate-self-extracting-archive", |
| 30 | srcs: ["generate-self-extracting-archive.py"], |
Ian Kasprzak | 9601e6e | 2019-11-08 18:40:39 -0800 | [diff] [blame] | 31 | } |
Jiyong Park | ae55638 | 2020-05-20 18:33:43 +0900 | [diff] [blame] | 32 | |
| 33 | python_binary_host { |
| 34 | name: "post_process_props", |
| 35 | srcs: ["post_process_props.py"], |
Jiyong Park | ae55638 | 2020-05-20 18:33:43 +0900 | [diff] [blame] | 36 | } |
Jiyong Park | d721e87 | 2020-06-22 17:30:57 +0900 | [diff] [blame] | 37 | |
| 38 | python_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 Park | d721e87 | 2020-06-22 17:30:57 +0900 | [diff] [blame] | 45 | test_config: "post_process_props_unittest.xml", |
| 46 | test_suites: ["general-tests"], |
| 47 | } |
Yifan Hong | 351b6b8 | 2020-07-27 18:49:41 -0700 | [diff] [blame] | 48 | |
| 49 | python_binary_host { |
| 50 | name: "extract_kernel", |
| 51 | srcs: ["extract_kernel.py"], |
Yifan Hong | 351b6b8 | 2020-07-27 18:49:41 -0700 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | genrule_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 | } |