diff options
84 files changed, 936 insertions, 1 deletions
diff --git a/ANRdaemon/Android.bp b/ANRdaemon/Android.bp index 9bb9b71e..b5b9a5f6 100644 --- a/ANRdaemon/Android.bp +++ b/ANRdaemon/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 "system_extras_license" + // to get the below license kinds: + // SPDX-license-identifier-BSD + default_applicable_licenses: ["system_extras_license"], +} + cc_binary { name: "anrd", srcs: ["ANRdaemon.cpp"], diff --git a/Android.bp b/Android.bp new file mode 100644 index 00000000..f3a31ebe --- /dev/null +++ b/Android.bp @@ -0,0 +1,43 @@ +// +// Copyright (C) 2021 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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: ["system_extras_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: "system_extras_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + "SPDX-license-identifier-BSD", + "legacy_notice", + ], + // large-scale-change unable to identify any license_text files +} diff --git a/alloc-stress/Android.bp b/alloc-stress/Android.bp index 30ccbdb6..5661b3bd 100644 --- a/alloc-stress/Android.bp +++ b/alloc-stress/Android.bp @@ -14,6 +14,15 @@ // 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 "system_extras_license" + // to get the below license kinds: + // legacy_notice + default_applicable_licenses: ["system_extras_license"], +} + cc_binary { name: "alloc-stress", srcs: ["alloc-stress.cpp"], diff --git a/app-launcher/Android.bp b/app-launcher/Android.bp index bf7b2798..0a1bee84 100644 --- a/app-launcher/Android.bp +++ b/app-launcher/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 "system_extras_license" + // to get the below license kinds: + // legacy_notice + default_applicable_licenses: ["system_extras_license"], +} + cc_defaults { name: "computestats-defaults", diff --git a/boot_control_copy/Android.bp b/boot_control_copy/Android.bp index 6c9dbc24..49126d9c 100644 --- a/boot_control_copy/Android.bp +++ b/boot_control_copy/Android.bp @@ -1,5 +1,22 @@ // Copyright 2015 The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_boot_control_copy_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_boot_control_copy_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_library_shared { name: "bootctrl.copy", relative_install_path: "hw", diff --git a/bootctl/Android.bp b/bootctl/Android.bp index 8843b946..f63871cf 100644 --- a/bootctl/Android.bp +++ b/bootctl/Android.bp @@ -1,5 +1,22 @@ // Copyright 2015 The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_bootctl_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_bootctl_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "bootctl", srcs: ["bootctl.cpp"], diff --git a/boottime_tools/bootanalyze/stressfs/Android.bp b/boottime_tools/bootanalyze/stressfs/Android.bp index f342d1aa..c0dee353 100644 --- a/boottime_tools/bootanalyze/stressfs/Android.bp +++ b/boottime_tools/bootanalyze/stressfs/Android.bp @@ -14,6 +14,10 @@ // // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + android_test { name: "StressFS", srcs: ["src/**/*.java"], diff --git a/boottime_tools/bootio/Android.bp b/boottime_tools/bootio/Android.bp index 7c8ef269..bf071163 100644 --- a/boottime_tools/bootio/Android.bp +++ b/boottime_tools/bootio/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_defaults { name: "bootio_defaults", diff --git a/brillo_config/Android.mk b/brillo_config/Android.mk index cefc0826..b8cad2f7 100644 --- a/brillo_config/Android.mk +++ b/brillo_config/Android.mk @@ -20,6 +20,8 @@ ifdef OSRELEASED_DIRECTORY include $(CLEAR_VARS) LOCAL_MODULE := product_id +LOCAL_LICENSE_KINDS := legacy_notice +LOCAL_LICENSE_CONDITIONS := notice LOCAL_MODULE_CLASS := FAKE LOCAL_MODULE_PATH := $(TARGET_OUT_OEM)/$(OSRELEASED_DIRECTORY) include $(BUILD_SYSTEM)/base_rules.mk @@ -32,6 +34,8 @@ $(LOCAL_BUILT_MODULE): include $(CLEAR_VARS) LOCAL_MODULE := system_id +LOCAL_LICENSE_KINDS := legacy_notice +LOCAL_LICENSE_CONDITIONS := notice LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/$(OSRELEASED_DIRECTORY) include $(BUILD_SYSTEM)/base_rules.mk @@ -43,6 +47,8 @@ $(LOCAL_BUILT_MODULE): include $(CLEAR_VARS) LOCAL_MODULE := product_version +LOCAL_LICENSE_KINDS := legacy_notice +LOCAL_LICENSE_CONDITIONS := notice LOCAL_MODULE_CLASS := FAKE LOCAL_MODULE_PATH := $(TARGET_OUT_OEM)/$(OSRELEASED_DIRECTORY) include $(BUILD_SYSTEM)/base_rules.mk @@ -64,6 +70,8 @@ $(LOCAL_BUILT_MODULE): include $(CLEAR_VARS) LOCAL_MODULE := system_version +LOCAL_LICENSE_KINDS := legacy_notice +LOCAL_LICENSE_CONDITIONS := notice LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/$(OSRELEASED_DIRECTORY) include $(BUILD_SYSTEM)/base_rules.mk diff --git a/checkpoint_gc/Android.bp b/checkpoint_gc/Android.bp index fac9c6a8..fcdaf5c0 100644 --- a/checkpoint_gc/Android.bp +++ b/checkpoint_gc/Android.bp @@ -1,4 +1,8 @@ // Checkpointing GC script +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + sh_binary { name: "checkpoint_gc", src: "checkpoint_gc.sh", diff --git a/cppreopts/Android.bp b/cppreopts/Android.bp index 9e9c4a11..70d349d5 100644 --- a/cppreopts/Android.bp +++ b/cppreopts/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + sh_binary { name: "preloads_copy.sh", diff --git a/cpustats/Android.bp b/cpustats/Android.bp index 6b0229be..db3aae51 100644 --- a/cpustats/Android.bp +++ b/cpustats/Android.bp @@ -1,3 +1,33 @@ +package { + default_applicable_licenses: ["system_extras_cpustats_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: "system_extras_cpustats_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + "SPDX-license-identifier-BSD", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "cpustats", srcs: ["cpustats.c"], diff --git a/crypto-perf/Android.bp b/crypto-perf/Android.bp index 60116891..8f575ca9 100644 --- a/crypto-perf/Android.bp +++ b/crypto-perf/Android.bp @@ -1,3 +1,20 @@ +package { + default_applicable_licenses: ["system_extras_crypto-perf_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_crypto-perf_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "crypto", diff --git a/ext4_utils/Android.bp b/ext4_utils/Android.bp index d528d2ca..10aa765f 100644 --- a/ext4_utils/Android.bp +++ b/ext4_utils/Android.bp @@ -1,5 +1,22 @@ // Copyright 2010 The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_ext4_utils_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_ext4_utils_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_library { name: "libext4_utils", host_supported: true, diff --git a/ext4_utils/Android.mk b/ext4_utils/Android.mk index 259fbd89..b55613fb 100644 --- a/ext4_utils/Android.mk +++ b/ext4_utils/Android.mk @@ -8,6 +8,9 @@ LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := mke2fs.conf +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE LOCAL_SRC_FILES := $(LOCAL_MODULE) LOCAL_MODULE_CLASS := EXECUTABLES LOCAL_IS_HOST_MODULE := true diff --git a/f2fs_utils/Android.bp b/f2fs_utils/Android.bp index 209c65eb..dc74d6d3 100644 --- a/f2fs_utils/Android.bp +++ b/f2fs_utils/Android.bp @@ -1,5 +1,22 @@ // Copyright 2017 The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_f2fs_utils_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_f2fs_utils_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_library_shared { name: "libf2fs_sparseblock", cflags: ["-Werror"], diff --git a/ioblame/Android.bp b/ioblame/Android.bp index 4b0fa711..119ef76e 100644 --- a/ioblame/Android.bp +++ b/ioblame/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 "system_extras_license" + // to get the below license kinds: + // legacy_notice + default_applicable_licenses: ["system_extras_license"], +} + sh_binary_host { name: "ioblame", src: "ioblame.sh", diff --git a/ioshark/Android.bp b/ioshark/Android.bp index 0f9ba29b..02952a35 100644 --- a/ioshark/Android.bp +++ b/ioshark/Android.bp @@ -12,6 +12,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: "ioshark_defaults", diff --git a/iotop/Android.bp b/iotop/Android.bp index 9b5e40cc..d7dc3ea0 100644 --- a/iotop/Android.bp +++ b/iotop/Android.bp @@ -12,6 +12,23 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["system_extras_iotop_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_iotop_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "iotop", diff --git a/kexec_tools/Android.bp b/kexec_tools/Android.bp index bcfc2ee6..d5b4af30 100644 --- a/kexec_tools/Android.bp +++ b/kexec_tools/Android.bp @@ -13,6 +13,23 @@ // limitations under the License. // Copyright The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_kexec_tools_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_kexec_tools_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "kexecload", srcs: ["kexecload.c"], diff --git a/latencytop/Android.bp b/latencytop/Android.bp index fab36312..64a3c20d 100644 --- a/latencytop/Android.bp +++ b/latencytop/Android.bp @@ -12,6 +12,23 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["system_extras_latencytop_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_latencytop_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "latencytop", diff --git a/libfec/Android.bp b/libfec/Android.bp index 3da6fe7c..6bd44dd9 100644 --- a/libfec/Android.bp +++ b/libfec/Android.bp @@ -1,5 +1,22 @@ // Copyright 2015 The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_libfec_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_libfec_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_defaults { name: "libfec_default", diff --git a/libfec/test/Android.bp b/libfec/test/Android.bp index 60879c1a..6f412a26 100644 --- a/libfec/test/Android.bp +++ b/libfec/test/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 "system_extras_libfec_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_libfec_license"], +} + cc_defaults { name: "fec_test_defaults", diff --git a/libfscrypt/Android.bp b/libfscrypt/Android.bp index 65b94ed9..afdc7f4e 100644 --- a/libfscrypt/Android.bp +++ b/libfscrypt/Android.bp @@ -1,5 +1,22 @@ // Copyright 2018 The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_libfscrypt_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_libfscrypt_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_library { name: "libfscrypt", recovery_available: true, diff --git a/libfscrypt/tests/Android.bp b/libfscrypt/tests/Android.bp index 985b425f..c630fc6d 100644 --- a/libfscrypt/tests/Android.bp +++ b/libfscrypt/tests/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 "system_extras_libfscrypt_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_libfscrypt_license"], +} + cc_test { name: "libfscrypt_unit_test", diff --git a/libjsonpb/parse/Android.bp b/libjsonpb/parse/Android.bp index eaec342a..ddb95128 100644 --- a/libjsonpb/parse/Android.bp +++ b/libjsonpb/parse/Android.bp @@ -15,6 +15,10 @@ // A convenient library to convert any JSON string to a specific Protobuf // message using reflection. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library_static { name: "libjsonpbparse", host_supported: true, diff --git a/libjsonpb/verify/Android.bp b/libjsonpb/verify/Android.bp index 74e9eca4..a6641855 100644 --- a/libjsonpb/verify/Android.bp +++ b/libjsonpb/verify/Android.bp @@ -15,6 +15,10 @@ // This static library defines parameterized tests that enforce additional restrictions when // using Protobuf as schema for JSON files. The reason is that the JSON parser that // libprotobuf-cpp-full provides is relatively relaxed. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_library_static { name: "libjsonpbverify", host_supported: true, diff --git a/memory_replay/Android.bp b/memory_replay/Android.bp index ab5a380f..8fb9dbc1 100644 --- a/memory_replay/Android.bp +++ b/memory_replay/Android.bp @@ -14,6 +14,23 @@ // limitations under the License. // +package { + default_applicable_licenses: ["system_extras_memory_replay_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_memory_replay_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_defaults { name: "memory_flag_defaults", host_supported: false, diff --git a/memtrack/Android.bp b/memtrack/Android.bp index 457140e9..d04c6ffa 100644 --- a/memtrack/Android.bp +++ b/memtrack/Android.bp @@ -12,6 +12,23 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["system_extras_memtrack_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_memtrack_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_defaults { name: "memtrack_defaults", diff --git a/mmap-perf/Android.bp b/mmap-perf/Android.bp index 4841bee1..d989e5fe 100644 --- a/mmap-perf/Android.bp +++ b/mmap-perf/Android.bp @@ -14,6 +14,23 @@ // limitations under the License. // +package { + default_applicable_licenses: ["system_extras_mmap-perf_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_mmap-perf_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_benchmark { name: "mmapPerf", diff --git a/module_ndk_libs/libnativehelper/Android.bp b/module_ndk_libs/libnativehelper/Android.bp index 34945e9c..43043738 100644 --- a/module_ndk_libs/libnativehelper/Android.bp +++ b/module_ndk_libs/libnativehelper/Android.bp @@ -16,6 +16,25 @@ // platform/libnativehelper project in the ART branch. Any changes here should // be synced here and vice versa. +package { + default_applicable_licenses: [ + "system_extras_module_ndk_libs_libnativehelper_license", + ], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_module_ndk_libs_libnativehelper_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + ndk_headers { name: "ndk_jni.h", from: "include_jni", diff --git a/multinetwork/Android.bp b/multinetwork/Android.bp index e2b4be0e..06c4b346 100644 --- a/multinetwork/Android.bp +++ b/multinetwork/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_defaults { name: "multinetwork_defaults", diff --git a/pagecache/Android.bp b/pagecache/Android.bp index 40fc4449..c53f75bb 100644 --- a/pagecache/Android.bp +++ b/pagecache/Android.bp @@ -1,5 +1,22 @@ // Copyright 2015 The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_pagecache_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_pagecache_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "dumpcache", diff --git a/partition_tools/Android.bp b/partition_tools/Android.bp index a05f5e4e..eb886327 100644 --- a/partition_tools/Android.bp +++ b/partition_tools/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_defaults { name: "lp_defaults", cflags: [ diff --git a/partition_tools/aidl/Android.bp b/partition_tools/aidl/Android.bp index f031150f..0448631f 100644 --- a/partition_tools/aidl/Android.bp +++ b/partition_tools/aidl/Android.bp @@ -14,6 +14,15 @@ // 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 "system_extras_license" + // to get the below license kinds: + // legacy_notice + default_applicable_licenses: ["system_extras_license"], +} + aidl_interface { name: "liblpdump_interface", unstable: true, diff --git a/perf2cfg/Android.bp b/perf2cfg/Android.bp index 4611f7ec..d88dcbda 100644 --- a/perf2cfg/Android.bp +++ b/perf2cfg/Android.bp @@ -12,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + python_library_host { name: "perf2cfg_library", srcs: [ diff --git a/postinst/Android.bp b/postinst/Android.bp index 25e9dfe4..89141893 100644 --- a/postinst/Android.bp +++ b/postinst/Android.bp @@ -14,6 +14,23 @@ // limitations under the License. // +package { + default_applicable_licenses: ["system_extras_postinst_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_postinst_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + sh_binary { name: "postinst_example", src: "postinst.sh", diff --git a/preopt2cachename/Android.bp b/preopt2cachename/Android.bp index 63fea15d..54e8e2e1 100644 --- a/preopt2cachename/Android.bp +++ b/preopt2cachename/Android.bp @@ -12,6 +12,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: "preopt2cachename", diff --git a/profcollectd/Android.bp b/profcollectd/Android.bp index 16ffb54a..cd0d8852 100644 --- a/profcollectd/Android.bp +++ b/profcollectd/Android.bp @@ -14,6 +14,23 @@ // limitations under the License. // +package { + default_applicable_licenses: ["system_extras_profcollectd_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_profcollectd_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + rust_binary { name: "profcollectctl", diff --git a/profcollectd/libprofcollectd/Android.bp b/profcollectd/libprofcollectd/Android.bp index e1491b76..dc09889c 100644 --- a/profcollectd/libprofcollectd/Android.bp +++ b/profcollectd/libprofcollectd/Android.bp @@ -14,6 +14,15 @@ // 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 "system_extras_profcollectd_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_profcollectd_license"], +} + aidl_interface { name: "profcollectd_aidl_interface", unstable: true, diff --git a/profcollectd/libprofcollectd/bindings/libflags/Android.bp b/profcollectd/libprofcollectd/bindings/libflags/Android.bp index 9fd08551..f7cf2ed9 100644 --- a/profcollectd/libprofcollectd/bindings/libflags/Android.bp +++ b/profcollectd/libprofcollectd/bindings/libflags/Android.bp @@ -14,6 +14,15 @@ // 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 "system_extras_profcollectd_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_profcollectd_license"], +} + cc_library_static { name: "libprofcollect_libflags", srcs: ["get_flags.cpp"], diff --git a/pssbench/Android.mk b/pssbench/Android.mk index 45bab557..03e22a13 100644 --- a/pssbench/Android.mk +++ b/pssbench/Android.mk @@ -3,6 +3,8 @@ include $(CLEAR_VARS) LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/local/tmp LOCAL_MODULE:= pssbench +LOCAL_LICENSE_KINDS:= legacy_notice +LOCAL_LICENSE_CONDITIONS:= notice LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := EXECUTABLES diff --git a/puncture_fs/Android.bp b/puncture_fs/Android.bp index 5c163372..aef7ba43 100644 --- a/puncture_fs/Android.bp +++ b/puncture_fs/Android.bp @@ -12,6 +12,23 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + default_applicable_licenses: ["system_extras_puncture_fs_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_puncture_fs_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "puncture_fs", diff --git a/runconuid/Android.bp b/runconuid/Android.bp index 59fb9ca1..ceea3ff3 100644 --- a/runconuid/Android.bp +++ b/runconuid/Android.bp @@ -1,3 +1,20 @@ +package { + default_applicable_licenses: ["system_extras_runconuid_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_runconuid_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "runconuid", diff --git a/sane_schedstat/Android.bp b/sane_schedstat/Android.bp index 68adc743..9be0d4e3 100644 --- a/sane_schedstat/Android.bp +++ b/sane_schedstat/Android.bp @@ -1,3 +1,20 @@ +package { + default_applicable_licenses: ["system_extras_sane_schedstat_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_sane_schedstat_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "sane_schedstat", diff --git a/showslab/Android.bp b/showslab/Android.bp index d84004e5..27a71c43 100644 --- a/showslab/Android.bp +++ b/showslab/Android.bp @@ -1,5 +1,22 @@ // Copyright 2007 The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_showslab_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_showslab_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "showslab", diff --git a/simpleperf/Android.bp b/simpleperf/Android.bp index eac33ad5..62195b5c 100644 --- a/simpleperf/Android.bp +++ b/simpleperf/Android.bp @@ -14,6 +14,23 @@ // limitations under the License. // +package { + default_applicable_licenses: ["system_extras_simpleperf_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_simpleperf_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_defaults { name: "libsimpleperf_elf_read_static_reqs_defaults", static_libs: [ diff --git a/simpleperf/runtest/Android.bp b/simpleperf/runtest/Android.bp index c50d7e0a..dee4ffd8 100644 --- a/simpleperf/runtest/Android.bp +++ b/simpleperf/runtest/Android.bp @@ -14,6 +14,15 @@ // 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 "system_extras_simpleperf_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_simpleperf_license"], +} + cc_defaults { name: "simpleperf_runtest_defaults", host_supported: true, diff --git a/simpleperf/scripts/inferno/Android.bp b/simpleperf/scripts/inferno/Android.bp index 99a111c3..14d18778 100644 --- a/simpleperf/scripts/inferno/Android.bp +++ b/simpleperf/scripts/inferno/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 "system_extras_simpleperf_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_simpleperf_license"], +} + python_library_host { name: "simpleperf-inferno", srcs: [ diff --git a/simpleperf/simpleperf_app_runner/Android.bp b/simpleperf/simpleperf_app_runner/Android.bp index cd93505d..3179f397 100644 --- a/simpleperf/simpleperf_app_runner/Android.bp +++ b/simpleperf/simpleperf_app_runner/Android.bp @@ -14,6 +14,15 @@ // 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 "system_extras_simpleperf_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_simpleperf_license"], +} + cc_binary { name: "simpleperf_app_runner", srcs: [ diff --git a/slideshow/Android.mk b/slideshow/Android.mk index 192e64fb..42d6719e 100644 --- a/slideshow/Android.mk +++ b/slideshow/Android.mk @@ -5,6 +5,9 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES := slideshow.cpp LOCAL_MODULE := slideshow +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE LOCAL_MODULE_TAGS := optional LOCAL_CFLAGS := -D__STDC_LIMIT_MACROS -Werror diff --git a/sound/Android.bp b/sound/Android.bp index 9c6b1905..2b0e5f98 100644 --- a/sound/Android.bp +++ b/sound/Android.bp @@ -1,3 +1,20 @@ +package { + default_applicable_licenses: ["system_extras_sound_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_sound_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "sound", srcs: ["playwav.c"], diff --git a/squashfs_utils/Android.bp b/squashfs_utils/Android.bp index c4c675c3..4a6fb5fa 100644 --- a/squashfs_utils/Android.bp +++ b/squashfs_utils/Android.bp @@ -1,5 +1,22 @@ // Copyright 2015 The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_squashfs_utils_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_squashfs_utils_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_library { name: "libsquashfs_utils", cflags: ["-Werror"], diff --git a/su/Android.mk b/su/Android.mk index fd8df768..18493992 100644 --- a/su/Android.mk +++ b/su/Android.mk @@ -6,6 +6,9 @@ LOCAL_CFLAGS := -Wall -Werror LOCAL_SRC_FILES:= su.cpp LOCAL_MODULE:= su +LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS:= notice +LOCAL_NOTICE_FILE:= $(LOCAL_PATH)/NOTICE LOCAL_HEADER_LIBRARIES := libcutils_headers diff --git a/taskstats/Android.bp b/taskstats/Android.bp index 3f2a5732..ad9f88ce 100644 --- a/taskstats/Android.bp +++ b/taskstats/Android.bp @@ -1,5 +1,22 @@ // Copyright 2013 The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_taskstats_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_taskstats_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "taskstats", diff --git a/tests/Android.bp b/tests/Android.bp new file mode 100644 index 00000000..af3b8b2f --- /dev/null +++ b/tests/Android.bp @@ -0,0 +1,31 @@ +// +// Copyright (C) 2021 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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: ["system_extras_tests_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_tests_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} diff --git a/tests/audio/alsa/Android.bp b/tests/audio/alsa/Android.bp index 60dbe87e..87c66452 100644 --- a/tests/audio/alsa/Android.bp +++ b/tests/audio/alsa/Android.bp @@ -14,6 +14,15 @@ // 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 "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_test { name: "pcmtest", srcs: ["pcmtest.cpp"], diff --git a/tests/binder/benchmarks/Android.bp b/tests/binder/benchmarks/Android.bp index 5ac0895a..6a550688 100644 --- a/tests/binder/benchmarks/Android.bp +++ b/tests/binder/benchmarks/Android.bp @@ -14,6 +14,15 @@ // 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 "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_benchmark { name: "binderAddInts", diff --git a/tests/bootloader/Android.mk b/tests/bootloader/Android.mk index ab311fdc..a5421a50 100644 --- a/tests/bootloader/Android.mk +++ b/tests/bootloader/Android.mk @@ -6,6 +6,9 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := bootloader_unit_test +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE LOCAL_MODULE_TAGS := tests bootloader_py_files := $(call find-subdir-files, *.py) diff --git a/tests/cpueater/Android.bp b/tests/cpueater/Android.bp index 315a18b0..72c0e49b 100644 --- a/tests/cpueater/Android.bp +++ b/tests/cpueater/Android.bp @@ -13,6 +13,23 @@ // limitations under the License. // Copyright The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_tests_cpueater_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_tests_cpueater_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "cpueater", srcs: ["cpueater.c"], diff --git a/tests/crypto/Android.bp b/tests/crypto/Android.bp index 61cb8299..d0326d47 100644 --- a/tests/crypto/Android.bp +++ b/tests/crypto/Android.bp @@ -1,5 +1,14 @@ // Copyright 2013 The Android Open Source Project +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "get_dm_versions", srcs: ["get_dm_versions.c"], diff --git a/tests/directiotest/Android.bp b/tests/directiotest/Android.bp index 489e3c82..ab2545ce 100644 --- a/tests/directiotest/Android.bp +++ b/tests/directiotest/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 "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "directiotest", srcs: ["directiotest.c"], diff --git a/tests/ext4/Android.mk b/tests/ext4/Android.mk index a9a684d2..0a384842 100644 --- a/tests/ext4/Android.mk +++ b/tests/ext4/Android.mk @@ -7,6 +7,9 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES:= rand_emmc_perf.c LOCAL_CFLAGS := -Wall -Werror LOCAL_MODULE:= rand_emmc_perf +LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS:= notice +LOCAL_NOTICE_FILE:= $(LOCAL_PATH)/../NOTICE LOCAL_MULTILIB := both LOCAL_MODULE_STEM_32:= rand_emmc_perf LOCAL_MODULE_STEM_64:= rand_emmc_perf64 @@ -16,4 +19,3 @@ LOCAL_FORCE_STATIC_EXECUTABLE := true LOCAL_STATIC_LIBRARIES := libm libc include $(BUILD_EXECUTABLE) - diff --git a/tests/framebuffer/Android.bp b/tests/framebuffer/Android.bp index f072a59a..eda69dec 100644 --- a/tests/framebuffer/Android.bp +++ b/tests/framebuffer/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 "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "test-fb-refresh", srcs: ["refresh.c"], diff --git a/tests/fstest/Android.bp b/tests/fstest/Android.bp index febbb2f7..8c9ce68e 100644 --- a/tests/fstest/Android.bp +++ b/tests/fstest/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 "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_test { name: "recovery_test", srcs: ["recovery_test.cpp"], diff --git a/tests/icachetest/Android.bp b/tests/icachetest/Android.bp index e8c72855..4e9d0d05 100644 --- a/tests/icachetest/Android.bp +++ b/tests/icachetest/Android.bp @@ -1,5 +1,14 @@ // Copyright 2006 The Android Open Source Project +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "icache", diff --git a/tests/iptables/qtaguid/Android.bp b/tests/iptables/qtaguid/Android.bp index 9c853c8b..935c0b41 100644 --- a/tests/iptables/qtaguid/Android.bp +++ b/tests/iptables/qtaguid/Android.bp @@ -14,6 +14,15 @@ // 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 "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_test { name: "socketTag", srcs: ["socketTag.cpp"], diff --git a/tests/kernel.config/Android.mk b/tests/kernel.config/Android.mk index a622bf56..cff19bac 100644 --- a/tests/kernel.config/Android.mk +++ b/tests/kernel.config/Android.mk @@ -31,6 +31,9 @@ test_src_files := \ include $(CLEAR_VARS) LOCAL_MODULE := kernel-config-unit-tests +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE LOCAL_MODULE_TAGS := tests LOCAL_CFLAGS := $(test_c_flags) LOCAL_CFLAGS += -DHAS_KCMP @@ -40,6 +43,9 @@ include $(BUILD_NATIVE_TEST) include $(CLEAR_VARS) LOCAL_MODULE := CtsKernelConfigTestCases +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE LOCAL_MODULE_TAGS := optional LOCAL_CFLAGS := $(test_c_flags) LOCAL_CFLAGS += -DHAS_KCMP @@ -60,5 +66,8 @@ LOCAL_SRC_FILES := \ scrape_mmap_addr.cpp LOCAL_MODULE := scrape_mmap_addr +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE LOCAL_CFLAGS := -Wall -Werror include $(BUILD_NATIVE_TEST) diff --git a/tests/lib/Android.bp b/tests/lib/Android.bp index b44c2960..f41419e3 100644 --- a/tests/lib/Android.bp +++ b/tests/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 "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + subdirs = ["*"] diff --git a/tests/lib/testUtil/Android.bp b/tests/lib/testUtil/Android.bp index a5a3f517..39fad294 100644 --- a/tests/lib/testUtil/Android.bp +++ b/tests/lib/testUtil/Android.bp @@ -14,6 +14,15 @@ // 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 "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_library_static { name: "libtestUtil", srcs: ["testUtil.c"], diff --git a/tests/memeater/Android.mk b/tests/memeater/Android.mk index a07564ab..e22da649 100644 --- a/tests/memeater/Android.mk +++ b/tests/memeater/Android.mk @@ -17,6 +17,9 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := memeater +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) LOCAL_SRC_FILES := memeater.c LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter diff --git a/tests/pagingtest/Android.mk b/tests/pagingtest/Android.mk index de952ce3..69fea9d0 100644 --- a/tests/pagingtest/Android.mk +++ b/tests/pagingtest/Android.mk @@ -9,6 +9,9 @@ LOCAL_SRC_FILES:= \ thrashing_test.c LOCAL_MODULE:= pagingtest +LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS:= notice +LOCAL_NOTICE_FILE:= $(LOCAL_PATH)/../NOTICE LOCAL_CFLAGS := -Wall -Werror diff --git a/tests/pftest/Android.bp b/tests/pftest/Android.bp index dcd8b5b9..2a9ef6ba 100644 --- a/tests/pftest/Android.bp +++ b/tests/pftest/Android.bp @@ -1,5 +1,14 @@ // Copyright 2010 The Android Open Source Project +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "pftest", diff --git a/tests/schedtest/Android.bp b/tests/schedtest/Android.bp index 28ece031..ac10b117 100644 --- a/tests/schedtest/Android.bp +++ b/tests/schedtest/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 "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "schedtest", srcs: ["schedtest.c"], diff --git a/tests/storage/Android.bp b/tests/storage/Android.bp index ba9bf1fe..9bbd24ea 100644 --- a/tests/storage/Android.bp +++ b/tests/storage/Android.bp @@ -1,5 +1,14 @@ // Copyright 2013 The Android Open Source Project +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "opentest", srcs: ["opentest.c"], diff --git a/tests/suspend_stress/Android.bp b/tests/suspend_stress/Android.bp index e7a0d94c..bceff117 100644 --- a/tests/suspend_stress/Android.bp +++ b/tests/suspend_stress/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 "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "suspend_stress", srcs: ["suspend_stress.cpp"], diff --git a/tests/tcp_nuke_addr/Android.bp b/tests/tcp_nuke_addr/Android.bp index 316fd3a1..1a504395 100644 --- a/tests/tcp_nuke_addr/Android.bp +++ b/tests/tcp_nuke_addr/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 "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_test { name: "tcp_nuke_addr_test", srcs: ["tcp_nuke_addr_test.cpp"], diff --git a/tests/timetest/Android.bp b/tests/timetest/Android.bp index 481610b7..c4f361cb 100644 --- a/tests/timetest/Android.bp +++ b/tests/timetest/Android.bp @@ -1,5 +1,14 @@ // Copyright 2006 The Android Open Source Project +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_test { name: "time-unit-tests", cflags: [ diff --git a/tests/uevents/Android.bp b/tests/uevents/Android.bp index a292ebcf..4548b456 100644 --- a/tests/uevents/Android.bp +++ b/tests/uevents/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 "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "uevents", srcs: ["uevents.c"], diff --git a/toolchain-extras/Android.bp b/toolchain-extras/Android.bp index ad1c4791..007817ec 100644 --- a/toolchain-extras/Android.bp +++ b/toolchain-extras/Android.bp @@ -1,3 +1,7 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_defaults { name: "libprofile-defaults", srcs: [ diff --git a/vbmeta_tools/Android.bp b/vbmeta_tools/Android.bp index 0e8d458d..56b62b91 100644 --- a/vbmeta_tools/Android.bp +++ b/vbmeta_tools/Android.bp @@ -14,6 +14,10 @@ // limitations under the License. // +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + cc_binary { name: "vbmake", host_supported: true, diff --git a/verity/Android.bp b/verity/Android.bp index 5d0a80c0..fc2b827c 100644 --- a/verity/Android.bp +++ b/verity/Android.bp @@ -1,3 +1,20 @@ +package { + default_applicable_licenses: ["system_extras_verity_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_verity_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary_host { name: "generate_verity_key", srcs: ["generate_verity_key.c"], diff --git a/verity/fec/Android.bp b/verity/fec/Android.bp index 68d44fde..46c2e465 100644 --- a/verity/fec/Android.bp +++ b/verity/fec/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 "system_extras_verity_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_verity_license"], +} + cc_binary_host { name: "fec", diff --git a/zram-perf/Android.bp b/zram-perf/Android.bp index 7b20537a..f4928686 100644 --- a/zram-perf/Android.bp +++ b/zram-perf/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 "system_extras_license" + // to get the below license kinds: + // legacy_notice + default_applicable_licenses: ["system_extras_license"], +} + cc_binary { name: "zram-perf", cflags: [ |