aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-02-17 15:54:02 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-17 15:54:02 +0000
commitb879e75bf2221bda9a7b2607aa07eaba1ba7ee6e (patch)
tree605ec8a4f83bf128c50efeb7d13b854d9fd0ab73
parent587a5906e4fa2830e0d0fa54689a8e03ed2dd87b (diff)
parent420d2e2e49048d5f32956e2d5ed8673d0a0e9154 (diff)
downloadf2fs-tools-b879e75bf2221bda9a7b2607aa07eaba1ba7ee6e.tar.gz
[LSC] Add LOCAL_LICENSE_KINDS to external/f2fs-tools am: 420d2e2e49
Original change: https://android-review.googlesource.com/c/platform/external/f2fs-tools/+/1588627 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I21ec48cd29c99892d920022e9ccd02f87bb97fdf
-rw-r--r--Android.bp39
-rw-r--r--tools/f2fs_io/Android.bp12
-rw-r--r--tools/sg_write_buffer/Android.bp10
3 files changed, 61 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 4242a49..2b09807 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,5 +1,44 @@
// Copyright 2017 The Android Open Source Project
+package {
+ default_applicable_licenses: ["external_f2fs-tools_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.
+//
+// large-scale-change included anything that looked like it might be a license
+// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
+//
+// Please consider removing redundant or irrelevant files from 'license_text:'.
+// See: http://go/android-license-faq
+license {
+ name: "external_f2fs-tools_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-BSD",
+ "SPDX-license-identifier-GPL",
+ "SPDX-license-identifier-GPL-2.0",
+ "SPDX-license-identifier-LGPL",
+ "SPDX-license-identifier-LGPL-2.1",
+ ],
+ license_text: [
+ "COPYING",
+ "NOTICE",
+ ],
+}
+
cc_defaults {
name: "f2fs-tools-defaults",
cflags: [
diff --git a/tools/f2fs_io/Android.bp b/tools/f2fs_io/Android.bp
index 7607d5a..c89438f 100644
--- a/tools/f2fs_io/Android.bp
+++ b/tools/f2fs_io/Android.bp
@@ -1,3 +1,15 @@
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "external_f2fs-tools_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-GPL
+ // SPDX-license-identifier-GPL-2.0
+ // SPDX-license-identifier-LGPL
+ // SPDX-license-identifier-LGPL-2.1
+ default_applicable_licenses: ["external_f2fs-tools_license"],
+}
+
cc_defaults {
name: "f2fs-io-defaults",
cflags: [
diff --git a/tools/sg_write_buffer/Android.bp b/tools/sg_write_buffer/Android.bp
index 56e18dd..93b924d 100644
--- a/tools/sg_write_buffer/Android.bp
+++ b/tools/sg_write_buffer/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 "external_f2fs-tools_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-BSD
+ // SPDX-license-identifier-GPL-2.0
+ default_applicable_licenses: ["external_f2fs-tools_license"],
+}
+
cc_defaults {
name: "sg3-utils-defaults",
cflags: [