Jeongik Cha | 8e0bf13 | 2021-10-07 22:16:00 +0900 | [diff] [blame] | 1 | package { |
| 2 | default_visibility: ["//visibility:private"], |
Bob Badour | e08326e | 2021-10-14 10:48:02 -0700 | [diff] [blame^] | 3 | default_applicable_licenses: ["external_openwrt-prebuilts_license"], |
| 4 | } |
| 5 | |
| 6 | // Added automatically by a large-scale-change that took the approach of |
| 7 | // 'apply every license found to every target'. While this makes sure we respect |
| 8 | // every license restriction, it may not be entirely correct. |
| 9 | // |
| 10 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 11 | // |
| 12 | // Please consider splitting the single license below into multiple licenses, |
| 13 | // taking care not to lose any license_kind information, and overriding the |
| 14 | // default license using the 'licenses: [...]' property on targets as needed. |
| 15 | // |
| 16 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 17 | // to attach the license to, and including a comment whether the files may be |
| 18 | // used in the current project. |
| 19 | // See: http://go/android-license-faq |
| 20 | license { |
| 21 | name: "external_openwrt-prebuilts_license", |
| 22 | visibility: [":__subpackages__"], |
| 23 | license_kinds: [ |
| 24 | "SPDX-license-identifier-Apache-2.0", |
| 25 | "SPDX-license-identifier-BSD", |
| 26 | "SPDX-license-identifier-GPL-2.0", |
| 27 | ], |
| 28 | license_text: [ |
| 29 | "LICENSE", |
| 30 | ], |
Jeongik Cha | 8e0bf13 | 2021-10-07 22:16:00 +0900 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | filegroup { |
| 34 | name: "openwrt_license_files", |
| 35 | visibility: [":__subpackages__"], |
| 36 | srcs: [ |
| 37 | "LICENSE", |
| 38 | "HOW_TO_GET_SOURCE_CODE", |
| 39 | ], |
| 40 | } |
| 41 | |
| 42 | license { |
| 43 | name: "openwrt_license", |
| 44 | visibility: [":__subpackages__"], |
| 45 | license_kinds: [ |
| 46 | "SPDX-license-identifier-Apache-2.0", |
| 47 | "SPDX-license-identifier-BSD", |
| 48 | "SPDX-license-identifier-GPL-2.0", |
| 49 | "SPDX-license-identifier-GPL-3.0", |
| 50 | "SPDX-license-identifier-LGPL-2.1", |
| 51 | "SPDX-license-identifier-MIT", |
| 52 | "SPDX-license-identifier-ISC", |
| 53 | ], |
| 54 | license_text: [ |
| 55 | "LICENSE", |
| 56 | "HOW_TO_GET_SOURCE_CODE", |
| 57 | ], |
Bob Badour | e08326e | 2021-10-14 10:48:02 -0700 | [diff] [blame^] | 58 | } |