Ram Muthiah | 30a9eba | 2020-09-29 17:34:11 -0700 | [diff] [blame] | 1 | // Copyright (C) 2020 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 | bae2f49 | 2021-02-12 15:52:17 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["device_google_cuttlefish_prebuilts_license"], |
| 17 | } |
| 18 | |
| 19 | // Added automatically by a large-scale-change |
| 20 | // See: http://go/android-license-faq |
| 21 | license { |
| 22 | name: "device_google_cuttlefish_prebuilts_license", |
| 23 | visibility: [":__subpackages__"], |
| 24 | license_kinds: [ |
| 25 | "SPDX-license-identifier-GPL-2.0", |
| 26 | ], |
| 27 | // large-scale-change unable to identify any license_text files |
| 28 | } |
| 29 | |
Alistair Delva | e211e01 | 2020-10-13 22:29:50 -0700 | [diff] [blame] | 30 | sh_binary_host { |
| 31 | name: "extract-vmlinux", |
| 32 | src: "scripts/extract-vmlinux", |
| 33 | } |
| 34 | |
Devin Moore | 52d5c75 | 2021-02-25 17:13:17 -0800 | [diff] [blame] | 35 | sh_binary_host { |
| 36 | name: "extract-ikconfig", |
| 37 | src: "scripts/extract-ikconfig", |
| 38 | } |
| 39 | |
Ram Muthiah | 30a9eba | 2020-09-29 17:34:11 -0700 | [diff] [blame] | 40 | cc_prebuilt_binary { |
| 41 | name: "mkenvimage", |
| 42 | srcs: ["uboot_tools/mkenvimage"], |
Jiyong Park | cd81a66 | 2021-01-05 16:49:39 +0900 | [diff] [blame] | 43 | defaults: ["cuttlefish_buildhost_only"], |
Ram Muthiah | 30a9eba | 2020-09-29 17:34:11 -0700 | [diff] [blame] | 44 | } |
Alistair Delva | ee91568 | 2020-10-02 19:11:24 -0700 | [diff] [blame] | 45 | |
Jiyong Park | 042f3c1 | 2021-02-19 15:47:04 +0900 | [diff] [blame] | 46 | prebuilt_build_tool { |
| 47 | name: "mkenvimage_host", |
| 48 | enabled: false, |
| 49 | target: { |
| 50 | linux: { |
| 51 | src: "uboot_tools/mkenvimage", |
| 52 | enabled: true, |
| 53 | }, |
Jiyong Park | b289ebf | 2021-02-23 09:21:26 +0900 | [diff] [blame] | 54 | darwin: { |
| 55 | src: "uboot_tools/mkenvimage_mac.sh", |
| 56 | enabled: true, |
| 57 | }, |
Jiyong Park | 042f3c1 | 2021-02-19 15:47:04 +0900 | [diff] [blame] | 58 | }, |
| 59 | } |
| 60 | |
Alistair Delva | ee91568 | 2020-10-02 19:11:24 -0700 | [diff] [blame] | 61 | // Needed for beagle_x15 target, not cuttlefish. |
| 62 | cc_prebuilt_binary { |
| 63 | name: "mkimage", |
| 64 | srcs: ["uboot_tools/mkimage"], |
| 65 | device_supported: false, |
| 66 | host_supported: true, |
| 67 | } |