From dc3c1f8969d99828efbd16c8dfb5a2275e325816 Mon Sep 17 00:00:00 2001 From: Bob Badour Date: Fri, 12 Feb 2021 20:36:02 -0800 Subject: [LSC] Add LOCAL_LICENSE_KINDS to frameworks/compile/mclinker Added SPDX-license-identifier-BSD SPDX-license-identifier-MIT SPDX-license-identifier-NCSA to: Android.bp Added SPDX-license-identifier-NCSA to: lib/ADT/Android.bp lib/Android.bp lib/Core/Android.bp lib/Fragment/Android.bp lib/LD/Android.bp lib/MC/Android.bp lib/Object/Android.bp lib/Script/Android.bp lib/Support/Android.bp lib/Target/AArch64/Android.bp lib/Target/AArch64/TargetInfo/Android.bp lib/Target/ARM/Android.bp lib/Target/ARM/TargetInfo/Android.bp lib/Target/Android.bp lib/Target/Mips/Android.bp lib/Target/Mips/TargetInfo/Android.bp lib/Target/X86/Android.bp lib/Target/X86/TargetInfo/Android.bp tools/mcld/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I61793a4a7ca858b4b6e9eab8d732784f12a1d52c --- Android.bp | 31 +++++++++++++++++++++++++++++++ lib/ADT/Android.bp | 9 +++++++++ lib/Android.bp | 9 +++++++++ lib/Core/Android.bp | 9 +++++++++ lib/Fragment/Android.bp | 9 +++++++++ lib/LD/Android.bp | 9 +++++++++ lib/MC/Android.bp | 9 +++++++++ lib/Object/Android.bp | 9 +++++++++ lib/Script/Android.bp | 9 +++++++++ lib/Support/Android.bp | 9 +++++++++ lib/Target/AArch64/Android.bp | 9 +++++++++ lib/Target/AArch64/TargetInfo/Android.bp | 9 +++++++++ lib/Target/ARM/Android.bp | 9 +++++++++ lib/Target/ARM/TargetInfo/Android.bp | 9 +++++++++ lib/Target/Android.bp | 9 +++++++++ lib/Target/Mips/Android.bp | 9 +++++++++ lib/Target/Mips/TargetInfo/Android.bp | 9 +++++++++ lib/Target/X86/Android.bp | 9 +++++++++ lib/Target/X86/TargetInfo/Android.bp | 9 +++++++++ tools/mcld/Android.bp | 9 +++++++++ 20 files changed, 202 insertions(+) diff --git a/Android.bp b/Android.bp index 6ecc52d..5efa226 100644 --- a/Android.bp +++ b/Android.bp @@ -1,3 +1,34 @@ +package { + default_applicable_licenses: ["frameworks_compile_mclinker_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: "frameworks_compile_mclinker_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-BSD", + "SPDX-license-identifier-MIT", + "SPDX-license-identifier-NCSA", + ], + license_text: [ + "LICENSE.TXT", + ], +} + cc_defaults { name: "mcld-defaults", defaults: ["llvm-defaults"], diff --git a/lib/ADT/Android.bp b/lib/ADT/Android.bp index ee09f47..43ab95a 100644 --- a/lib/ADT/Android.bp +++ b/lib/ADT/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldADT", defaults: ["mcld-defaults"], diff --git a/lib/Android.bp b/lib/Android.bp index b44c296..2c8bedb 100644 --- a/lib/Android.bp +++ b/lib/Android.bp @@ -1 +1,10 @@ +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + subdirs = ["*"] diff --git a/lib/Core/Android.bp b/lib/Core/Android.bp index e3934bd..6e6f0c8 100644 --- a/lib/Core/Android.bp +++ b/lib/Core/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldCore", defaults: ["mcld-defaults"], diff --git a/lib/Fragment/Android.bp b/lib/Fragment/Android.bp index 0da4a5b..fef8586 100644 --- a/lib/Fragment/Android.bp +++ b/lib/Fragment/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldFragment", defaults: ["mcld-defaults"], diff --git a/lib/LD/Android.bp b/lib/LD/Android.bp index a296d81..d8f7030 100644 --- a/lib/LD/Android.bp +++ b/lib/LD/Android.bp @@ -2,6 +2,15 @@ // Static library: libmcldLD // ===================================================== +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldLD", defaults: ["mcld-defaults"], diff --git a/lib/MC/Android.bp b/lib/MC/Android.bp index addc270..8c82a29 100644 --- a/lib/MC/Android.bp +++ b/lib/MC/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldMC", defaults: ["mcld-defaults"], diff --git a/lib/Object/Android.bp b/lib/Object/Android.bp index c671359..ec8e4f9 100644 --- a/lib/Object/Android.bp +++ b/lib/Object/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldObject", defaults: ["mcld-defaults"], diff --git a/lib/Script/Android.bp b/lib/Script/Android.bp index c90f3b0..8d20ed2 100644 --- a/lib/Script/Android.bp +++ b/lib/Script/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldScript", defaults: ["mcld-defaults"], diff --git a/lib/Support/Android.bp b/lib/Support/Android.bp index 324390a..d2887eb 100644 --- a/lib/Support/Android.bp +++ b/lib/Support/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldSupport", defaults: ["mcld-defaults"], diff --git a/lib/Target/AArch64/Android.bp b/lib/Target/AArch64/Android.bp index d922741..6a532ca 100644 --- a/lib/Target/AArch64/Android.bp +++ b/lib/Target/AArch64/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldAArch64Target", defaults: ["mcld-defaults"], diff --git a/lib/Target/AArch64/TargetInfo/Android.bp b/lib/Target/AArch64/TargetInfo/Android.bp index 6900d91..118b56b 100644 --- a/lib/Target/AArch64/TargetInfo/Android.bp +++ b/lib/Target/AArch64/TargetInfo/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldAArch64Info", defaults: ["mcld-defaults"], diff --git a/lib/Target/ARM/Android.bp b/lib/Target/ARM/Android.bp index 10e2a41..ce520cb 100644 --- a/lib/Target/ARM/Android.bp +++ b/lib/Target/ARM/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldARMTarget", defaults: ["mcld-defaults"], diff --git a/lib/Target/ARM/TargetInfo/Android.bp b/lib/Target/ARM/TargetInfo/Android.bp index 8717576..d484a00 100644 --- a/lib/Target/ARM/TargetInfo/Android.bp +++ b/lib/Target/ARM/TargetInfo/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldARMInfo", defaults: ["mcld-defaults"], diff --git a/lib/Target/Android.bp b/lib/Target/Android.bp index d852c11..6636193 100644 --- a/lib/Target/Android.bp +++ b/lib/Target/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldTarget", defaults: ["mcld-defaults"], diff --git a/lib/Target/Mips/Android.bp b/lib/Target/Mips/Android.bp index 3e281b4..c9d6260 100644 --- a/lib/Target/Mips/Android.bp +++ b/lib/Target/Mips/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldMipsTarget", defaults: ["mcld-defaults"], diff --git a/lib/Target/Mips/TargetInfo/Android.bp b/lib/Target/Mips/TargetInfo/Android.bp index 6c60603..2ef199f 100644 --- a/lib/Target/Mips/TargetInfo/Android.bp +++ b/lib/Target/Mips/TargetInfo/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldMipsInfo", defaults: ["mcld-defaults"], diff --git a/lib/Target/X86/Android.bp b/lib/Target/X86/Android.bp index 603bff1..8f66271 100644 --- a/lib/Target/X86/Android.bp +++ b/lib/Target/X86/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldX86Target", defaults: ["mcld-defaults"], diff --git a/lib/Target/X86/TargetInfo/Android.bp b/lib/Target/X86/TargetInfo/Android.bp index b02c039..71897f8 100644 --- a/lib/Target/X86/TargetInfo/Android.bp +++ b/lib/Target/X86/TargetInfo/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 "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + cc_library_static { name: "libmcldX86Info", defaults: ["mcld-defaults"], diff --git a/tools/mcld/Android.bp b/tools/mcld/Android.bp index 3050946..3342f36 100644 --- a/tools/mcld/Android.bp +++ b/tools/mcld/Android.bp @@ -1,4 +1,13 @@ // Collect target specific code generation libraries +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "frameworks_compile_mclinker_license" + // to get the below license kinds: + // SPDX-license-identifier-NCSA + default_applicable_licenses: ["frameworks_compile_mclinker_license"], +} + MCLD_ARM_LIBS = [ "libmcldARMTarget", "libmcldARMInfo", -- cgit v1.2.3