[LSC] Add LOCAL_LICENSE_KINDS to external/libdrm

Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT to:
  intel/Android.bp

Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT
    legacy_unencumbered
to:
  Android.bp

Added SPDX-license-identifier-MIT
to:
  amdgpu/Android.bp
  data/Android.bp
  etnaviv/Android.bp
  freedreno/Android.bp
  libkms/Android.bp
  nouveau/Android.bp
  omap/Android.bp
  radeon/Android.bp
  tegra/Android.bp
  tests/Android.bp
  tests/modetest/Android.bp
  tests/proptest/Android.bp
  tests/util/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I4e538e414dc10579ff32861ee79129765d1d6a8e
diff --git a/Android.bp b/Android.bp
index b512fc2..dbac562 100644
--- a/Android.bp
+++ b/Android.bp
@@ -21,6 +21,35 @@
 // IN THE SOFTWARE.
 //
 
+package {
+    default_applicable_licenses: ["external_libdrm_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_libdrm_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-BSD",
+        "SPDX-license-identifier-MIT",
+        "legacy_unencumbered",
+    ],
+    // large-scale-change unable to identify any license_text files
+}
+
 subdirs = ["*"]
 build = ["Android.sources.bp"]
 
diff --git a/amdgpu/Android.bp b/amdgpu/Android.bp
index 976f03e..94f5668 100644
--- a/amdgpu/Android.bp
+++ b/amdgpu/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 build = ["Android.sources.bp"]
 
 cc_library_shared {
diff --git a/data/Android.bp b/data/Android.bp
index 47f6437..8bb5921 100644
--- a/data/Android.bp
+++ b/data/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 prebuilt_etc {
     name: "amdgpu.ids",
     proprietary: true,
diff --git a/etnaviv/Android.bp b/etnaviv/Android.bp
index 21deda9..d8d04af 100644
--- a/etnaviv/Android.bp
+++ b/etnaviv/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 build = ["Android.sources.bp"]
 
 cc_library_shared {
diff --git a/freedreno/Android.bp b/freedreno/Android.bp
index 9fca9b1..ca7f3e2 100644
--- a/freedreno/Android.bp
+++ b/freedreno/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 build = ["Android.sources.bp"]
 
 cc_library_shared {
diff --git a/intel/Android.bp b/intel/Android.bp
index 22713ac..7c82f1e 100644
--- a/intel/Android.bp
+++ b/intel/Android.bp
@@ -21,6 +21,16 @@
 // IN THE SOFTWARE.
 //
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-BSD
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 build = ["Android.sources.bp"]
 
 cc_library_shared {
diff --git a/libkms/Android.bp b/libkms/Android.bp
index b09dbf4..d46bab4 100644
--- a/libkms/Android.bp
+++ b/libkms/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 build = ["Android.sources.bp"]
 
 cc_library_shared {
diff --git a/nouveau/Android.bp b/nouveau/Android.bp
index 12c37e3..b844fdd 100644
--- a/nouveau/Android.bp
+++ b/nouveau/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 build = ["Android.sources.bp"]
 
 cc_library_shared {
diff --git a/omap/Android.bp b/omap/Android.bp
index 05ca7d2..a3a5a9e 100644
--- a/omap/Android.bp
+++ b/omap/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 build = ["Android.sources.bp"]
 
 cc_library_shared {
diff --git a/radeon/Android.bp b/radeon/Android.bp
index 9d0a09e..6c52084 100644
--- a/radeon/Android.bp
+++ b/radeon/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 build = ["Android.sources.bp"]
 
 cc_library_shared {
diff --git a/tegra/Android.bp b/tegra/Android.bp
index 33eaf6c..297c019 100644
--- a/tegra/Android.bp
+++ b/tegra/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 cc_library_shared {
     name: "libdrm_tegra",
     vendor: true,
diff --git a/tests/Android.bp b/tests/Android.bp
index cdc6c2c..bff7f99 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 subdirs = ["*"]
 
 cc_library_headers {
diff --git a/tests/modetest/Android.bp b/tests/modetest/Android.bp
index ca811fe..02a17fe 100644
--- a/tests/modetest/Android.bp
+++ b/tests/modetest/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 build = ["Android.sources.bp"]
 
 cc_test {
diff --git a/tests/proptest/Android.bp b/tests/proptest/Android.bp
index 28c87e9..e13d060 100644
--- a/tests/proptest/Android.bp
+++ b/tests/proptest/Android.bp
@@ -1,3 +1,12 @@
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 cc_test {
     name: "proptest",
     defaults: ["libdrm_defaults"],
diff --git a/tests/util/Android.bp b/tests/util/Android.bp
index 36d1820..0322c2a 100644
--- a/tests/util/Android.bp
+++ b/tests/util/Android.bp
@@ -21,6 +21,15 @@
 // IN THE SOFTWARE.
 //
 
+package {
+    // See: http://go/android-license-faq
+    // A large-scale-change added 'default_applicable_licenses' to import
+    // all of the 'license_kinds' from "external_libdrm_license"
+    // to get the below license kinds:
+    //   SPDX-license-identifier-MIT
+    default_applicable_licenses: ["external_libdrm_license"],
+}
+
 build = ["Android.sources.bp"]
 
 cc_library_static {