summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-02-12 20:47:18 -0800
committerBob Badour <bbadour@google.com>2021-02-16 04:09:58 -0800
commit6ec4a0cdb1d4158660e588cc450df87061660071 (patch)
tree855afe3ae24084a47657a09047c94edde91262e6
parent6f3199af05779f5373afcc55e2724ad697095c6d (diff)
downloadtests-6ec4a0cdb1d4158660e588cc450df87061660071.tar.gz
[LSC] Add LOCAL_LICENSE_KINDS to kernel/tests
Added SPDX-license-identifier-Apache-2.0 to: devicetree/early_mount/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-OpenSSL to: Android.bp net/test/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I5ea5708ef28fbe392612240df037d6aa02bd8b54
-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: [