summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-02-20 17:22:57 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-20 17:22:57 +0000
commita442d4793c5d46b559d72ad1291c9ae09f72d569 (patch)
tree855afe3ae24084a47657a09047c94edde91262e6
parente382c3dc249d48f19399d0e065702879677f662b (diff)
parente4ea6cd37b17e844691a3cf71b87baadbff6037d (diff)
downloadtests-a442d4793c5d46b559d72ad1291c9ae09f72d569.tar.gz
[LSC] Add LOCAL_LICENSE_KINDS to kernel/tests am: 6ec4a0cdb1 am: ebcc68b19c am: e4ea6cd37b
Original change: https://android-review.googlesource.com/c/kernel/tests/+/1588395 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I75b04812bb2ed6c279ea2fe604e6026a7413b0f0
-rw-r--r--Android.bp28
-rw-r--r--devicetree/early_mount/Android.bp9
-rw-r--r--net/test/Android.bp10
3 files changed, 47 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 3b4e960..5c20661 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,3 +1,31 @@
+package {
+ default_applicable_licenses: ["kernel_tests_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: "kernel_tests_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ "SPDX-license-identifier-OpenSSL",
+ ],
+ // large-scale-change unable to identify any license_text files
+}
+
python_defaults {
name: "kernel_tests_defaults",
version: {
diff --git a/devicetree/early_mount/Android.bp b/devicetree/early_mount/Android.bp
index 63131c6..6c60e91 100644
--- a/devicetree/early_mount/Android.bp
+++ b/devicetree/early_mount/Android.bp
@@ -12,6 +12,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 "kernel_tests_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ default_applicable_licenses: ["kernel_tests_license"],
+}
+
python_test {
name: "dt_early_mount_test",
srcs: [
diff --git a/net/test/Android.bp b/net/test/Android.bp
index 6c4a75f..2ecef87 100644
--- a/net/test/Android.bp
+++ b/net/test/Android.bp
@@ -1,3 +1,13 @@
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "kernel_tests_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ // SPDX-license-identifier-OpenSSL
+ default_applicable_licenses: ["kernel_tests_license"],
+}
+
python_defaults {
name: "kernel_net_tests_defaults",
srcs: [