summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-02-16 22:30:08 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-16 22:30:08 +0000
commitf7fbb1fa1ccfc704be8800738f19a5616883990c (patch)
treea92e3842cc24b14914daa3553a859a6a31bc69aa
parentf2bf2cda043433dd24e27dfea983e91a8d504ed3 (diff)
parent817e7745c0d8dec72502699468ac3e278cdc587a (diff)
downloadboringssl-f7fbb1fa1ccfc704be8800738f19a5616883990c.tar.gz
[LSC] Add LOCAL_LICENSE_KINDS to external/boringssl am: b313bb5757 am: 749e091869 am: 0483175244 am: 817e7745c0
Original change: https://android-review.googlesource.com/c/platform/external/boringssl/+/1588701 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ifd4d1ee663779f5a0dab7c673650234166825ea9
-rw-r--r--Android.bp31
-rw-r--r--selftest/Android.bp9
2 files changed, 40 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 69d3f65e..0ea1c9a8 100644
--- a/Android.bp
+++ b/Android.bp
@@ -4,6 +4,37 @@
package {
default_visibility: ["//visibility:private"],
+ default_applicable_licenses: ["external_boringssl_license"],
+}
+
+// Added automatically by a large-scale-change that took the approach of
+// 'apply every license found to every target'. While this makes sure we respect
+// every license restriction, it may not be entirely correct.
+//
+// e.g. GPL in an MIT project might only apply to the contrib/ directory.
+//
+// Please consider splitting the single license below into multiple licenses,
+// taking care not to lose any license_kind information, and overriding the
+// default license using the 'licenses: [...]' property on targets as needed.
+//
+// For unused files, consider creating a 'fileGroup' with "//visibility:private"
+// to attach the license to, and including a comment whether the files may be
+// used in the current project.
+// See: http://go/android-license-faq
+license {
+ name: "external_boringssl_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ "SPDX-license-identifier-BSD",
+ "SPDX-license-identifier-ISC",
+ "SPDX-license-identifier-MIT",
+ "SPDX-license-identifier-OpenSSL",
+ "legacy_unencumbered",
+ ],
+ license_text: [
+ "NOTICE",
+ ],
}
// Pull in the autogenerated sources modules
diff --git a/selftest/Android.bp b/selftest/Android.bp
index 657994b9..013a128d 100644
--- a/selftest/Android.bp
+++ b/selftest/Android.bp
@@ -13,6 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "external_boringssl_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ default_applicable_licenses: ["external_boringssl_license"],
+}
+
cc_defaults {
name: "boringssl_self_test_defaults",
compile_multilib: "both",