diff options
author | Bob Badour <bbadour@google.com> | 2021-03-11 17:38:34 -0800 |
---|---|---|
committer | Bob Badour <bbadour@google.com> | 2021-03-12 13:12:52 -0800 |
commit | 0c82fe16a1f5f956cc4906e55230fa8921644a52 (patch) | |
tree | 1821250377a88a18ab4904511e974b10ce9a2e19 | |
parent | decfa457a5054c2df0558c60cbfe03381dc248bc (diff) | |
download | pixel-0c82fe16a1f5f956cc4906e55230fa8921644a52.tar.gz |
[LSC] Add LOCAL_LICENSE_KINDS to hardware/google/pixel
Added SPDX-license-identifier-Apache-2.0 to:
atrace/Android.bp
bootctrl/Android.bp
dynamic_partitions/Android.bp
fastboot/Android.bp
health/Android.bp
kernel_headers/Android.bp
misc_writer/Android.bp
mm/Android.bp
perfstatsd/Android.bp
pixelstats/Android.bp
power-libperfmgr/Android.bp
power-libperfmgr/libperfmgr/Android.bp
powerstats/Android.bp
powerstats/aidl/Android.bp
pwrstats_util/Android.bp
radio/Android.bp
radio/gril_carrier_nv_headers/Android.bp
recovery/Android.bp
usb/Android.bp
vibrator/Android.bp
vibrator/common/Android.bp
vibrator/common/bench/Android.bp
vibrator/cs40l25/Android.bp
vibrator/cs40l25/bench/Android.bp
vibrator/cs40l25/diag/Android.bp
vibrator/cs40l25/tests/Android.bp
vibrator/drv2624/Android.bp
vibrator/drv2624/bench/Android.bp
vibrator/drv2624/tests/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
Android.bp
thermal/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I58efe8db7cc3f22a585c6e3a80bef41c48b49c8d
Merged-in: I58efe8db7cc3f22a585c6e3a80bef41c48b49c8d
31 files changed, 155 insertions, 3 deletions
@@ -1,3 +1,31 @@ soong_namespace { imports: ["hardware/google/interfaces"], } + +package { + default_applicable_licenses: ["hardware_google_pixel_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: "hardware_google_pixel_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + "SPDX-license-identifier-BSD", + ], + // large-scale-change unable to identify any license_text files +} diff --git a/atrace/Android.bp b/atrace/Android.bp index 8ddb7c86..08ca1259 100644 --- a/atrace/Android.bp +++ b/atrace/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_binary { name: "android.hardware.atrace@1.0-service.pixel", defaults: ["hidl_defaults"], diff --git a/bootctrl/Android.bp b/bootctrl/Android.bp index 9aa1f263..27f8af13 100644 --- a/bootctrl/Android.bp +++ b/bootctrl/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library { name: "android.hardware.boot@1.2-impl-pixel-legacy", stem: "android.hardware.boot@1.0-impl-1.2-pixel-legacy", diff --git a/dynamic_partitions/Android.bp b/dynamic_partitions/Android.bp index ba0557f4..a5e54a9c 100644 --- a/dynamic_partitions/Android.bp +++ b/dynamic_partitions/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + sh_binary { name: "check_dynamic_partitions", src: "check_dynamic_partitions", diff --git a/fastboot/Android.bp b/fastboot/Android.bp index 4ba5231c..b59c1ecf 100644 --- a/fastboot/Android.bp +++ b/fastboot/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library { name: "android.hardware.fastboot@1.0-impl.pixel", recovery: true, diff --git a/health/Android.bp b/health/Android.bp index e954ca36..5b1694c8 100644 --- a/health/Android.bp +++ b/health/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library { name: "libpixelhealth", vendor: true, diff --git a/kernel_headers/Android.bp b/kernel_headers/Android.bp index 552467b3..660a5924 100644 --- a/kernel_headers/Android.bp +++ b/kernel_headers/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + kernel_headers { name: "qti_kernel_headers", vendor: true, diff --git a/misc_writer/Android.bp b/misc_writer/Android.bp index 73c44d2e..6ad523a9 100644 --- a/misc_writer/Android.bp +++ b/misc_writer/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_defaults { name: "misc_writer_defaults", vendor: true, diff --git a/mm/Android.bp b/mm/Android.bp index f733d7e2..b00d7fd8 100644 --- a/mm/Android.bp +++ b/mm/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + sh_binary { name: "mm_logd", src: "init.mm.logging.sh", diff --git a/perfstatsd/Android.bp b/perfstatsd/Android.bp index 541aff7d..9c7228a3 100644 --- a/perfstatsd/Android.bp +++ b/perfstatsd/Android.bp @@ -14,6 +14,10 @@ * limitations under the License. */ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_defaults { name: "perfstatsd_defaults", diff --git a/pixelstats/Android.bp b/pixelstats/Android.bp index 94fa064e..5a7fefb1 100644 --- a/pixelstats/Android.bp +++ b/pixelstats/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library { name: "pixelatoms-cpp", vendor: true, @@ -74,4 +78,3 @@ cc_library { ], header_libs: ["chre_api"], } - diff --git a/power-libperfmgr/Android.bp b/power-libperfmgr/Android.bp index 33e80f8e..2207d624 100644 --- a/power-libperfmgr/Android.bp +++ b/power-libperfmgr/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library { name: "libdisppower-pixel", proprietary: true, diff --git a/power-libperfmgr/libperfmgr/Android.bp b/power-libperfmgr/libperfmgr/Android.bp index c84e7317..2de7e75f 100644 --- a/power-libperfmgr/libperfmgr/Android.bp +++ b/power-libperfmgr/libperfmgr/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_defaults { name: "libperfmgr_defaults", local_include_dirs: ["include"], diff --git a/powerstats/Android.bp b/powerstats/Android.bp index 47fd2953..4d3a5c43 100644 --- a/powerstats/Android.bp +++ b/powerstats/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library_static { name: "libpixelpowerstats", vendor_available: true, diff --git a/powerstats/aidl/Android.bp b/powerstats/aidl/Android.bp index c499e41e..cbe38ae6 100644 --- a/powerstats/aidl/Android.bp +++ b/powerstats/aidl/Android.bp @@ -14,6 +14,10 @@ * limitations under the License. */ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + aidl_interface { name: "pixelpowerstats_provider_aidl_interface", unstable: true, @@ -31,4 +35,3 @@ aidl_interface { }, vendor_available: true, } - diff --git a/pwrstats_util/Android.bp b/pwrstats_util/Android.bp index c3ffc077..5ed7d12f 100644 --- a/pwrstats_util/Android.bp +++ b/pwrstats_util/Android.bp @@ -12,6 +12,10 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library_static { name: "libpowerstatsutil", defaults: ["pwrstatsutil_defaults"], diff --git a/radio/Android.bp b/radio/Android.bp index f761ca4c..b41a09d3 100644 --- a/radio/Android.bp +++ b/radio/Android.bp @@ -1,4 +1,8 @@ // Define the soong config module for Pixel in this Android.bp
+package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + soong_config_module_type {
name: "pixel_glog_cc_defaults",
diff --git a/radio/gril_carrier_nv_headers/Android.bp b/radio/gril_carrier_nv_headers/Android.bp index e671ad3b..845945ab 100644 --- a/radio/gril_carrier_nv_headers/Android.bp +++ b/radio/gril_carrier_nv_headers/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library_headers { name: "gril_carrier_nv_headers", sanitize:{ @@ -7,4 +11,4 @@ cc_library_headers { export_include_dirs: [ "inc/", ], -}
\ No newline at end of file +} diff --git a/recovery/Android.bp b/recovery/Android.bp index d904e8ec..4c7e0c7b 100644 --- a/recovery/Android.bp +++ b/recovery/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library_static { name: "librecovery_ui_pixel", owner: "google", diff --git a/thermal/Android.bp b/thermal/Android.bp index df71b4e3..c1fd7ddb 100644 --- a/thermal/Android.bp +++ b/thermal/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 "hardware_google_pixel_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + // SPDX-license-identifier-BSD + default_applicable_licenses: ["hardware_google_pixel_license"], +} + cc_binary { name: "android.hardware.thermal@2.0-service.pixel", defaults: [ diff --git a/usb/Android.bp b/usb/Android.bp index 8b2cc599..348e2242 100644 --- a/usb/Android.bp +++ b/usb/Android.bp @@ -14,6 +14,10 @@ * limitations under the License. */ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library_static { name: "libpixelusb", vendor_available: true, diff --git a/vibrator/Android.bp b/vibrator/Android.bp index fd5ebeeb..5ad08c41 100644 --- a/vibrator/Android.bp +++ b/vibrator/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_defaults { name: "PixelVibratorDefaults", relative_install_path: "hw", diff --git a/vibrator/common/Android.bp b/vibrator/common/Android.bp index d40e7a91..04fbc4d7 100644 --- a/vibrator/common/Android.bp +++ b/vibrator/common/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library { name: "PixelVibratorCommon", srcs: [ diff --git a/vibrator/common/bench/Android.bp b/vibrator/common/bench/Android.bp index 641b73ab..601b117a 100644 --- a/vibrator/common/bench/Android.bp +++ b/vibrator/common/bench/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_benchmark { name: "VibratorHalIntegrationBenchmark", defaults: ["hidl_defaults"], diff --git a/vibrator/cs40l25/Android.bp b/vibrator/cs40l25/Android.bp index 1beca23a..2b135b4f 100644 --- a/vibrator/cs40l25/Android.bp +++ b/vibrator/cs40l25/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_defaults { name: "android.hardware.vibrator-defaults.cs40l25", cflags: [ diff --git a/vibrator/cs40l25/bench/Android.bp b/vibrator/cs40l25/bench/Android.bp index 87a9dc0c..110fea88 100644 --- a/vibrator/cs40l25/bench/Android.bp +++ b/vibrator/cs40l25/bench/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_benchmark { name: "VibratorHalCs40l25Benchmark", defaults: ["VibratorHalCs40l25TestDefaults"], diff --git a/vibrator/cs40l25/diag/Android.bp b/vibrator/cs40l25/diag/Android.bp index acd86325..3232ffa5 100644 --- a/vibrator/cs40l25/diag/Android.bp +++ b/vibrator/cs40l25/diag/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + sh_binary { name: "diag-vibrator", src: "diag-vibrator.sh", diff --git a/vibrator/cs40l25/tests/Android.bp b/vibrator/cs40l25/tests/Android.bp index 7acdece0..438df067 100644 --- a/vibrator/cs40l25/tests/Android.bp +++ b/vibrator/cs40l25/tests/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_test { name: "VibratorHalCs40l25TestSuite", defaults: ["VibratorHalCs40l25TestDefaults"], diff --git a/vibrator/drv2624/Android.bp b/vibrator/drv2624/Android.bp index 594aaeb2..ef792a39 100644 --- a/vibrator/drv2624/Android.bp +++ b/vibrator/drv2624/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_defaults { name: "android.hardware.vibrator-defaults.drv2624", cflags: [ diff --git a/vibrator/drv2624/bench/Android.bp b/vibrator/drv2624/bench/Android.bp index 6227dc5a..e2d68daa 100644 --- a/vibrator/drv2624/bench/Android.bp +++ b/vibrator/drv2624/bench/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_benchmark { name: "VibratorHalDrv2624Benchmark", defaults: ["VibratorHalDrv2624TestDefaults"], diff --git a/vibrator/drv2624/tests/Android.bp b/vibrator/drv2624/tests/Android.bp index 4c857402..8f392a10 100644 --- a/vibrator/drv2624/tests/Android.bp +++ b/vibrator/drv2624/tests/Android.bp @@ -13,6 +13,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_test { name: "VibratorHalDrv2624TestSuite", defaults: ["VibratorHalDrv2624TestDefaults"], |